diff options
author | James Taylor <28744867+user234683@users.noreply.github.com> | 2020-10-21 09:57:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-21 09:57:49 -0700 |
commit | f01ef36a37c9112eca3f85d49622c41d68000a69 (patch) | |
tree | f62f99169397b3779a5a9c2db4dca9beb0a86b56 /server.py | |
parent | c696db3e84d91092182adbeb7eef6126fad6be5d (diff) | |
parent | a27b575380378f1b490dcabb8cc67f05adee5daa (diff) | |
download | yt-local-f01ef36a37c9112eca3f85d49622c41d68000a69.tar.lz yt-local-f01ef36a37c9112eca3f85d49622c41d68000a69.tar.xz yt-local-f01ef36a37c9112eca3f85d49622c41d68000a69.zip |
Merge pull request #34 from zrose584/rm_whitespaces
remove trailing whitespaces
Diffstat (limited to 'server.py')
-rw-r--r-- | server.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -66,7 +66,7 @@ def proxy_site(env, start_response, video=False): # such as 8192 lest that causes the socket library to limit the # TCP window size # Might need fine-tuning, since this gives us 4*65536 - # The tradeoff is that larger values (such as 6 seconds) only + # The tradeoff is that larger values (such as 6 seconds) only # allows video to buffer in those increments, meaning user must wait # until the entire chunk is downloaded before video starts playing content_part = response.read(32*8192) @@ -95,9 +95,9 @@ def split_url(url): match = re.match(r'(?:https?://)?([\w-]+(?:\.[\w-]+)+?)(/.*|$)', url) if match is None: raise ValueError('Invalid or unsupported url: ' + url) - + return match.group(1), match.group(2) - + def error_code(code, start_response): |