Skip to content

Commit d8e3410

Browse files
committed
Better logging in resolve_art_url
1 parent 56f6bee commit d8e3410

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

resources/arts.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import requests
66
import requests_cache
77

8-
from util import show_error
8+
from util import log
99

1010
__addon__ = xbmcaddon.Addon()
1111
artFallbackEnabled = __addon__.getSetting("enable-art-fallback") == 'true' # Kodi stores boolean settings as strings
@@ -88,8 +88,7 @@ def resolve_art_url(art_type, appid, img_icon_path='', art_fallback_enabled=artF
8888
requested_art = ARTS_ASSIGNMENTS.get(fallback_art_type, None) # Art data will be None if the fallback_art_type does not exist in the art_urls dict
8989

9090
if valid_art_url is None: # If the previous loop could not find a valid media url among the defined art types
91-
show_error(None, "Issue obtaining a media", display_notification=False)
92-
return
91+
log("Issue resolving media {0} for app id {1}".format(art_type, appid))
9392

9493
return valid_art_url
9594

0 commit comments

Comments
 (0)