aboutsummaryrefslogtreecommitdiffstats
path: root/youtube
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2019-01-12 22:03:16 -0800
committerJames Taylor <user234683@users.noreply.github.com>2019-01-12 22:03:16 -0800
commit08775fa2d08edcbc045a4f4eb91d6c9e727c0aaf (patch)
tree47de60310e5c6aab6e27ef9d6cfe348c74dbf5ea /youtube
parent1ba38a5c9cc7a7b21a5a8a54db630f47c9a550ea (diff)
downloadyt-local-08775fa2d08edcbc045a4f4eb91d6c9e727c0aaf.tar.lz
yt-local-08775fa2d08edcbc045a4f4eb91d6c9e727c0aaf.tar.xz
yt-local-08775fa2d08edcbc045a4f4eb91d6c9e727c0aaf.zip
Content-Type: text/vtt for subtitles
Diffstat (limited to 'youtube')
-rw-r--r--youtube/youtube.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube/youtube.py b/youtube/youtube.py
index 240e785..b6b12fb 100644
--- a/youtube/youtube.py
+++ b/youtube/youtube.py
@@ -63,7 +63,7 @@ def youtube(env, start_response):
return f.read()
elif path.startswith("/api/"):
- start_response('200 OK', () )
+ start_response('200 OK', [('Content-type', 'text/vtt'),] )
result = common.fetch_url('https://www.youtube.com' + path + ('?' + query_string if query_string else ''))
result = result.replace(b"align:start position:0%", b"")
return result