projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
02dc0a3
)
[extractor/common] Fix typo
author
Sergey M․
<dstftw@gmail.com>
Tue, 1 Nov 2016 19:21:43 +0000
(
02:21
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 1 Nov 2016 19:30:25 +0000
(
02:30
+0700)
youtube_dl/extractor/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index 140ccf23422c88b9fa4524f26b7fca5b06e1bda1..7e01c5fbb509d23b662b53ecdd0e690db60f1bb0 100644
(file)
--- a/
youtube_dl/extractor/common.py
+++ b/
youtube_dl/extractor/common.py
@@
-1839,10
+1839,10
@@
class InfoExtractor(object):
next_fragment_time = int(stream_fragment[stream_fragment_index + 1].attrib['t'])
except IndexError:
next_fragment_time = duration
next_fragment_time = int(stream_fragment[stream_fragment_index + 1].attrib['t'])
except IndexError:
next_fragment_time = duration
- fragment_ctx['duration'] = (next_fragment_time - fr
gament_time
) / fragment_repeat
+ fragment_ctx['duration'] = (next_fragment_time - fr
agment_ctx['time']
) / fragment_repeat
for _ in range(fragment_repeat):
fragments.append({
for _ in range(fragment_repeat):
fragments.append({
- 'url': re.sub(r'{start[ _]time}', str(fragment_ctx['time']), track_url_pattern),
+ 'url': re.sub(r'{start[ _]time}',
compat_
str(fragment_ctx['time']), track_url_pattern),
'duration': fragment_ctx['duration'] / stream_timescale,
})
fragment_ctx['time'] += fragment_ctx['duration']
'duration': fragment_ctx['duration'] / stream_timescale,
})
fragment_ctx['time'] += fragment_ctx['duration']