[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":
|
case "playlists":
|
||||||
addNonVideosTab.accept(ChannelTabs.PLAYLISTS);
|
addNonVideosTab.accept(ChannelTabs.PLAYLISTS);
|
||||||
break;
|
break;
|
||||||
case "channels":
|
|
||||||
addNonVideosTab.accept(ChannelTabs.CHANNELS);
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -80,10 +80,9 @@ public class YoutubeChannelTabExtractor extends ChannelTabExtractor {
|
||||||
return "EgdzdHJlYW1z8gYECgJ6AA%3D%3D";
|
return "EgdzdHJlYW1z8gYECgJ6AA%3D%3D";
|
||||||
case ChannelTabs.PLAYLISTS:
|
case ChannelTabs.PLAYLISTS:
|
||||||
return "EglwbGF5bGlzdHPyBgQKAkIA";
|
return "EglwbGF5bGlzdHPyBgQKAkIA";
|
||||||
case ChannelTabs.CHANNELS:
|
default:
|
||||||
return "EghjaGFubmVsc_IGBAoCUgA%3D";
|
throw new ParsingException("Unsupported channel tab: " + name);
|
||||||
}
|
}
|
||||||
throw new ParsingException("Unsupported channel tab: " + name);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -313,9 +312,6 @@ public class YoutubeChannelTabExtractor extends ChannelTabExtractor {
|
||||||
} else if (item.has("gridPlaylistRenderer")) {
|
} else if (item.has("gridPlaylistRenderer")) {
|
||||||
getCommitPlaylistConsumer(collector, channelIds,
|
getCommitPlaylistConsumer(collector, channelIds,
|
||||||
item.getObject("gridPlaylistRenderer"));
|
item.getObject("gridPlaylistRenderer"));
|
||||||
} else if (item.has("gridChannelRenderer")) {
|
|
||||||
collector.commit(new YoutubeChannelInfoItemExtractor(
|
|
||||||
item.getObject("gridChannelRenderer")));
|
|
||||||
} else if (item.has("shelfRenderer")) {
|
} else if (item.has("shelfRenderer")) {
|
||||||
return collectItem(collector, item.getObject("shelfRenderer")
|
return collectItem(collector, item.getObject("shelfRenderer")
|
||||||
.getObject("content"), channelIds);
|
.getObject("content"), channelIds);
|
||||||
|
|
|
@ -31,10 +31,9 @@ public final class YoutubeChannelTabLinkHandlerFactory extends ListLinkHandlerFa
|
||||||
return "/streams";
|
return "/streams";
|
||||||
case ChannelTabs.PLAYLISTS:
|
case ChannelTabs.PLAYLISTS:
|
||||||
return "/playlists";
|
return "/playlists";
|
||||||
case ChannelTabs.CHANNELS:
|
default:
|
||||||
return "/channels";
|
throw new UnsupportedTabException(tab);
|
||||||
}
|
}
|
||||||
throw new UnsupportedTabException(tab);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -66,8 +65,7 @@ public final class YoutubeChannelTabLinkHandlerFactory extends ListLinkHandlerFa
|
||||||
ChannelTabs.VIDEOS,
|
ChannelTabs.VIDEOS,
|
||||||
ChannelTabs.SHORTS,
|
ChannelTabs.SHORTS,
|
||||||
ChannelTabs.LIVESTREAMS,
|
ChannelTabs.LIVESTREAMS,
|
||||||
ChannelTabs.PLAYLISTS,
|
ChannelTabs.PLAYLISTS
|
||||||
ChannelTabs.CHANNELS
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue