diff options
author | James Taylor <user234683@users.noreply.github.com> | 2019-07-24 00:43:01 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2019-07-24 00:43:01 -0700 |
commit | 10f1d7945ea5b87069dd2086defbad9277789227 (patch) | |
tree | d82a3d6091448a6d7bb3190c6e845150ca5a7b4e /youtube | |
parent | b56e65e0515cf5894640e186b4df01c051a85b17 (diff) | |
download | yt-local-10f1d7945ea5b87069dd2086defbad9277789227.tar.lz yt-local-10f1d7945ea5b87069dd2086defbad9277789227.tar.xz yt-local-10f1d7945ea5b87069dd2086defbad9277789227.zip |
channel bugfix: supply playlist names in playlist adding form for tabs with vids
Diffstat (limited to 'youtube')
-rw-r--r-- | youtube/channel.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube/channel.py b/youtube/channel.py index daf4791..4c7d380 100644 --- a/youtube/channel.py +++ b/youtube/channel.py @@ -1,5 +1,5 @@ import base64 -from youtube import util, yt_data_extract +from youtube import util, yt_data_extract, local_playlist from youtube import yt_app import urllib @@ -307,6 +307,7 @@ def get_channel_page(channel_id, tab='videos'): if tab in ('videos', 'search'): info['number_of_videos'] = number_of_videos info['number_of_pages'] = math.ceil(number_of_videos/30) + info['header_playlist_names'] = local_playlist.get_playlist_names() if tab in ('videos', 'playlists'): info['current_sort'] = sort elif tab == 'search': @@ -346,6 +347,7 @@ def get_channel_page_general_url(base_url, tab, request): if tab in ('videos', 'search'): info['number_of_videos'] = 1000 info['number_of_pages'] = math.ceil(1000/30) + info['header_playlist_names'] = local_playlist.get_playlist_names() if tab in ('videos', 'playlists'): info['current_sort'] = sort elif tab == 'search': |