diff options
| -rw-r--r-- | youtube_dl/downloader/fragment.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/youtube_dl/downloader/fragment.py b/youtube_dl/downloader/fragment.py index 5a64b29ee..3da554622 100644 --- a/youtube_dl/downloader/fragment.py +++ b/youtube_dl/downloader/fragment.py @@ -66,7 +66,7 @@ class FragmentFD(FileDownloader):              if s['status'] not in ('downloading', 'finished'):                  return -            frag_total_bytes = s.get('total_bytes', 0) +            frag_total_bytes = s.get('total_bytes') or 0              if s['status'] == 'finished':                  state['downloaded_bytes'] += frag_total_bytes                  state['frag_index'] += 1 | 
