zer0net / ifs-master

IFS Master
http://127.0.0.1:43110/12MVkvYGcRW6u2NYbpfwVad1oQeyG4s9Er/
5 stars 1 forks source link

green progress bar: is visually one chunk behind #214

Closed haschimoto closed 5 years ago

haschimoto commented 5 years ago
haschimoto commented 5 years ago

here is an example: snap 2018-08-07 at 21 07 20

all chunks have been downloaded, but display shows 2 green and 1 in progress

this immediatly corrects after refresh, so its only valid for new, previously unclicked files

dnelband commented 5 years ago

this what i see , checking with several videos: the number of the green bars is identical to the number of pieces in the piecesInfo array with status - "completed". can you please update, delete a video, and then reload it with the console panel open, and send me a print screen of your results? screen shot 2018-08-07 at 22 07 14

haschimoto commented 5 years ago

not done. simple test: /12MVkvYGcRW6u2NYbpfwVad1oQeyG4s9Er/index.html?view:item+id:1Mz1_17uRwFQYo1RCDno3shrJv8mLcBKHLRrfpT_item_194+type:audio

looks like this: snap 2018-08-07 at 22 26 20

dnelband commented 5 years ago

I’ve put the label by mistake, can u open the console panel , like i did in the example, expand the piecesInfo array (it has an arrow on the left), and send me the printscreen?

haschimoto commented 5 years ago

Can you load a very simple mp3 with 2 chunks and check yourself without refresh?

dnelband commented 5 years ago

yeah sorry, i located the problem, i thought it was somewhere else.

dnelband commented 5 years ago

i've pushed a fix, please update & test, now i see the download bar loading from 0 - 100% smoothly and shows "file downloaded" only when everything is green

haschimoto commented 5 years ago

Yes, works!

haschimoto commented 5 years ago

It doesnt work now anymore... its back to being 1 chunk behind.