From 75b28f998c1d443683e07924264c9997a8f66d5e Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Wed, 15 Feb 2017 16:46:16 -0500 Subject: [PATCH] Change Watch page to recognize "stopped" status as playable --- js/page/watch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/page/watch.js b/js/page/watch.js index 642272023..37efe8bf4 100644 --- a/js/page/watch.js +++ b/js/page/watch.js @@ -24,7 +24,7 @@ var WatchPage = React.createClass({ }, updateLoadStatus: function() { lbry.getFileStatus(this.props.name, (status) => { - if (!status || status.code != 'running' || status.written_bytes == 0) { + if (!status || ['running', 'stopped'].includes(status.code) || status.written_bytes == 0) { // Download hasn't started yet, so update status message (if available) then try again // TODO: Would be nice to check if we have the MOOV before starting playing if (status) {