summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2015-01-30 03:45:29 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2015-01-30 03:45:29 +0100
commitc1708b89c09d7288213110fba859f4c5e0339c31 (patch)
tree59ca1f78eafa55bfea40ed59f9387edccae4100d
parent83fddfd493ffcbb7256f0f1a467cc48ca2191090 (diff)
downloadyoutube-dl-c1708b89c09d7288213110fba859f4c5e0339c31.tar.gz
youtube-dl-c1708b89c09d7288213110fba859f4c5e0339c31.tar.xz
youtube-dl-c1708b89c09d7288213110fba859f4c5e0339c31.zip
[youtube:truncated_url] Add hl= forms (#4799)
-rw-r--r--youtube_dl/extractor/youtube.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index b7b91f354..bc5fa0b39 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -1688,6 +1688,7 @@ class YoutubeTruncatedURLIE(InfoExtractor):
             feature=[a-z_]+|
             annotation_id=annotation_[^&]+|
             x-yt-cl=[0-9]+|
+            hl=[^&]*|
         )?
         |
             attribution_link\?a=[^&]+
@@ -1707,6 +1708,9 @@ class YoutubeTruncatedURLIE(InfoExtractor):
     }, {
         'url': 'https://www.youtube.com/watch?feature=foo',
         'only_matching': True,
+    }, {
+        'url': 'https://www.youtube.com/watch?hl=en-GB',
+        'only_matching': True,
     }]
 
     def _real_extract(self, url):