From 3d1a1189e7b23b696a76352ddb564475e41c7292 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Mon, 24 Dec 2018 23:39:09 -0800 Subject: Reorganized account and commenting functions into different files --- youtube/youtube.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'youtube/youtube.py') diff --git a/youtube/youtube.py b/youtube/youtube.py index eb319e1..f49e6cf 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, account_functions +from youtube import local_playlist, watch, search, playlist, channel, comments, common, post_comment import settings YOUTUBE_FILES = ( "/shared.css", @@ -66,7 +66,7 @@ def youtube(env, start_response): elif path == "/post_comment": start_response('200 OK', () ) - return account_functions.get_post_comment_page(query_string).encode() + return post_comment.get_post_comment_page(query_string).encode() elif path == "/opensearch.xml": with open("youtube" + path, 'rb') as f: @@ -101,7 +101,7 @@ def youtube(env, start_response): elif path in ("/post_comment", "/comments"): parameters = urllib.parse.parse_qs(query_string) - account_functions.post_comment(parameters, fields) + post_comment.post_comment(parameters, fields) if 'parent_id' in parameters: start_response('303 See Other', (('Location', common.URL_ORIGIN + '/comments?' + query_string),) ) else: -- cgit v1.2.3