From 08775fa2d08edcbc045a4f4eb91d6c9e727c0aaf Mon Sep 17 00:00:00 2001 From: James Taylor Date: Sat, 12 Jan 2019 22:03:16 -0800 Subject: Content-Type: text/vtt for subtitles --- youtube/youtube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'youtube') 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 -- cgit v1.2.3