From bc47e93d1c68a5d6f20812a239976821d7da8780 Mon Sep 17 00:00:00 2001 From: Matt Date: Thu, 11 Mar 2021 22:11:27 -0500 Subject: [PATCH] Remove unneeded function --- jellyfin_kodi/objects/actions.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/jellyfin_kodi/objects/actions.py b/jellyfin_kodi/objects/actions.py index 3982f305..4ebfb671 100644 --- a/jellyfin_kodi/objects/actions.py +++ b/jellyfin_kodi/objects/actions.py @@ -692,21 +692,6 @@ class Actions(object): return True - def detect_widgets(self, item): - - kodi_version = xbmc.getInfoLabel('System.BuildVersion') - - if kodi_version and "Git:" in kodi_version and kodi_version.split('Git:')[1].split("-")[0] in ('20171119', 'a9a7a20'): - LOG.info("Build does not require workaround for widgets?") - - return False - - if (not xbmc.getCondVisibility('Window.IsMedia') and ((item['Type'] == 'Audio' and not xbmc.getCondVisibility('Integer.IsGreater(Playlist.Length(music),1)')) or not xbmc.getCondVisibility('Integer.IsGreater(Playlist.Length(video),1)'))): - - return True - - return False - class PlaylistWorker(threading.Thread):