mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-26 01:37:27 +00:00
[youtube:truncated_url] Add hl= forms (#4799)
This commit is contained in:
parent
83fddfd493
commit
c1708b89c0
1 changed files with 4 additions and 0 deletions
|
@ -1688,6 +1688,7 @@ class YoutubeTruncatedURLIE(InfoExtractor):
|
||||||
feature=[a-z_]+|
|
feature=[a-z_]+|
|
||||||
annotation_id=annotation_[^&]+|
|
annotation_id=annotation_[^&]+|
|
||||||
x-yt-cl=[0-9]+|
|
x-yt-cl=[0-9]+|
|
||||||
|
hl=[^&]*|
|
||||||
)?
|
)?
|
||||||
|
|
|
|
||||||
attribution_link\?a=[^&]+
|
attribution_link\?a=[^&]+
|
||||||
|
@ -1707,6 +1708,9 @@ class YoutubeTruncatedURLIE(InfoExtractor):
|
||||||
}, {
|
}, {
|
||||||
'url': 'https://www.youtube.com/watch?feature=foo',
|
'url': 'https://www.youtube.com/watch?feature=foo',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
|
}, {
|
||||||
|
'url': 'https://www.youtube.com/watch?hl=en-GB',
|
||||||
|
'only_matching': True,
|
||||||
}]
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
|
Loading…
Reference in a new issue