From 230297659bf144465e0a7ea6b350587b7263c0d9 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Thu, 12 Jul 2018 19:58:43 -0700 Subject: fix shelves breaking channel playlist page --- youtube/channel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'youtube/channel.py') diff --git a/youtube/channel.py b/youtube/channel.py index 6fd0dbd..5215249 100644 --- a/youtube/channel.py +++ b/youtube/channel.py @@ -266,7 +266,7 @@ def get_channel_page(url, query_string=''): polymer_json = json.loads(polymer_json) return channel_about_page(polymer_json) elif tab == 'playlists': - polymer_json = common.fetch_url('https://www.youtube.com/channel/' + channel_id + '/playlists?pbj=1', headers_1) + polymer_json = common.fetch_url('https://www.youtube.com/channel/' + channel_id + '/playlists?pbj=1&view=1', headers_1) '''with open('debug/channel_playlists_debug', 'wb') as f: f.write(polymer_json)''' polymer_json = json.loads(polymer_json) @@ -290,7 +290,7 @@ def get_user_page(url, query_string=''): polymer_json = json.loads(polymer_json) return channel_about_page(polymer_json) elif page == 'playlists': - polymer_json = common.fetch_url('https://www.youtube.com/user/' + username + '/playlists?pbj=1', headers_1) + polymer_json = common.fetch_url('https://www.youtube.com/user/' + username + '/playlists?pbj=1&view=1', headers_1) polymer_json = json.loads(polymer_json) return channel_playlists_html(polymer_json) else: -- cgit v1.2.3