Remove deprecated related channels leftover

This commit is contained in:
Brahim Hadriche committed 2024-01-07 16:40:55 -05:00
1 parent 0cc8cdf2be
commit 5ff02af7ac
2 files changed
-20

No files matched your search

@@ -53,7 +53,6 @@ namespace Invidious
ChannelInfoHandler: m.ChannelInfoHandler
ChannelVideosHandler: m.ChannelVideosHandler
ChannelPlaylistsHandler: m.ChannelPlaylistsHandler
ChannelRelatedChannelsHandler: m.ChannelRelatedChannelsHandler
WatchHistoryHandler: m.WatchHistoryHandler
}
end function
@@ -351,17 +350,6 @@ namespace Invidious
return invalid
end function
function ChannelRelatedChannelsHandler(m as object, feedSource as object, response as object) as object
if response.StatusCode() = 200
json = response.Json()
return {
items: json.relatedChannels
continuation: json.continuation
}
end if
return invalid
end function
function VideoInfoHandler(m as object, feedSource as object, response as object) as object
if response.StatusCode() = 200
json = response.Json()
-8
View File
@@ -18,7 +18,6 @@ export class InvidiousApi {
"ChannelInfoHandler": (requestData, response) => this.ChannelInfoHandler(requestData, response),
"ChannelVideosHandler": (requestData, response) => this.ChannelVideosHandler(requestData, response),
"ChannelPlaylistsHandler": (requestData, response) => this.ChannelPlaylistsHandler(requestData, response),
"ChannelRelatedChannelsHandler": (requestData, response) => this.ChannelRelatedChannelsHandler(requestData, response),
}
}
@@ -211,13 +210,6 @@ export class InvidiousApi {
};
}
private async ChannelRelatedChannelsHandler(feedSource, responseJson) {
return {
items: responseJson.relatedChannels,
continuation: responseJson.continuation
};
}
private makeUrl(url: string, params: any) {
const encodedUrl = new URL(url);
const existingParams = new URLSearchParams(encodedUrl.search);