aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-07-23 13:21:18 +0200
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-07-23 13:21:18 +0200
commit2929fa0e79dfd3a1366e7e23eb4344bc93dd3a10 (patch)
tree56d231f6a15c6ce2ed46fe89121cbe2d99dff1fd
parent297a564beeb20ca8b00d94f5707532110631f409 (diff)
downloadyoutube-dl-2929fa0e79dfd3a1366e7e23eb4344bc93dd3a10.tar.xz
[youtube] Also look into the 'start' field for start_time
-rw-r--r--youtube_dl/extractor/youtube.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index 117ef2e77..462d244d8 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -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])