Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Nov 25, 2016
1 parent 6ec5b1d commit 84364b8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.module.skin.helper.artutils"
name="Skin Helper Artwork and metadata Module"
version="1.0.4"
version="1.0.5"
provider-name="marcelveldt">
<requires>
<import addon="xbmc.python" version="2.24.0"/>
Expand Down
8 changes: 4 additions & 4 deletions lib/helpers/pvrartwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def get_pvr_artwork(self, title, channel, genre="", manual_select=False, ignore_
if manual_select:
google_title = searchtitle
else:
google_title = "%s + %s" % (searchtitle, channel.lower().split(" hd")[0])
google_title = '"%s" + "%s"' % (searchtitle, channel.lower().split(" hd")[0])
thumb = self.artutils.google.search_image(google_title, manual_select)
if thumb:
details["thumbnail"] = thumb
Expand Down Expand Up @@ -318,21 +318,21 @@ def pvr_proceed_lookup(self, title, channel, genre):
log_msg("PVR artwork - filter active for title: %s --> Title or channel is empty!")
return False
for item in self.artutils.addon.getSetting("pvr_art_ignore_titles").split("|"):
if item.lower() == title.lower():
if item and item.lower() == title.lower():
log_msg(
"PVR artwork - filter active for title: %s channel: %s genre: %s --> "
"Title is in list of titles to ignore" %
(title, channel, genre))
return False
for item in self.artutils.addon.getSetting("pvr_art_ignore_channels").split("|"):
if item.lower() == channel.lower():
if item and item.lower() == channel.lower():
log_msg(
"PVR artwork - filter active for title: %s channel: %s genre: %s --> "
"Channel is in list of channels to ignore" %
(title, channel, genre))
return False
for item in self.artutils.addon.getSetting("pvr_art_ignore_genres").split("|"):
if genre and item.lower() in genre.lower():
if genre and item and item.lower() in genre.lower():
log_msg(
"PVR artwork - filter active for title: %s channel: %s genre: %s --> "
"Genre is in list of Genres to ignore" %
Expand Down
2 changes: 1 addition & 1 deletion lib/helpers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def detect_plugin_content(plugin_path):
break
else:
# VIDEO ITEMS
if item["showtitle"] and not item["artist"]:
if item["showtitle"] and not item.get("artist"):
# this is a tvshow, episode or season...
if item["type"] == "season" or (item["season"] > -1 and item["episode"] == -1):
content_type = "seasons"
Expand Down

0 comments on commit 84364b8

Please sign in to comment.