Remove deprecated related channels leftover
This commit is contained in:
1 parent
0cc8cdf2be
commit
5ff02af7ac
2 files changed
-20
No files matched your search
@@ -53,7 +53,6 @@ namespace Invidious
|
|||||||
ChannelInfoHandler: m.ChannelInfoHandler
|
ChannelInfoHandler: m.ChannelInfoHandler
|
||||||
ChannelVideosHandler: m.ChannelVideosHandler
|
ChannelVideosHandler: m.ChannelVideosHandler
|
||||||
ChannelPlaylistsHandler: m.ChannelPlaylistsHandler
|
ChannelPlaylistsHandler: m.ChannelPlaylistsHandler
|
||||||
ChannelRelatedChannelsHandler: m.ChannelRelatedChannelsHandler
|
|
||||||
WatchHistoryHandler: m.WatchHistoryHandler
|
WatchHistoryHandler: m.WatchHistoryHandler
|
||||||
}
|
}
|
||||||
end function
|
end function
|
||||||
@@ -351,17 +350,6 @@ namespace Invidious
|
|||||||
return invalid
|
return invalid
|
||||||
end function
|
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
|
function VideoInfoHandler(m as object, feedSource as object, response as object) as object
|
||||||
if response.StatusCode() = 200
|
if response.StatusCode() = 200
|
||||||
json = response.Json()
|
json = response.Json()
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ export class InvidiousApi {
|
|||||||
"ChannelInfoHandler": (requestData, response) => this.ChannelInfoHandler(requestData, response),
|
"ChannelInfoHandler": (requestData, response) => this.ChannelInfoHandler(requestData, response),
|
||||||
"ChannelVideosHandler": (requestData, response) => this.ChannelVideosHandler(requestData, response),
|
"ChannelVideosHandler": (requestData, response) => this.ChannelVideosHandler(requestData, response),
|
||||||
"ChannelPlaylistsHandler": (requestData, response) => this.ChannelPlaylistsHandler(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) {
|
private makeUrl(url: string, params: any) {
|
||||||
const encodedUrl = new URL(url);
|
const encodedUrl = new URL(url);
|
||||||
const existingParams = new URLSearchParams(encodedUrl.search);
|
const existingParams = new URLSearchParams(encodedUrl.search);
|
||||||
|
|||||||
Reference in new issue
Block a user