hls-downloader: Download status not being changed from "saving"

Describe the bug Once a download hits 100% most of the time I don’t get a save dialog and a file does not get saved. Things just get “stuck”.

Looking at the code, it appears that even though the download percentage hits 100%, the status remains as saving because the save icon remains disabled.

I think fixing this issue will fix a number of other issues reported.

Sorry, I have no experience with react/redux so this code all looks very foreign to me, otherwise, I would try to fix it myself.

But looking at LevelView.tsx around line 63, it seems that the download button is only disabled when the state is saving - which leads me to believe that whatever is supposed to change the state is not happening.

{["ready", "done", "saving"].includes(status?.status!) && (
  <IconButton
    aria-label="save"
    icon="download"
    isDisabled={status?.status === "saving"}
    onClick={onSaveLevelClick}
  />
)}

Expected behavior Once a stream is finished downloading (reaches 100%) the status should change to done

Screenshots Screenshot_8_13_20__3_42_PM

Desktop (please complete the following information):

  • OS: OSX 10.15.6
  • Browser chome, firefox, brave

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

Just tested with 4.1Gb and it works 🎉 link https://www.dailymotion.com/video/x7ur89b Still need to resolve some memory issues and clean up.

You’re welcome to try on your own risk (pay attention the clean your application data) #132

During next week I’m planning a total refactor of the download manager which will solve these issues and provide:

  1. Better storage performance
  2. Restore downloads in case of browser reset

I’ve got a working prototype but I need to test it on large files (+2gb), any ideas?