1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 00:37:41 +00:00

[extractor/common] Fix typo

This commit is contained in:
Sergey M․ 2016-11-02 02:21:43 +07:00
parent 02dc0a36b7
commit 1616f9b452
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -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
fragment_ctx['duration'] = (next_fragment_time - frgament_time) / fragment_repeat
fragment_ctx['duration'] = (next_fragment_time - fragment_ctx['time']) / fragment_repeat
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']