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 - shedrock - 2021-04-20

(2021-04-20, 23:48)Angelinas Wrote: please use for Leia version this https://github.com/kodi-community-addons....
If this msg was for me, consider me lost.

So where do I get support for this addon then? I never had any issues before, until today. Sorry @Angelinas, I am just confused. If the version I was using worked, then why would I need the version you directed me to?

Thanks,

Shedrock


RE: skin helper service - Angelinas - 2021-04-21

https://forum.kodi.tv/showthread.php?tid=301497&pid=3031751#pid3031751

You use @latts9923 repo....

That module provide webservice...and you can have art Property in list...Kodi can't do this.
You can have images for all kind of label, I use for director image, and much more(now in Matrix is broken)
Image


RE: skin helper service - shedrock - 2021-04-21

(2021-04-21, 00:04)Angelinas Wrote: https://forum.kodi.tv/showthread.php?tid=301497&pid=3031751#pid3031751

You use @latts9923 repo....
Thank you so very much @Angelinas, that sorted it all out. Smile

Regards,

Shedrock


RE: skin helper service - Fuchs2468 - 2021-04-21

@Angelinas 

I have a mistake with music slideshow at "Titan-Mod Matrix".
The error is caused by "\addons\script.module.metadatautils\lib\helpers\musicartwork.py".

I use "script.module.metadataUtUtils-1.0.39"

If I use the "musicartwork.py" from version 1.0.35 the error is gone and the music slideshow works.

Log with error:

Code:
2021-04-20 21:34:47.261 T:8528     INFO <general>: script.module.metadatautils --> get_album_metadata --> artist: Bob Sinclar - album: Summer Mega Compilation - track: I Wanna
2021-04-20 21:34:47.623 T:8528  WARNING <general>: Skin Helper Service --> Exception details: Type: AttributeError Value: 'NoneType' object has no attribute 'encode' Traceback: Traceback (most recent call last):
                                                     File "C:\Kodi-Test2\portable_data\addons\script.skin.helper.service\resources\lib\kodi_monitor.py", line 69, in onNotification
                                                       self.set_music_properties()
                                                     File "C:\Kodi-Test2\portable_data\addons\script.skin.helper.service\resources\lib\kodi_monitor.py", line 244, in set_music_properties
                                                       result = self.metadatautils.get_music_artwork(li_artist, li_album, li_title, li_disc)
                                                     File "C:\Kodi-Test2\portable_data\addons\script.module.metadatautils\lib\metadatautils.py", line 56, in get_music_artwork
                                                       return self.musicart.get_music_artwork(
                                                     File "C:\Kodi-Test2\portable_data\addons\script.module.metadatautils\lib\helpers\musicartwork.py", line 53, in get_music_artwork
                                                       album_details = self.get_album_metadata(album_artist, album, track, disc,
                                                     File "C:\Kodi-Test2\portable_data\addons\script.module.metadatautils\lib\helpers\musicartwork.py", line 284, in get_album_metadata
                                                       adb_album = self.audiodb.get_album_id(artist, album, track)
                                                     File "C:\Kodi-Test2\portable_data\addons\script.module.metadatautils\lib\helpers\theaudiodb.py", line 68, in get_album_id
                                                       return self.search(artist, album, track)[1]
                                                     File "C:\Kodi-Test2\portable_data\addons\script.module.metadatautils\lib\helpers\theaudiodb.py", line 42, in search
                                                       data = self.get_data("searchalbum.php", params)
                                                     File "C:\Kodi-Test2\portable_data\addons\script.module.simplecache\lib\simplecache.py", line 304, in decorated
                                                       result = func(*args, **kwargs)
                                                     File "C:\Kodi-Test2\portable_data\addons\script.module.metadatautils\lib\helpers\theaudiodb.py", line 196, in get_data
                                                       endpoint = 'https://www.theaudiodb.com/api/v1/json/%s/%s' % (base64.b64decode(self.api_key.encode('ascii')).decode('ascii'), endpoint)
                                                   AttributeError: 'NoneType' object has no attribute 'encode'
                                                   
2021-04-20 21:34:47.623 T:8528    ERROR <general>: Skin Helper Service --> Exception in resources.lib.kodi_monitor ! --> 'NoneType' object has no attribute 'encode'


Protocol with changed "musicartwork.py":

Code:
2021-04-21 01:24:06.010 T:16156    INFO <general>: script.module.metadatautils --> get_artist_metadata --> artist: BILLY JOEL - album:  - track: UPTOWN GIRL
2021-04-21 01:24:13.417 T:16156    INFO <general>: script.module.metadatautils --> get_album_metadata --> artist: BILLY JOEL - album:  - track: UPTOWN GIRL
2021-04-21 01:24:15.471 T:15624    INFO <general>: initializing python engine.
2021-04-21 01:24:15.922 T:15624    INFO <general>: script.module.metadatautils --> Initialized
2021-04-21 01:24:15.923 T:15624    INFO <general>: Skin Helper Service --> skinhelperservice plugin extrafanart function
2021-04-21 01:24:15.932 T:15624    INFO <general>: script.module.metadatautils --> Exited
2021-04-21 01:24:15.932 T:15624    INFO <general>: CPythonInvoker(37, C:\Kodi-Test2\portable_data\addons\script.skin.helper.service\plugin.py): script successfully run
2021-04-21 01:24:16.054 T:15624    INFO <general>: Python interpreter stopped
2021-04-21 01:27:10.469 T:16156    INFO <general>: script.module.metadatautils --> get_artist_metadata --> artist: METALLICA - album:  - track: NOTHING ELSE MATTERS
2021-04-21 01:27:17.623 T:16156    INFO <general>: script.module.metadatautils --> get_album_metadata --> artist: METALLICA - album:  - track: NOTHING ELSE MATTERS
2021-04-21 01:27:17.703 T:16156    INFO <general>: script.module.metadatautils --> {"error":{"code":-32602,"data":{"method":"AudioLibrary.GetAlbums","stack":{"message":"Received value does not match any of the union type definitions","name":"filter","property":{"type":"string"},"type":"object"}},"message":"Invalid params."},"id":1,"jsonrpc":"2.0"}
2021-04-21 01:27:17.703 T:16156    INFO <general>: script.module.metadatautils --> {'jsonrpc': '2.0', 'method': 'AudioLibrary.GetAlbums', 'params': {'filter': {'and': [{'operator': 'contains', 'field': 'artist', 'value': 'METALLICA'}, {'operator': 'contains', 'field': 'title', 'value': 'NOTHING ELSE MATTERS'}, {'operator': 'contains', 'field': 'album', 'value': "Top 200 Hits of the 90's"}]}, 'properties': ['title', 'fanart', 'thumbnail', 'genre', 'displayartist', 'artist', 'musicbrainzalbumartistid', 'year', 'rating', 'artistid', 'musicbrainzalbumid', 'theme', 'description', 'type', 'style', 'playcount', 'albumlabel', 'mood', 'dateadded']}, 'id': 1}
2021-04-21 01:27:19.039 T:17516    INFO <general>: initializing python engine.
2021-04-21 01:27:19.496 T:17516    INFO <general>: script.module.metadatautils --> Initialized
2021-04-21 01:27:19.497 T:17516    INFO <general>: Skin Helper Service --> skinhelperservice plugin extrafanart function
2021-04-21 01:27:19.500 T:17516    INFO <general>: script.module.metadatautils --> Exited
2021-04-21 01:27:19.500 T:17516    INFO <general>: CPythonInvoker(38, C:\Kodi-Test2\portable_data\addons\script.skin.helper.service\plugin.py): script successfully run
2021-04-21 01:27:19.630 T:17516    INFO <general>: Python interpreter stopped




RE: skin helper service - Angelinas - 2021-04-21

If you dont have api key for tadb why you enable in settings for music ?
Thats not big problem...disable tadb in setting for metadatautils.I use key snd working.No need to change code. Mi


RE: skin helper service - Fuchs2468 - 2021-04-21

(2021-04-21, 09:25)Angelinas Wrote: If you dont have api key for tadb why you enable in settings for music ?
Thats not big problem...disable tadb in setting for metadatautils.I use key snd working.No need to change code. Mi

TADB is not activated.

Image


RE: skin helper service - Angelinas - 2021-04-22

Found what cosing isue with "music_art_scraper_adb" radio button off
https://github.com/kodi-community-addons/script.module.metadatautils/blob/master/lib/helpers/musicartwork.py#L284

Changes coming soon....tnx for info.


RE: skin helper service - AchillesPunks - 2021-04-25

(2021-03-27, 20:32)Angelinas Wrote:
(2021-03-27, 20:16)mardukL Wrote: @Angelinas sorry was in haste, now the last one.


https://github.com/kodi-community-addons/repository.marcelveldt/pull/8

Done Smile
I have another error with shs. This is the error @Karellen is getting.

https://paste.kodi.tv/ecolivepob.kodi


RE: skin helper service - Dumyat - 2021-05-04

@Angelinas 
Is 'get cast' broken for the skin helper?
I have a variable using following code which worked in Leia, but hasn't worked for sometime since I upgraded to Matrix:-
<variable name="OSDCastVar">
<value condition="VideoPlayer.Content(movies)">plugin://script.skin.helper.service/?action=getcast&amp;movie=$INFO[VideoPlayer.Title]</value>
<value condition="VideoPlayer.Content(episodes)">plugin://script.skin.helper.service/?action=getcast&amp;tvshow=$INFO[VideoPlayer.TvShowTitle]</value>
</variable>



RE: skin helper service - Angelinas - 2021-05-04

(2021-05-04, 22:04)Dumyat Wrote: Is 'get cast' broken for the skin helper?
Nop, stil working...I tested in old estuary mod V2(new mod for matrix have missing content in Custom_1122_ActorsList.xml and variables in skin code)

Image


RE: skin helper service - Dumyat - 2021-05-04

(2021-05-04, 23:00)Angelinas Wrote:
(2021-05-04, 22:04)Dumyat Wrote:  
Nop, stil working...I tested in old estuary mod V2(new mod for matrix have missing content in Custom_1122_ActorsList.xml and variables in skin code)
Yup, I'm also using the same custom_1122_ActorsList.xml from Guilouz's original skin mod. Content target path is set to above mentioned variable. Hmmm, strange it's working for you, but not for me.  Confused Maybe updating SHS addon and modules from what I'm currently using might make difference.   
Btw, is the web service still unavailable or did that get fixed?
Also, using local artwork for my PVR items is working like a charm.


RE: skin helper service - Dumyat - 2021-05-05

(2021-05-04, 23:39)Dumyat Wrote:
(2021-05-04, 23:00)Angelinas Wrote:
(2021-05-04, 22:04)Dumyat Wrote:  
Maybe updating SHS addon and modules from what I'm currently using might make difference.   
@Angelinas 
Yup, the version I was running was indeed quite out of date (1.1.31). Updated to 1.1.35 and now cast artwork working again. Seems to be a lot faster than before as well.... Smile Did you see my question also about the webservice? Is that still unavailable?
Thanks again 
Cheers


RE: skin helper service - Angelinas - 2021-05-05

(2021-05-05, 11:46)Dumyat Wrote: Did you see my question also about the webservice? Is that still unavailable?
Yes, that is only service down for now.All of Marcel idea are back in work for Matrix.
I have trouble with cherrypy...Can't make this webservice full operated for Matrix.....Maybe i will back on "HTTPServer" insted of cherrypy.

One question for all user:
Have some trouble with Widget,some times working some time not...I am lost without more info.

Can somebody test is the "play" or "resume" button in dialog video info working for widget provided by script.skin.helper.widgets.(need info version of kodi 19 or 20, what skin and what action for s.h.w.)
If I test from list-panel all working, but from dialog....?!?? I need to know is this script isue or Kodi
For test, DialogVideo info open from Home screen or from addon browser (for Movies, episodes and mediamixed).
 tnx


RE: skin helper service - Fuchs2468 - 2021-05-06

(2021-05-05, 12:08)Angelinas Wrote:
(2021-05-05, 11:46)Dumyat Wrote:  

Hello Angelinas

Since I work on the "Titan Mod", i know there are still some problems with SHS Matrix.
I will try all problems to post.
 
Here is the first problem with Matrix version:

Code:
2021-05-06 04:33:34.292 T:7444     INFO <general>: initializing python engine.
2021-05-06 04:33:34.734 T:7444     INFO <general>: script.module.metadatautils --> Initialized
2021-05-06 04:33:34.834 T:3208     INFO <general>: Loading skin file: C:\TEST-KODI19\portable_data\addons\skin.titan.mod.beta.matrix\1080i\DialogSelect.xml, load type: LOAD_ON_GUI_INIT
2021-05-06 04:33:58.854 T:7444  WARNING <general>: addons must not activate DialogBusy
2021-05-06 04:34:00.895 T:7444    ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'TypeError'>
                                                   Error Contents: argument of type 'TypeError' is not iterable
                                                   Traceback (most recent call last):
                                                     File "C:\TEST-KODI19\portable_data\addons\script.skin.helper.service\resources\lib\resourceaddons.py", line 264, in get_repo_addoninfo
                                                       body = body.replace('\r', '').replace('\n', '').replace('\t', '')
                                                   TypeError: a bytes-like object is required, not 'str'
                                                   
                                                   During handling of the above exception, another exception occurred:
                                                   
                                                   Traceback (most recent call last):
                                                     File "C:\TEST-KODI19\portable_data\addons\script.skin.helper.service\resources\lib\dialogselect.py", line 111, in onClick
                                                       downloadresourceaddons(self.getmorebutton)
                                                     File "C:\TEST-KODI19\portable_data\addons\script.skin.helper.service\resources\lib\resourceaddons.py", line 114, in downloadresourceaddons
                                                       for item in get_repo_resourceaddons(addontype):
                                                     File "C:\TEST-KODI19\portable_data\addons\script.skin.helper.service\resources\lib\resourceaddons.py", line 232, in get_repo_resourceaddons
                                                       addoninfo = get_repo_addoninfo(item, simplecache)
                                                     File "C:\TEST-KODI19\portable_data\addons\script.skin.helper.service\resources\lib\resourceaddons.py", line 280, in get_repo_addoninfo
                                                       if "HTTP Error 404" not in exc:  # ignore not found exceptions
                                                   TypeError: argument of type 'TypeError' is not iterable
                                                   -->End of Python script error report<--

With Cherrypy I have problems, I had to downgrade to "Version 11.0.1 Matrix". It seems to be hardware dependent?!
Log file follows.


RE: skin helper service - Angelinas - 2021-05-06

(2021-05-06, 05:25)Fuchs2468 Wrote: TypeError: a bytes-like object is required, not 'str'
https://github.com/kodi-community-addons/script.skin.helper.service/commit/96c4eb2ed678d7031aaff715ee807bee9939470b

Code:
http://addons.kodi.tv/show/
Site is changed, Too complicate for changing code.....Now only missing Author:...(Kodi is for all) Smile

Image


This forum uses Lukasz Tkacz MyBB addons.