diff options
author | James Taylor <user234683@users.noreply.github.com> | 2021-08-17 17:58:17 -0700 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-08-29 18:48:56 -0500 |
commit | c9a75042d24ed969e0cf5ae0d7b76ccb3c41a93b (patch) | |
tree | 2083e8db6f479676a969fe13bda3a6c9cfcbc114 /server.py | |
parent | e4af99fd178c39b584001fa1b7d6d62d88bc7a60 (diff) | |
download | yt-local-c9a75042d24ed969e0cf5ae0d7b76ccb3c41a93b.tar.lz yt-local-c9a75042d24ed969e0cf5ae0d7b76ccb3c41a93b.tar.xz yt-local-c9a75042d24ed969e0cf5ae0d7b76ccb3c41a93b.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.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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, |