diff options
author | James Taylor <user234683@users.noreply.github.com> | 2019-02-21 21:32:31 -0800 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2019-02-21 21:32:31 -0800 |
commit | b32330be4f15dd044e6212f526e52375f0a0f6c2 (patch) | |
tree | fe2f7da84243d895e46967bd39d61d6cf17dab21 /youtube/youtube.py | |
parent | a61ba6b8f45d94bf8e89a9f351c5c6cac2379387 (diff) | |
download | yt-local-b32330be4f15dd044e6212f526e52375f0a0f6c2.tar.lz yt-local-b32330be4f15dd044e6212f526e52375f0a0f6c2.tar.xz yt-local-b32330be4f15dd044e6212f526e52375f0a0f6c2.zip |
refactor common.py into 3 files
Diffstat (limited to 'youtube/youtube.py')
-rw-r--r-- | youtube/youtube.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube/youtube.py b/youtube/youtube.py index b6b12fb..a6a216e 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, accounts +from youtube import local_playlist, watch, search, playlist, channel, comments, post_comment, accounts, util import settings YOUTUBE_FILES = ( "/shared.css", @@ -64,7 +64,7 @@ def youtube(env, start_response): elif path.startswith("/api/"): start_response('200 OK', [('Content-type', 'text/vtt'),] ) - result = common.fetch_url('https://www.youtube.com' + path + ('?' + query_string if query_string else '')) + result = util.fetch_url('https://www.youtube.com' + path + ('?' + query_string if query_string else '')) result = result.replace(b"align:start position:0%", b"") return result |