From 014da8d3ae842d217e67c1d11d19984187b96258 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Sun, 15 Sep 2019 15:15:23 -0700 Subject: Fix list of local playlists not being given on subscriptions page and local playlist page --- youtube/local_playlist.py | 1 + youtube/subscriptions.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/youtube/local_playlist.py b/youtube/local_playlist.py index 2375ba2..cc6132a 100644 --- a/youtube/local_playlist.py +++ b/youtube/local_playlist.py @@ -110,6 +110,7 @@ def get_local_playlist_page(playlist_name=None): offset = 50*(page - 1) videos, num_videos = get_local_playlist_videos(playlist_name, offset=offset, amount=50) return flask.render_template('local_playlist.html', + header_playlist_names = get_playlist_names(), playlist_name = playlist_name, videos = videos, num_pages = math.ceil(num_videos/50), diff --git a/youtube/subscriptions.py b/youtube/subscriptions.py index 56bdf93..c9638cf 100644 --- a/youtube/subscriptions.py +++ b/youtube/subscriptions.py @@ -1,4 +1,4 @@ -from youtube import util, yt_data_extract, channel +from youtube import util, yt_data_extract, channel, local_playlist from youtube import yt_app import settings @@ -774,6 +774,7 @@ def get_subscriptions_page(): }) return flask.render_template('subscriptions.html', + header_playlist_names = local_playlist.get_playlist_names(), videos = videos, num_pages = math.ceil(number_of_videos_in_db/60), parameters_dictionary = request.args, -- cgit v1.2.3