From 1fa66ffb0f6d7bec16faab45d9551f94cb662d4d Mon Sep 17 00:00:00 2001 From: James Taylor Date: Mon, 9 Jul 2018 03:01:33 -0700 Subject: fix search box not having query searched for in results page --- youtube/common.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'youtube/common.py') diff --git a/youtube/common.py b/youtube/common.py index 6e0f4eb..d119607 100644 --- a/youtube/common.py +++ b/youtube/common.py @@ -293,7 +293,7 @@ header_template = Template('''
@@ -311,11 +311,11 @@ $playlists
''') playlist_option_template = Template('''''') -def get_header(): +def get_header(search_box_value=""): playlists = '' for name in local_playlist.get_playlist_names(): playlists += playlist_option_template.substitute(name = name) - return header_template.substitute(playlists=playlists) + return header_template.substitute(playlists = playlists, search_box_value = html.escape(search_box_value)) -- cgit v1.2.3