projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[dailymotion] Add support for new layout (close #13580)
[youtube-dl]
/
youtube_dl
/
downloader
/
ism.py
diff --git
a/youtube_dl/downloader/ism.py
b/youtube_dl/downloader/ism.py
index 9f0fc36b394a910ad6b31eb21ad638af46808938..5f6f9faefbad62592d699135437ec81add27ae39 100644
(file)
--- a/
youtube_dl/downloader/ism.py
+++ b/
youtube_dl/downloader/ism.py
@@
-227,15
+227,11
@@
class IsmFD(FragmentFD):
frag_index = 0
for i, segment in enumerate(segments):
frag_index += 1
frag_index = 0
for i, segment in enumerate(segments):
frag_index += 1
- if frag_index <= ctx['frag_index']:
+ if frag_index <= ctx['frag
ment
_index']:
continue
count = 0
while count <= fragment_retries:
try:
continue
count = 0
while count <= fragment_retries:
try:
- success = ctx['dl'].download(target_filename, {
- 'url': segment_url,
- 'http_headers': info_dict.get('http_headers'),
- })
success, frag_content = self._download_fragment(ctx, segment['url'], info_dict)
if not success:
return False
success, frag_content = self._download_fragment(ctx, segment['url'], info_dict)
if not success:
return False