From 2c23c1448bb1944a4b62fa860ce03e821c6b9dbd Mon Sep 17 00:00:00 2001 From: MoojMidge <56883549+MoojMidge@users.noreply.github.com> Date: Thu, 28 Mar 2024 22:00:59 +1100 Subject: [PATCH] Fix potential variable use before definition --- resources/lib/youtube_plugin/kodion/items/xbmc/xbmc_items.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/lib/youtube_plugin/kodion/items/xbmc/xbmc_items.py b/resources/lib/youtube_plugin/kodion/items/xbmc/xbmc_items.py index c094d2abe..404106d2a 100644 --- a/resources/lib/youtube_plugin/kodion/items/xbmc/xbmc_items.py +++ b/resources/lib/youtube_plugin/kodion/items/xbmc/xbmc_items.py @@ -16,9 +16,8 @@ def set_info(list_item, item, properties): + is_video = False if not current_system_version.compatible(20, 0): - is_video = False - if isinstance(item, VideoItem): is_video = True info_labels = {}