diff --git a/package.json b/package.json index 6e250b5ad..e7cbacb9e 100644 --- a/package.json +++ b/package.json @@ -125,7 +125,7 @@ "jsmediatags": "^3.8.1", "json-loader": "^0.5.4", "lbry-format": "https://github.com/lbryio/lbry-format.git", - "lbry-redux": "lbryio/lbry-redux#1bd625f0c6e9e36d14eb0c520a3eb99f9600705d", + "lbry-redux": "lbryio/lbry-redux#6005fa245a888e2de045d7e42411847de7943f52", "lbryinc": "lbryio/lbryinc#1ce266b3c52654190b955e9c869b8e302aa5c585", "lint-staged": "^7.0.2", "localforage": "^1.7.1", diff --git a/src/ui/component/fileDownloadLink/view.jsx b/src/ui/component/fileDownloadLink/view.jsx index 488be2b3b..d07f2ba03 100644 --- a/src/ui/component/fileDownloadLink/view.jsx +++ b/src/ui/component/fileDownloadLink/view.jsx @@ -20,7 +20,7 @@ type Props = { function FileDownloadLink(props: Props) { const { fileInfo, downloading, loading, openModal, pause, claimIsMine, download, uri } = props; - if (loading || downloading) { + if (downloading) { const progress = fileInfo && fileInfo.written_bytes > 0 ? (fileInfo.written_bytes / fileInfo.total_bytes) * 100 : 0; const label = fileInfo && fileInfo.written_bytes > 0 ? progress.toFixed(0) + __('% downloaded') : __('Connecting...'); diff --git a/src/ui/redux/actions/content.js b/src/ui/redux/actions/content.js index 082ea41ea..9474b3944 100644 --- a/src/ui/redux/actions/content.js +++ b/src/ui/redux/actions/content.js @@ -225,6 +225,11 @@ export function doPlayUri(uri: string, skipCostCheck: boolean = false, saveFileO } } + if (fileInfo && saveFile && (!fileInfo.download_path || !fileInfo.written_bytes)) { + beginGetFile(); + return; + } + if (cost === 0 || skipCostCheck) { beginGetFile(); return; diff --git a/yarn.lock b/yarn.lock index 943858dce..e291e74ca 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6762,9 +6762,9 @@ lazy-val@^1.0.3, lazy-val@^1.0.4: yargs "^13.2.2" zstd-codec "^0.1.1" -lbry-redux@lbryio/lbry-redux#1bd625f0c6e9e36d14eb0c520a3eb99f9600705d: +lbry-redux@lbryio/lbry-redux#6005fa245a888e2de045d7e42411847de7943f52: version "0.0.1" - resolved "https://codeload.github.com/lbryio/lbry-redux/tar.gz/1bd625f0c6e9e36d14eb0c520a3eb99f9600705d" + resolved "https://codeload.github.com/lbryio/lbry-redux/tar.gz/6005fa245a888e2de045d7e42411847de7943f52" dependencies: mime "^2.4.4" proxy-polyfill "0.1.6"