From af44997471a69c5774f7a1b7a0b72740d502844a Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Sat, 5 Nov 2022 00:03:57 -0400 Subject: [PATCH] skip open video player if there's no data --- src/components/UILogic/VideoDetailsTaskLogic.brs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/UILogic/VideoDetailsTaskLogic.brs b/src/components/UILogic/VideoDetailsTaskLogic.brs index 1c855d74..5feb22e8 100644 --- a/src/components/UILogic/VideoDetailsTaskLogic.brs +++ b/src/components/UILogic/VideoDetailsTaskLogic.brs @@ -8,5 +8,8 @@ end sub sub OnVideoDetailsLoaded() m.loadingIndicator.visible = false + if m.videoDetailsTask.content.metadata = invalid + return + end if ShowVideoScreen(m.videoDetailsTask.content.metadata, m.videoDetailsTask.content.sponsorblock) end sub \ No newline at end of file