From 3fca0b3bb0f02720c72c5ef5b2ed04f5b5c6fef9 Mon Sep 17 00:00:00 2001 From: jessop Date: Fri, 7 Feb 2020 01:22:48 -0500 Subject: [PATCH] fix bug in autoplay --- static/app-strings.json | 5 ++++- ui/redux/selectors/content.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/static/app-strings.json b/static/app-strings.json index 4ddb5f598..939d6f50e 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -925,5 +925,8 @@ "%repost_channel_link% reposted": "%repost_channel_link% reposted", "Abandon on blockchain (reclaim %amount% LBC)": "Abandon on blockchain (reclaim %amount% LBC)", "This channel may have been unpublished.": "This channel may have been unpublished.", - "There was an error. Try %refreshing_the_app_link% to fix it. If that doesn't work, try pressing Ctrl+R/Cmd+R.": "There was an error. Try %refreshing_the_app_link% to fix it. If that doesn't work, try pressing Ctrl+R/Cmd+R." + "There was an error. Try %refreshing_the_app_link% to fix it. If that doesn't work, try pressing Ctrl+R/Cmd+R.": "There was an error. Try %refreshing_the_app_link% to fix it. If that doesn't work, try pressing Ctrl+R/Cmd+R.", + "Custom": "Custom", + "Playing in %seconds_left% seconds": "Playing in %seconds_left% seconds", + "Up Next by %channel%": "Up Next by %channel%" } diff --git a/ui/redux/selectors/content.js b/ui/redux/selectors/content.js index 8f8af20b3..33eb6fb4f 100644 --- a/ui/redux/selectors/content.js +++ b/ui/redux/selectors/content.js @@ -115,7 +115,7 @@ export const makeSelectNextUnplayedRecommended = (uri: string) => const isVideo = claim.value && claim.value.stream_type === 'video'; // $FlowFixMe const isAudio = claim.value && claim.value.stream_type === 'audio'; - if (!isVideo || !isAudio) { + if (!isVideo && !isAudio) { continue; }