fix icon.png and add a few, for now not used, standard images
|
@ -23,6 +23,13 @@
|
||||||
<website>https://vidfltr.slashproc.org/</website>
|
<website>https://vidfltr.slashproc.org/</website>
|
||||||
<email></email>
|
<email></email>
|
||||||
<source>https://kodi.slashproc.org/repo/plugin.video.vidfltr/</source>
|
<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
|
<news>0.9.5
|
||||||
- fix display of quotation marks in video lists
|
- fix display of quotation marks in video lists
|
||||||
- add pagination for artists on main page and countries
|
- add pagination for artists on main page and countries
|
||||||
|
|
22
default.py
|
@ -18,11 +18,12 @@ addon = xbmcaddon.Addon(id=addonID)
|
||||||
pluginhandle = int(sys.argv[1])
|
pluginhandle = int(sys.argv[1])
|
||||||
translation = addon.getLocalizedString
|
translation = addon.getLocalizedString
|
||||||
addonDir = xbmc.translatePath(addon.getAddonInfo('path'))
|
addonDir = xbmc.translatePath(addon.getAddonInfo('path'))
|
||||||
defaultFanart = os.path.join(addonDir, 'resources/images/noicon.png')
|
defaultFanart = os.path.join(addonDir, 'resources/img/kodi/noicon.png')
|
||||||
#fanart = os.path.join(addonDir, 'noicon.png')
|
icon = os.path.join(addonDir, 'resources/img/kodi/icon.png')
|
||||||
# don't use special folder icons as long as there is'nt a nice icon for every style
|
clearlogo = os.path.join(addonDir, 'resources/img/kodi/clearlogo.png')
|
||||||
fanart = 'DefaultFolder.png'
|
fanart = os.path.join(addonDir, 'resources/img/kodi/fanart.png')
|
||||||
icon = os.path.join(addonDir, 'noicon.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)
|
addon_work_folder = xbmc.translatePath("special://profile/addon_data/" + addonID)
|
||||||
jsonVideos = xbmc.translatePath("special://profile/addon_data/" + addonID + "/videos.json")
|
jsonVideos = xbmc.translatePath("special://profile/addon_data/" + addonID + "/videos.json")
|
||||||
jsonArtists = xbmc.translatePath("special://profile/addon_data/" + addonID + "/artists.json")
|
jsonArtists = xbmc.translatePath("special://profile/addon_data/" + addonID + "/artists.json")
|
||||||
|
@ -272,8 +273,6 @@ def play(url):
|
||||||
# doesn't work
|
# doesn't work
|
||||||
# item.setProperty('StartOffset', '56.4')
|
# item.setProperty('StartOffset', '56.4')
|
||||||
# Bug? It maybe works with StartPercent, see https://forum.kodi.tv/showthread.php?tid=129188&pid=2443114#pid2443114
|
# 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")
|
# item.setProperty("VolumeAmplification", "7")
|
||||||
# xbmc.log(msg=item.getProperty('VolumeAmplification'), level=xbmc.LOGNOTICE)
|
# 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)
|
# xbmc.log(msg=u, level=xbmc.LOGNOTICE)
|
||||||
ok = True
|
ok = True
|
||||||
# if (xbmcversion < 17):
|
# if (xbmcversion < 17):
|
||||||
liz = xbmcgui.ListItem(name, iconImage=icon, thumbnailImage=iconimage)
|
liz = xbmcgui.ListItem(name, thumbnailImage=iconimage)
|
||||||
# else:
|
# else:
|
||||||
# With offscreen=true large lists (=folder) load much faster (needs >= krypton)
|
# 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 :-)
|
# 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:
|
if iconimage:
|
||||||
liz.setProperty("fanart_image", iconimage)
|
liz.setProperty("fanart_image", iconimage)
|
||||||
else:
|
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)
|
ok = xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url=u, listitem=liz, totalItems=total, isFolder=True)
|
||||||
return ok
|
return ok
|
||||||
|
|
||||||
|
|
BIN
icon.png
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.6 KiB |
BIN
resources/img/kodi/banner.jpg
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
resources/img/kodi/clearlogo.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
resources/img/kodi/fanart.jpg
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
resources/img/kodi/icon.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
resources/img/kodi/poster.jpg
Normal file
After Width: | Height: | Size: 35 KiB |