Fix check for unplayable videos
This commit is contained in:
parent
176d88bb0c
commit
3af6f9b65f
|
@ -197,7 +197,7 @@ export default Vue.extend({
|
||||||
console.log(result)
|
console.log(result)
|
||||||
|
|
||||||
const playabilityStatus = result.player_response.playabilityStatus
|
const playabilityStatus = result.player_response.playabilityStatus
|
||||||
if (playabilityStatus.status !== 'OK') {
|
if (playabilityStatus.status === 'UNPLAYABLE') {
|
||||||
const errorScreen = playabilityStatus.errorScreen.playerErrorMessageRenderer
|
const errorScreen = playabilityStatus.errorScreen.playerErrorMessageRenderer
|
||||||
const reason = errorScreen.reason.simpleText
|
const reason = errorScreen.reason.simpleText
|
||||||
let subReason
|
let subReason
|
||||||
|
|
Loading…
Reference in New Issue