mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-08-10 10:49:45 +00:00
[fragment] Return status of download correctly
This commit is contained in:
@@ -57,9 +57,6 @@ class DashSegmentsFD(FragmentFD):
|
||||
# TODO: Make progress updates work without hooking twice
|
||||
# for ph in self._progress_hooks:
|
||||
# fd.add_progress_hook(ph)
|
||||
success = fd.real_download(filename, info_copy)
|
||||
if not success:
|
||||
return False
|
||||
return fd.real_download(filename, info_copy)
|
||||
else:
|
||||
self.download_and_append_fragments(ctx, fragments_to_download, info_dict)
|
||||
return True
|
||||
return self.download_and_append_fragments(ctx, fragments_to_download, info_dict)
|
||||
|
Reference in New Issue
Block a user