1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-12-24 17:25:52 +01:00

[youtube] Also look into the 'start' field for start_time

This commit is contained in:
Jaime Marquínez Ferrándiz 2015-07-23 13:21:18 +02:00
parent 297a564bee
commit 2929fa0e79

View File

@ -900,6 +900,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
query = compat_parse_qs(component) query = compat_parse_qs(component)
if start_time is None and 't' in query: if start_time is None and 't' in query:
start_time = parse_duration(query['t'][0]) start_time = parse_duration(query['t'][0])
if start_time is None and 'start' in query:
start_time = parse_duration(query['start'][0])
if end_time is None and 'end' in query: if end_time is None and 'end' in query:
end_time = parse_duration(query['end'][0]) end_time = parse_duration(query['end'][0])