Browse Source

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

master
Jaime Marquínez Ferrándiz 9 years ago
parent
commit
2929fa0e79
1 changed files with 2 additions and 0 deletions
  1. 2
      youtube_dl/extractor/youtube.py

2
youtube_dl/extractor/youtube.py

@ -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])

Loading…
Cancel
Save