aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/subscriptions.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2019-09-18 21:39:53 -0700
committerJames Taylor <user234683@users.noreply.github.com>2019-09-19 11:06:34 -0700
commitdc6c370152d063ad4198c747fc12eb06fc1ec0e4 (patch)
treeaf8fe44dd7440fde043040f2f2485aa31e22a6d9 /youtube/subscriptions.py
parent89e5761f8d9ae4221c4a97eca3c0fce3405a5bc4 (diff)
downloadyt-local-dc6c370152d063ad4198c747fc12eb06fc1ec0e4.tar.lz
yt-local-dc6c370152d063ad4198c747fc12eb06fc1ec0e4.tar.xz
yt-local-dc6c370152d063ad4198c747fc12eb06fc1ec0e4.zip
Extraction: refactor response extraction to work with both mobile & desktop respones, also improve errors
Diffstat (limited to 'youtube/subscriptions.py')
-rw-r--r--youtube/subscriptions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube/subscriptions.py b/youtube/subscriptions.py
index 87e1659..e0c71f5 100644
--- a/youtube/subscriptions.py
+++ b/youtube/subscriptions.py
@@ -456,8 +456,8 @@ def _get_upstream_videos(channel_id):
traceback.print_exc()
channel_info = yt_data_extract.extract_channel_info(json.loads(channel_tab), 'videos')
- if channel_info['errors']:
- print('Error checking channel ' + channel_status_name + ': ' + ', '.join(channel_info['errors']))
+ if channel_info['error']:
+ print('Error checking channel ' + channel_status_name + ': ' + channel_info['error'])
return
videos = channel_info['items']