Kodi Community Forum
Release skin helper service - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+---- Forum: Skin helper addons (https://forum.kodi.tv/forumdisplay.php?fid=300)
+---- Thread: Release skin helper service (/showthread.php?tid=235676)



RE: skin helper service - Angelinas - 2022-03-31

* New test version for tvdb module
https://github.com/kodi-community-addons/script.module.thetvdb/commit/4a685404d64d7bc147b7250516d9f4c559cb1ed9

Tester need to change line 495 in their time zone, https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
 
Code:
local =  utc.to('Europe/Belgrade')
change in 
 
Code:
local =  utc.to('Australia/Melbourne')

Copy file in script.module.thetvdb
change line
delete simplecache.db
start Kodi

New airday,airtime(converted) with local time will be visible in shs and script.tv.show.next.aired.
Know issue:
for widget still is old code ....doesent work     wip
(nextaired_episode, unaired_episode)

image from browser 
2022-4-11 21:00
Image

image from script.tv.show.next.aired.
2022-4-12 03:00
Image


RE: skin helper service - Fuchs2468 - 2022-04-06

Hello @Angelinas 

I have a function request to you.

Could you install a switch for PVR Artwork(Radio) in "script.module.metadatautils".

PVR Artwork(Radio) ON <=> OFF
PVR Artwork(Radio) ON = search only with Google Picture

It's very annoying when you get movie poster at a radio broadcast.


RE: skin helper service - Angelinas - 2022-04-06

PVR Radio artork is part for music....
need to enable in home.xml
 
Code:
    <onload>Skin.SetBool(SkinHelper.EnableMusicArt)</onload>

and you can use art for PVR raidio from Music Art

SkinHelper.ListItem.Art.AlbumThumb
SkinHelper.ListItem.Art.ArtistThumb
or SkinHelper.ListItem.Art.Thumb (Returns the album thumb image if exist, fallback to artist image, and at the end google thumb)

For player same property  SkinHelper.player.Art.AlbumThumb....


RE: skin helper service - Fuchs2468 - 2022-04-06

(2022-04-06, 01:10)Angelinas Wrote: PVR Radio artork is part for music....
need to enable in home.xml

No, I did not mean "SkinHelper.EnableMusicArt" works.

I meant this here:

Image

Image


RE: skin helper service - Fuchs2468 - 2022-04-06

This function would have to be entered in the setting of "script.module.metadatautils".
I believe a change in "skin.helper.servicescript" at "listitem_monitor.py" would be required.

I found that:
python:
def get_settings(self):
        '''collect our skin settings that control the monitoring'''
        self.enable_extendedart = getCondVisibility("Skin.HasSetting(SkinHelper.EnableExtendedArt)") == 1
        self.enable_musicart = getCondVisibility("Skin.HasSetting(SkinHelper.EnableMusicArt)") == 1
        self.enable_animatedart = getCondVisibility("Skin.HasSetting(SkinHelper.EnableAnimatedPosters)") == 1
        self.enable_extrafanart = getCondVisibility("Skin.HasSetting(SkinHelper.EnableExtraFanart)") == 1
        self.enable_extraposter = getCondVisibility("Skin.HasSetting(SkinHelper.EnableExtraPoster)") == 1
        self.enable_pvrart = getCondVisibility(
            "Skin.HasSetting(SkinHelper.EnablePVRThumbs) + PVR.HasTVChannels") == 1
        self.enable_forcedviews = getCondVisibility("Skin.HasSetting(SkinHelper.ForcedViews.Enabled)") == 1
        studiologos_path = xbmc.getInfoLabel("Skin.String(SkinHelper.StudioLogos.Path)")
        if studiologos_path != self.metadatautils.studiologos_path:
            self.listitem_details = {}
            self.metadatautils.studiologos_path = studiologos_path
        # set additional window props to control contextmenus as using the skinsetting gives unreliable results
        for skinsetting in ["EnableAnimatedPosters", "EnableMusicArt", "EnablePVRThumbs"]:
            if getCondVisibility("Skin.HasSetting(SkinHelper.%s)" % skinsetting):
                self.win.setProperty("SkinHelper.%s" % skinsetting, "enabled")
            else:
                self.win.clearProperty("SkinHelper.%s" % skinsetting)

"PVR.HasTVChannels" (can not distinguish between PVR TV and PVR radio).
I hope this helps you.


RE: skin helper service - Fuchs2468 - 2022-04-08

Hello @Angelinas 

I have solved the problem with the wrong pictures on the PVR radio, you can also exclude it since Kodi 19 onwards, as it is now possible to specify a path.
I have a simple solution.

"skin.helper.services.script"
"listitem_monitor.py"

replace:
python:
self.enable_pvrart = getCondVisibility(
            "Skin.HasSetting(SkinHelper.EnablePVRThumbs) + PVR.HasTVChannels") == 1
with:
Python:
self.enable_pvrart = getCondVisibility(
            "Skin.HasSetting(SkinHelper.EnablePVRThumbs) + PVR.HasTVChannels + !String.Contains(Container.FolderPath,pvr://channels/radio/)") == 1


ImageImage

ImageImage


RE: skin helper service - Angelinas - 2022-04-17

Add new property for movie/tvshow
https://github.com/kodi-community-addons/script.module.metadatautils/commit/f0c24a1fc0054158ee1aeb8c653213404bc927b5

- Window(0).Property(SkinHelper.ListItem.cast.0.name)
- Window(0).Property(SkinHelper.ListItem.cast.0.thumb)

Image


RE: skin helper service - Carl420 - 2022-04-25

When I use the category, in progress shows, it makes a widget like it should. When I then click on one of those thumbnails it doesn’t open the player dialogue it opens the video library folder. Every other category works just not in progress. Any help would be great.


RE: skin helper service - Fuchs2468 - 2022-05-01

Hello @Angelinas .

I have a problem with the widget view(landscape) with "Next airing episodes".
"ListItem.Art(thumb)" becomes "ListItem.Art(poster)".
As of kodi matrix there is a new fallback behaviour of ListItem.Art(thumb).

I have found a solution could you also check it again.

replace in  "script.module.metadatautils\lib\helpers\kodidb.py":
python:
            # artwork
            art = item.get("art", {})
            if item["type"] in ["episode", "season"]:
                if not art.get("fanart") and art.get("season.fanart"):
                    art["fanart"] = art["season.fanart"]
                if not art.get("poster") and art.get("season.poster"):
                    art["poster"] = art["season.poster"]
                if not art.get("landscape") and art.get("season.landscape"):
                    art["poster"] = art["season.landscape"]
                if not art.get("fanart") and art.get("tvshow.fanart"):
                    art["fanart"] = art.get("tvshow.fanart")
                if not art.get("poster") and art.get("tvshow.poster"):
                    art["poster"] = art.get("tvshow.poster")
                if not art.get("clearlogo") and art.get("tvshow.clearlogo"):
                    art["clearlogo"] = art.get("tvshow.clearlogo")
                if not art.get("banner") and art.get("tvshow.banner"):
                    art["banner"] = art.get("tvshow.banner")
                if not art.get("landscape") and art.get("tvshow.landscape"):
                    art["landscape"] = art.get("tvshow.landscape")
            if not art.get("fanart") and item.get('fanart'):
                art["fanart"] = item.get('fanart')
            if not art.get("thumb") and item.get('thumbnail'):
                art["thumb"] = get_clean_image(item.get('thumbnail'))
            if not art.get("thumb") and art.get('poster'):
                art["thumb"] = get_clean_image(art.get('poster'))
            if not art.get("thumb") and item.get('icon'):
                art["thumb"] = get_clean_image(item.get('icon'))
            if not item.get("thumbnail") and art.get('thumb'):
                item["thumbnail"] = art["thumb"]
with:
python:
            # artwork
            art = item.get("art", {})
            if item["type"] in ["episode", "season"]:
                if not art.get("fanart") and art.get("season.fanart"):
                    art["fanart"] = art["season.fanart"]
                if not art.get("poster") and art.get("season.poster"):
                    art["poster"] = art["season.poster"]
                if not art.get("landscape") and art.get("season.landscape"):
                    art["landscape"] = art["season.landscape"]
                if not art.get("fanart") and art.get("tvshow.fanart"):
                    art["fanart"] = art.get("tvshow.fanart")
                if not art.get("poster") and art.get("tvshow.poster"):
                    art["poster"] = art.get("tvshow.poster")
                if not art.get("clearlogo") and art.get("tvshow.clearlogo"):
                    art["clearlogo"] = art.get("tvshow.clearlogo")
                if not art.get("banner") and art.get("tvshow.banner"):
                    art["banner"] = art.get("tvshow.banner")
                if not art.get("landscape") and art.get("tvshow.landscape"):
                    art["landscape"] = art.get("tvshow.landscape")
                if not art.get("fanart") and item.get('fanart'):
                    art["fanart"] = item.get('fanart')
            if not item.get("thumbnail") and art.get('thumb'):
                item["thumbnail"] = art["thumb"]

ImageImage


RE: skin helper service - t123thomas - 2022-05-25

All, I have see several errors in the attached which I think relate to helper addon, please review and resolve.

Thanks,
THomas

Kodi Log


RE: skin helper service - Angelinas - 2022-05-25

https://github.com/kodi-community-addons/repository.marcelveldt/blob/master/repository/repository.marcelveldt/repository.marcelveldt-1.0.3.zip
use this repository....you use old version
- script.skin.helper.service v1.1.40 installed........NOW v1.1.43
- script.module.metadatautils v1.0.43 installed.......NOW 1.0.50

Error
Animated Art: lookup imdbid by title and year: (Back to the Future Collection - 1990)
- You try to set animated art for set-collection , this button from context menu work only for movie.Use  button in dialog video info to set animated art for sets.

Error
AttributeError: 'datetime.timedelta' object has no attribute 'timestamp'
-Use this info...Hitcher fix that part
https://forum.kodi.tv/showthread.php?tid=346034&pid=3096626#pid3096626


RE: skin helper service - bsoriano - 2022-06-18

@Angelinas , are you aware of the following error running skinhelper colorpicker in Nexus?

xml:

2022-06-18 15:55:47.356 T:4408    ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'AttributeError'>
                                                   Error Contents: module 'xbmc' has no attribute 'translatePath'
                                                   Traceback (most recent call last):
                                                     File "F:\KodiNexusPortable\Kodi\portable_data\addons\script.skin.helper.colorpicker\default.py", line 7, in <module>
                                                       import resources.lib.ColorPicker as cp
                                                     File "F:\KodiNexusPortable\Kodi\portable_data\addons\script.skin.helper.colorpicker\resources\lib\ColorPicker.py", line 15, in <module>
                                                       COLORFILES_PATH = xbmc.translatePath("special://profile/addon_data/%s/colors/" % ADDON_ID)
                                                   AttributeError: module 'xbmc' has no attribute 'translatePath'
                                                   -->End of Python script error report<--

This is happening with version 2.0.1.  Is this something you can fix? Please let me know if you need any additional info.  The addon is unusable in Nexus currently.  The same version works well with Matrix.  Thanks.

Regards,

Bart


RE: skin helper service - Wanilton - 2022-06-18

@bsoriano 

replace the lines 15, 16 and 17 with

Code:
COLORFILES_PATH = xbmcvfs.translatePath("special://profile/addon_data/%s/colors/" % ADDON_ID)
SKINCOLORFILES_PATH = xbmcvfs.translatePath("special://profile/addon_data/%s/colors/" % xbmc.getSkinDir())
SKINCOLORFILE = xbmcvfs.translatePath("special://skin/extras/colors/colors.xml")

only need chance xbmc.translatePath to xbmcfvs.translatePath, will solve.


RE: skin helper service - bsoriano - 2022-06-19

(2022-06-18, 23:42)Wanilton Wrote: COLORFILES_PATH = xbmcvfs.translatePath("special://profile/addon_data/%s/colors/" % ADDON_ID)
SKINCOLORFILES_PATH = xbmcvfs.translatePath("special://profile/addon_data/%s/colors/" % xbmc.getSkinDir())
SKINCOLORFILE = xbmcvfs.translatePath("special://skin/extras/colors/colors.xml")

@Wanilton , thank you! This indeed fixes the issue.  Perhaps you can submit a PR so that @Angelinas can merge it into the code that is in the repo? Thanks again.

Regards,

Bart


RE: skin helper service - t123thomas - 2022-06-21

Hi Help I am seeing alot of error in my kodi log which appear to relate to skin, what could those be and how can I resolved them as it cause the play back to go blanked each time a video is stopped playing
Below are diff set of logs that I captured



https://paste.kodi.tv/irodidiliz

https://paste.kodi.tv/wapifamelu

https://paste.kodi.tv/akogadagol