aboutsummaryrefslogtreecommitdiffstats
path: root/server.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2021-08-17 17:58:17 -0700
committerJesús <heckyel@hyperbola.info>2021-08-29 18:44:26 -0500
commitd56df02e7b1eba86baf511289208295b1f6c5a50 (patch)
tree2083e8db6f479676a969fe13bda3a6c9cfcbc114 /server.py
parent0c106bb1110f8c1f75b77bdd65a5ecdff4135680 (diff)
downloadyt-local-d56df02e7b1eba86baf511289208295b1f6c5a50.tar.lz
yt-local-d56df02e7b1eba86baf511289208295b1f6c5a50.tar.xz
yt-local-d56df02e7b1eba86baf511289208295b1f6c5a50.zip
Add support for more qualities, merging video+audio using MSE
Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'server.py')
-rw-r--r--server.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/server.py b/server.py
index ebe67dc..c038d6d 100644
--- a/server.py
+++ b/server.py
@@ -87,6 +87,9 @@ def proxy_site(env, start_response, video=False):
response_headers = response.getheaders()
if isinstance(response_headers, urllib3._collections.HTTPHeaderDict):
response_headers = response_headers.items()
+ if video:
+ response_headers = (list(response_headers)
+ +[('Access-Control-Allow-Origin', '*')])
if first_attempt:
start_response(str(response.status) + ' ' + response.reason,