diff options
author | James Taylor <user234683@users.noreply.github.com> | 2018-12-24 23:39:09 -0800 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2018-12-24 23:39:09 -0800 |
commit | 3d1a1189e7b23b696a76352ddb564475e41c7292 (patch) | |
tree | 3e2af8f77f50fc9596a820fb2b7169852df2a5ce /youtube/youtube.py | |
parent | 888a850dbf399dcd7a927dd40afd982e3296a804 (diff) | |
download | yt-local-3d1a1189e7b23b696a76352ddb564475e41c7292.tar.lz yt-local-3d1a1189e7b23b696a76352ddb564475e41c7292.tar.xz yt-local-3d1a1189e7b23b696a76352ddb564475e41c7292.zip |
Reorganized account and commenting functions into different files
Diffstat (limited to 'youtube/youtube.py')
-rw-r--r-- | youtube/youtube.py | 6 |
1 files changed, 3 insertions, 3 deletions
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: |