diff options
author | James Taylor <user234683@users.noreply.github.com> | 2019-06-17 20:47:58 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2019-06-17 20:50:00 -0700 |
commit | 1ba241186299df50a94efd3d410a4422bdc2d6c3 (patch) | |
tree | f6d387972acb2f743e6aee0b0baaa3d4d524ac53 /youtube/watch.py | |
parent | 2db58930a6f8c955c4d437657bd07e2939a705f2 (diff) | |
download | yt-local-1ba241186299df50a94efd3d410a4422bdc2d6c3.tar.lz yt-local-1ba241186299df50a94efd3d410a4422bdc2d6c3.tar.xz yt-local-1ba241186299df50a94efd3d410a4422bdc2d6c3.zip |
Inherit from base template
Diffstat (limited to 'youtube/watch.py')
-rw-r--r-- | youtube/watch.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/youtube/watch.py b/youtube/watch.py index 48fd7e3..72268a7 100644 --- a/youtube/watch.py +++ b/youtube/watch.py @@ -1,5 +1,5 @@ from youtube import yt_app -from youtube import util, html_common, comments +from youtube import util, html_common, comments, local_playlist import settings from flask import request @@ -214,9 +214,8 @@ def get_watch_page(): 'note': yt_dl_downloader._format_note(format), }) - return flask.render_template('watch.html', - header = html_common.get_header(), + header_playlist_names = local_playlist.get_playlist_names(), uploader_channel_url = '/' + info['uploader_url'], upload_date = upload_date, views = (lambda x: '{:,}'.format(x) if x is not None else "")(info.get("view_count", None)), |