From d5e2e3ee8a4db85a90683f17f93ba648f86e0df0 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Tue, 25 Dec 2018 01:26:23 -0800 Subject: Added account login page --- youtube/youtube.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'youtube/youtube.py') 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() -- cgit v1.2.3