Change Watch page to recognize "stopped" status as playable
This commit is contained in:
parent
9c89652d46
commit
75b28f998c
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ var WatchPage = React.createClass({
|
||||||
},
|
},
|
||||||
updateLoadStatus: function() {
|
updateLoadStatus: function() {
|
||||||
lbry.getFileStatus(this.props.name, (status) => {
|
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
|
// 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
|
// TODO: Would be nice to check if we have the MOOV before starting playing
|
||||||
if (status) {
|
if (status) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue