Fix "upcoming" videos

This commit is contained in:
Brahim Hadriche committed 2023-10-25 20:51:36 -04:00
1 parent 584ee9a38a
commit dd79d85cca
2 files changed
+5 -3

No files matched your search

+2
View File
@@ -54,6 +54,8 @@
searchForVideoById(videoInfo.videoId, videoInfo.timestamp);
return;
} else {
// TODO:P2 make a HEAD request and check for a redirect, then
// resolve the redirect url.
const urlInfo: any = await invidiousApi.resolveUrl(dataString);
if (urlInfo && urlInfo.pageType === "WEB_PAGE_TYPE_CHANNEL") {
searchForChannelById(urlInfo.ucid);