fix icon.png and add a few, for now not used, standard images

This commit is contained in:
bassdart 2019-03-17 18:45:03 +01:00
parent 64e9016dca
commit f140d15032
8 changed files with 20 additions and 9 deletions

View file

@ -23,6 +23,13 @@
<website>https://vidfltr.slashproc.org/</website>
<email></email>
<source>https://kodi.slashproc.org/repo/plugin.video.vidfltr/</source>
<assets>
<icon>resources/img/kodi/icon.png</icon>
<fanart>resources/img/kodi/fanart.jpg</fanart>
<banner>resources/img/kodi/banner.jpg</banner>
<clearlogo>resources/img/kodi/clearlogo.png</clearlogo>
<screenshot></screenshot>
</assets>
<news>0.9.5
- fix display of quotation marks in video lists
- add pagination for artists on main page and countries

View file

@ -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

BIN
icon.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
resources/img/kodi/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB