[YouTube] Remove Channels channel tab support
This tab has been removed by YouTube.
This commit is contained in:
parent
3782d9a02a
commit
7dea2d0d27
|
@ -448,9 +448,6 @@ public class YoutubeChannelExtractor extends ChannelExtractor {
|
|||
case "playlists":
|
||||
addNonVideosTab.accept(ChannelTabs.PLAYLISTS);
|
||||
break;
|
||||
case "channels":
|
||||
addNonVideosTab.accept(ChannelTabs.CHANNELS);
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -80,10 +80,9 @@ public class YoutubeChannelTabExtractor extends ChannelTabExtractor {
|
|||
return "EgdzdHJlYW1z8gYECgJ6AA%3D%3D";
|
||||
case ChannelTabs.PLAYLISTS:
|
||||
return "EglwbGF5bGlzdHPyBgQKAkIA";
|
||||
case ChannelTabs.CHANNELS:
|
||||
return "EghjaGFubmVsc_IGBAoCUgA%3D";
|
||||
default:
|
||||
throw new ParsingException("Unsupported channel tab: " + name);
|
||||
}
|
||||
throw new ParsingException("Unsupported channel tab: " + name);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -313,9 +312,6 @@ public class YoutubeChannelTabExtractor extends ChannelTabExtractor {
|
|||
} else if (item.has("gridPlaylistRenderer")) {
|
||||
getCommitPlaylistConsumer(collector, channelIds,
|
||||
item.getObject("gridPlaylistRenderer"));
|
||||
} else if (item.has("gridChannelRenderer")) {
|
||||
collector.commit(new YoutubeChannelInfoItemExtractor(
|
||||
item.getObject("gridChannelRenderer")));
|
||||
} else if (item.has("shelfRenderer")) {
|
||||
return collectItem(collector, item.getObject("shelfRenderer")
|
||||
.getObject("content"), channelIds);
|
||||
|
|
|
@ -31,10 +31,9 @@ public final class YoutubeChannelTabLinkHandlerFactory extends ListLinkHandlerFa
|
|||
return "/streams";
|
||||
case ChannelTabs.PLAYLISTS:
|
||||
return "/playlists";
|
||||
case ChannelTabs.CHANNELS:
|
||||
return "/channels";
|
||||
default:
|
||||
throw new UnsupportedTabException(tab);
|
||||
}
|
||||
throw new UnsupportedTabException(tab);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -66,8 +65,7 @@ public final class YoutubeChannelTabLinkHandlerFactory extends ListLinkHandlerFa
|
|||
ChannelTabs.VIDEOS,
|
||||
ChannelTabs.SHORTS,
|
||||
ChannelTabs.LIVESTREAMS,
|
||||
ChannelTabs.PLAYLISTS,
|
||||
ChannelTabs.CHANNELS
|
||||
ChannelTabs.PLAYLISTS
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue