]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[youtube] Also look into the 'start' field for start_time
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Thu, 23 Jul 2015 11:21:18 +0000 (13:21 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Thu, 23 Jul 2015 11:21:18 +0000 (13:21 +0200)
youtube_dl/extractor/youtube.py

index 117ef2e776ab50bfdf8c54c08a106eaa444dda64..462d244d8881cd2c098f45705b3443e6b16aff04 100644 (file)
@@ -900,6 +900,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
             query = compat_parse_qs(component)
             if start_time is None and 't' in query:
                 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:
                 end_time = parse_duration(query['end'][0])