projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83fddfd
)
[youtube:truncated_url] Add hl= forms (#4799)
author
Philipp Hagemeister
<phihag@phihag.de>
Fri, 30 Jan 2015 02:45:29 +0000
(
03:45
+0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Fri, 30 Jan 2015 02:45:29 +0000
(
03:45
+0100)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index b7b91f354dbf07f0aa4e639d75d57fd51fe37687..bc5fa0b398ce7993c6f7d7143efa1a2702dff754 100644
(file)
--- 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):