diff options
Diffstat (limited to 'youtube/youtube.py')
-rw-r--r-- | youtube/youtube.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/youtube/youtube.py b/youtube/youtube.py index f49e6cf..a08d7b5 100644 --- a/youtube/youtube.py +++ b/youtube/youtube.py @@ -1,7 +1,7 @@ import mimetypes import urllib.parse import os -from youtube import local_playlist, watch, search, playlist, channel, comments, common, post_comment +from youtube import local_playlist, watch, search, playlist, channel, comments, common, post_comment, accounts import settings YOUTUBE_FILES = ( "/shared.css", @@ -74,6 +74,10 @@ def youtube(env, start_response): start_response('200 OK', (('Content-type',mime_type),) ) return f.read().replace(b'$port_number', str(settings.port_number).encode()) + elif path == "/login": + start_response('200 OK', (('Content-type','text/html'),) ) + return accounts.get_account_login_page(query_string=query_string).encode() + else: start_response('200 OK', (('Content-type','text/html'),) ) return channel.get_channel_page_general_url(path, query_string=query_string).encode() |