mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-30 03:33:02 +00:00
[youtube:truncated_url] Add ?t=
Sometimes found in links - ?t=123&v=ABCD starts the video at position 123.
This commit is contained in:
parent
953fed280f
commit
287be8c615
1 changed files with 4 additions and 0 deletions
|
@ -1970,6 +1970,7 @@ class YoutubeTruncatedURLIE(InfoExtractor):
|
||||||
annotation_id=annotation_[^&]+|
|
annotation_id=annotation_[^&]+|
|
||||||
x-yt-cl=[0-9]+|
|
x-yt-cl=[0-9]+|
|
||||||
hl=[^&]*|
|
hl=[^&]*|
|
||||||
|
t=[0-9]+
|
||||||
)?
|
)?
|
||||||
|
|
|
|
||||||
attribution_link\?a=[^&]+
|
attribution_link\?a=[^&]+
|
||||||
|
@ -1992,6 +1993,9 @@ class YoutubeTruncatedURLIE(InfoExtractor):
|
||||||
}, {
|
}, {
|
||||||
'url': 'https://www.youtube.com/watch?hl=en-GB',
|
'url': 'https://www.youtube.com/watch?hl=en-GB',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
|
}, {
|
||||||
|
'url': 'https://www.youtube.com/watch?t=2372',
|
||||||
|
'only_matching': True,
|
||||||
}]
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
|
Loading…
Reference in a new issue