Display the download button for files that are not downloading and have 0 progress #381
No reviewers
Labels
No labels
accessibility
app-parity
area: creator
area: daemon
area: design
area: devops
area: discovery
area: docs
area: installer
area: internal
area: livestream
area: performance
area: proposal
area: reposts
area: rewards
area: search
area: security
area: subscriptions
area: sync
area: ux
area: viewer
area: wallet
BEAMER
channel
comments
community PR
consider soon
core team
css
dependencies
electron
Epic
feature request
first-timers-only
good first issue
hacktoberfest
help wanted
hub-dependent
icebox
Invalid
level: 0
level: 1
level: 2
level: 3
level: 4
merge when green
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
notifications
odysee
on hold
playlists
priority: blocker
priority: high
priority: low
priority: medium
protocol dependent
recsys
redesign
regression
resilience
sdk dependent
Tom's Wishlist
trending
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbry-desktop#381
Loading…
Reference in a new issue
No description provided.
Delete branch "no-progress-downloads"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Seems to be a problem where some files start to download but never receive any data. Then the "open" link appears when viewing them after the app has been restarted. This switches it to display the download link still.
I'm merging this because it seems better than the alternative, but both still seem wrong. If the stream descriptor blob has been downloaded, then the daemon will continue to try to download the file without any additional actions by the user. This should really be sitting at 0%, I think.
@kauffj agree, I didn't write a note as it was like 1:30am when I pushed this. It seemed like the simplest possible quick fix. Perhaps we should check if
fileInfo.written_bytes < fileInfo.total_bytes && !downloading
when this component is mounted/receives props. If the above is true then add it to the downloading files and restart the update download progress timeout code.@6ea86b96 it seems like we could possibly have the
FILE_LIST_SUCCEEDED
reducer update the downloading status (or directly read the downloading status directly from allFileInfo
s)?Either way, my inclination would be to see if we could get to the proper state from the initial
file_list
call, rather than re-checking on receive props.