diff options
author | James Taylor <user234683@users.noreply.github.com> | 2018-12-25 01:26:23 -0800 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2018-12-25 01:26:23 -0800 |
commit | d5e2e3ee8a4db85a90683f17f93ba648f86e0df0 (patch) | |
tree | 49ffb525d6838c0f39d9e07f24fbbc651695cc92 /youtube/youtube.py | |
parent | fef272af4f05c9ba8104fb58f03ae06624219357 (diff) | |
download | yt-local-d5e2e3ee8a4db85a90683f17f93ba648f86e0df0.tar.lz yt-local-d5e2e3ee8a4db85a90683f17f93ba648f86e0df0.tar.xz yt-local-d5e2e3ee8a4db85a90683f17f93ba648f86e0df0.zip |
Added account login page
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() |