diff --git a/addon.xml b/addon.xml index 1ddc277..ed5034d 100644 --- a/addon.xml +++ b/addon.xml @@ -23,6 +23,13 @@ https://vidfltr.slashproc.org/ https://kodi.slashproc.org/repo/plugin.video.vidfltr/ + + resources/img/kodi/icon.png + resources/img/kodi/fanart.jpg + resources/img/kodi/banner.jpg + resources/img/kodi/clearlogo.png + + 0.9.5 - fix display of quotation marks in video lists - add pagination for artists on main page and countries diff --git a/default.py b/default.py index a2f0042..8863c12 100644 --- a/default.py +++ b/default.py @@ -18,11 +18,12 @@ addon = xbmcaddon.Addon(id=addonID) pluginhandle = int(sys.argv[1]) translation = addon.getLocalizedString addonDir = xbmc.translatePath(addon.getAddonInfo('path')) -defaultFanart = os.path.join(addonDir, 'resources/images/noicon.png') -#fanart = os.path.join(addonDir, 'noicon.png') -# don't use special folder icons as long as there is'nt a nice icon for every style -fanart = 'DefaultFolder.png' -icon = os.path.join(addonDir, 'noicon.png') +defaultFanart = os.path.join(addonDir, 'resources/img/kodi/noicon.png') +icon = os.path.join(addonDir, 'resources/img/kodi/icon.png') +clearlogo = os.path.join(addonDir, 'resources/img/kodi/clearlogo.png') +fanart = os.path.join(addonDir, 'resources/img/kodi/fanart.png') +banner = os.path.join(addonDir, 'resources/img/kodi/banner.png') +poster = os.path.join(addonDir, 'resources/img/kodi/poster.png') addon_work_folder = xbmc.translatePath("special://profile/addon_data/" + addonID) jsonVideos = xbmc.translatePath("special://profile/addon_data/" + addonID + "/videos.json") jsonArtists = xbmc.translatePath("special://profile/addon_data/" + addonID + "/artists.json") @@ -272,8 +273,6 @@ def play(url): # doesn't work # item.setProperty('StartOffset', '56.4') # Bug? It maybe works with StartPercent, see https://forum.kodi.tv/showthread.php?tid=129188&pid=2443114#pid2443114 -# Will not fix :-( -# https://trac.kodi.tv/ticket/17006#ticket # item.setProperty("VolumeAmplification", "7") # xbmc.log(msg=item.getProperty('VolumeAmplification'), level=xbmc.LOGNOTICE) @@ -888,7 +887,7 @@ def addDir(name, url, mode, iconimage, total=0): # xbmc.log(msg=u, level=xbmc.LOGNOTICE) ok = True # if (xbmcversion < 17): - liz = xbmcgui.ListItem(name, iconImage=icon, thumbnailImage=iconimage) + liz = xbmcgui.ListItem(name, thumbnailImage=iconimage) # else: # With offscreen=true large lists (=folder) load much faster (needs >= krypton) # But at the end, the differences are minimal in VIDFLTR, so just drop it :-) @@ -904,7 +903,12 @@ def addDir(name, url, mode, iconimage, total=0): if iconimage: liz.setProperty("fanart_image", iconimage) else: - liz.setProperty("fanart_image", defaultFanart) + liz.setProperty("fanart_image", fanart) + + if iconimage: + liz.setArt({ 'fanart' : iconimage }) + else: + liz.setArt({ 'fanart' : fanart }) ok = xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url=u, listitem=liz, totalItems=total, isFolder=True) return ok diff --git a/icon.png b/icon.png index b088ad4..7023a48 100644 Binary files a/icon.png and b/icon.png differ diff --git a/resources/img/kodi/banner.jpg b/resources/img/kodi/banner.jpg new file mode 100644 index 0000000..1f03c92 Binary files /dev/null and b/resources/img/kodi/banner.jpg differ diff --git a/resources/img/kodi/clearlogo.png b/resources/img/kodi/clearlogo.png new file mode 100644 index 0000000..01a2a8c Binary files /dev/null and b/resources/img/kodi/clearlogo.png differ diff --git a/resources/img/kodi/fanart.jpg b/resources/img/kodi/fanart.jpg new file mode 100644 index 0000000..7989df6 Binary files /dev/null and b/resources/img/kodi/fanart.jpg differ diff --git a/resources/img/kodi/icon.png b/resources/img/kodi/icon.png new file mode 100644 index 0000000..7023a48 Binary files /dev/null and b/resources/img/kodi/icon.png differ diff --git a/resources/img/kodi/poster.jpg b/resources/img/kodi/poster.jpg new file mode 100644 index 0000000..b688634 Binary files /dev/null and b/resources/img/kodi/poster.jpg differ