Fix check for unplayable videos

This commit is contained in:
Preston 2020-12-20 21:43:40 -05:00
parent 176d88bb0c
commit 3af6f9b65f
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ export default Vue.extend({
console.log(result)
const playabilityStatus = result.player_response.playabilityStatus
if (playabilityStatus.status !== 'OK') {
if (playabilityStatus.status === 'UNPLAYABLE') {
const errorScreen = playabilityStatus.errorScreen.playerErrorMessageRenderer
const reason = errorScreen.reason.simpleText
let subReason