aboutsummaryrefslogtreecommitdiffstats
path: root/youtube
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2018-07-12 19:58:43 -0700
committerJames Taylor <user234683@users.noreply.github.com>2018-07-12 19:59:23 -0700
commit230297659bf144465e0a7ea6b350587b7263c0d9 (patch)
tree26d61257fe1873cacf88a4502a6c36fa05ae0689 /youtube
parent02780a46915bf805abaeb6ff661a013f5c3254bf (diff)
downloadyt-local-230297659bf144465e0a7ea6b350587b7263c0d9.tar.lz
yt-local-230297659bf144465e0a7ea6b350587b7263c0d9.tar.xz
yt-local-230297659bf144465e0a7ea6b350587b7263c0d9.zip
fix shelves breaking channel playlist page
Diffstat (limited to 'youtube')
-rw-r--r--youtube/channel.py4
1 files changed, 2 insertions, 2 deletions
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: