From e38bb21a25bed2cd337b37745ac0dfa1c1a62203 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Fri, 2 Sep 2016 16:42:25 -0500 Subject: [PATCH] Filter virtual episodes --- resources/lib/itemtypes.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/lib/itemtypes.py b/resources/lib/itemtypes.py index 18d7b9f3..d83f2777 100644 --- a/resources/lib/itemtypes.py +++ b/resources/lib/itemtypes.py @@ -657,6 +657,10 @@ class MusicVideos(Items): artwork = self.artwork API = api.API(item) + if item.get('LocationType') == "Virtual": # TODO: Filter via api instead + log.info("Skipping virtual episode: %s", item['Name']) + return + # If the item already exist in the local Kodi DB we'll perform a full item update # If the item doesn't exist, we'll add it to the database update_item = True