aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/subscriptions.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2021-03-02 17:08:20 -0800
committerJesús <heckyel@hyperbola.info>2021-03-03 10:33:45 -0500
commitf7ed8159cd50a034bae0231cd61ebad6e3e2ceec (patch)
treed4f5df8c193b99e47a0076e76d120cbe1ab51b9b /youtube/subscriptions.py
parent2d9aca4b8b9b733f54af4a24b9c4b5961d78de1e (diff)
downloadyt-local-f7ed8159cd50a034bae0231cd61ebad6e3e2ceec.tar.lz
yt-local-f7ed8159cd50a034bae0231cd61ebad6e3e2ceec.tar.xz
yt-local-f7ed8159cd50a034bae0231cd61ebad6e3e2ceec.zip
Channel: use general pbj=1 endpoint to get first page of videos
YouTube disabled the browse_ajax endpoint. Quick fix for first channel page. In general, this will be more robust against api endpoint changes. As YouTube continues to change api endpoints, at least the subscriptions and first page will no longer break. Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'youtube/subscriptions.py')
-rw-r--r--youtube/subscriptions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube/subscriptions.py b/youtube/subscriptions.py
index b841f5d..c18f822 100644
--- a/youtube/subscriptions.py
+++ b/youtube/subscriptions.py
@@ -484,7 +484,7 @@ def _get_upstream_videos(channel_id):
tasks = (
# channel page, need for video duration
- gevent.spawn(_get_channel_tab, channel_id, channel_status_name),
+ gevent.spawn(channel.get_channel_first_page, channel_id=channel_id),
# need atoma feed for exact published time
gevent.spawn(_get_atoma_feed, channel_id)
)