From 449997ff6ec9e4c56cf7876375ac507bea51bf5b Mon Sep 17 00:00:00 2001 From: Baltazar Gomez Date: Sat, 30 Sep 2017 20:50:32 -0600 Subject: [PATCH 1/4] fix #605 Don't play video if you can't pay for it :( --- ui/js/actions/content.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/js/actions/content.js b/ui/js/actions/content.js index f6a5ac94b..6d59bde7f 100644 --- a/ui/js/actions/content.js +++ b/ui/js/actions/content.js @@ -351,6 +351,7 @@ export function doPurchaseUri(uri) { const { cost } = costInfo; if (cost > balance) { + dispatch(doSetPlayingUri(null)); dispatch(doOpenModal(modals.INSUFFICIENT_CREDITS)); return Promise.resolve(); } From c25ee25482255abace5e84ae1f74dcc99518e805 Mon Sep 17 00:00:00 2001 From: Baltazar Gomez Date: Sat, 30 Sep 2017 21:01:47 -0600 Subject: [PATCH 2/4] update change log --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 342ec92a4..62c5f9813 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ Web UI version numbers should always match the corresponding version of LBRY App * While editing a publish, the URL will no longer change if you select a new file. (#601) * Fixed issues with opening the folder for a file (#606) * Be consistent with the step property on credit inputs (#604) + * Fixed issue after accessing a video without enough credits (#605) ### Deprecated * From 45ca07115b896f8d424daaa7c00444fe0549b6fe Mon Sep 17 00:00:00 2001 From: Baltazar Gomez Date: Sat, 30 Sep 2017 23:39:00 -0600 Subject: [PATCH 3/4] Fix #643 Reset playing uri --- ui/js/actions/content.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/js/actions/content.js b/ui/js/actions/content.js index 6d59bde7f..47ad21272 100644 --- a/ui/js/actions/content.js +++ b/ui/js/actions/content.js @@ -295,6 +295,7 @@ export function doLoadVideo(uri) { streamInfo.error == "Timeout"; if (timeout) { + dispatch(doSetPlayingUri(null)); dispatch({ type: types.LOADING_VIDEO_FAILED, data: { uri }, @@ -306,6 +307,7 @@ export function doLoadVideo(uri) { } }) .catch(error => { + dispatch(doSetPlayingUri(null)); dispatch({ type: types.LOADING_VIDEO_FAILED, data: { uri }, From 732b8d219fcc6d33631c9ebdd4c377c554fabb7d Mon Sep 17 00:00:00 2001 From: Baltazar Gomez Date: Sat, 30 Sep 2017 23:47:45 -0600 Subject: [PATCH 4/4] update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 62c5f9813..2bb343f8b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ Web UI version numbers should always match the corresponding version of LBRY App * While editing a publish, the URL will no longer change if you select a new file. (#601) * Fixed issues with opening the folder for a file (#606) * Be consistent with the step property on credit inputs (#604) + * Fixed issue when file fails to download (#642) * Fixed issue after accessing a video without enough credits (#605) ### Deprecated