aboutsummaryrefslogtreecommitdiffhomepage
path: root/youtube_dl
diff options
context:
space:
mode:
authordirkf <[email protected]>2022-06-09 15:25:23 +0100
committerdirkf <[email protected]>2022-06-09 15:25:23 +0100
commit811c480f7b6c25ca510a033e6365d00174135392 (patch)
treedf7b9e47b093789a9bcfa382f3608be9b7767d03 /youtube_dl
parent3aa94d7945dfaa0e04acf2700ffe0e43b00db498 (diff)
downloadyoutube-dl-811c480f7b6c25ca510a033e6365d00174135392.tar.gz
youtube-dl-811c480f7b6c25ca510a033e6365d00174135392.zip
[YouTube] Support JSON3 subtitle format
* subtitle tests updated to match
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/youtube.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index 9c62b8890..91a3b6058 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -499,7 +499,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
r'/(?P<id>[a-zA-Z0-9_-]{8,})/player(?:_ias\.vflset(?:/[a-zA-Z]{2,3}_[a-zA-Z]{2,3})?|-plasma-ias-(?:phone|tablet)-[a-z]{2}_[A-Z]{2}\.vflset)/base\.js$',
r'\b(?P<id>vfl[a-zA-Z0-9_-]+)\b.*?\.js$',
)
- _SUBTITLE_FORMATS = ('srv1', 'srv2', 'srv3', 'ttml', 'vtt')
+ _SUBTITLE_FORMATS = ('json3', 'srv1', 'srv2', 'srv3', 'ttml', 'vtt')
_GEO_BYPASS = False