2019-06-05, 21:02
(2019-05-30, 22:12)Rychem28 Wrote: Skin Helper is still not gathering the duration and track data from the Kodi DB (MyMusic72.db). I looked in the DB and verified that the information is present. I tried doing a refresh on a number of albums and I get the following error. It would seem that it can't find the necessary entries in the Kodi DB. Am i correct to assume this or is this because no data is populated in the simplecache.db?
2019-05-30 14:49:31.711 T:40120 NOTICE: script.module.metadatautils --> get_artist_metadata --> artist: Xzibit - album: Restless - track:
2019-05-30 14:49:31.716 T:40120 NOTICE: script.module.metadatautils --> {"error":{"code":-32602,"data":{"method":"AudioLibrary.GetAlbums","stack":{"message":"array element at index 6 does not match","name":"Item.Fields.Base","property":{"message":"Received value does not match any of the defined enum values","type":"string"},"type":"array"}},"message":"Invalid params."},"id":1,"jsonrpc":"2.0"}
2019-05-30 14:49:31.716 T:40120 NOTICE: script.module.metadatautils --> {'params': {'filter': {'artistid': 1732}, 'properties': ['title', 'fanart', 'thumbnail', 'genre', 'displayartist', 'artist', 'genreid', 'musicbrainzalbumartistid', 'year', 'rating', 'artistid', 'musicbrainzalbumid', 'theme', 'description', 'type', 'style', 'playcount', 'albumlabel', 'mood', 'dateadded']}, 'jsonrpc': '2.0', 'method': 'AudioLibrary.GetAlbums', 'id': 1}
2019-05-30 14:49:31.734 T:40120 NOTICE: script.module.metadatautils --> {"error":{"code":-32602,"data":{"method":"AudioLibrary.GetAlbums","stack":{"message":"array element at index 6 does not match","name":"Item.Fields.Base","property":{"message":"Received value does not match any of the defined enum values","type":"string"},"type":"array"}},"message":"Invalid params."},"id":1,"jsonrpc":"2.0"}
2019-05-30 14:49:31.734 T:40120 NOTICE: script.module.metadatautils --> {'params': {'filter': {'and': [{'operator': 'contains', 'field': 'artist', 'value': u'Xzibit'}, {'operator': 'contains', 'field': 'album', 'value': u'Restless'}]}, 'properties': ['title', 'fanart', 'thumbnail', 'genre', 'displayartist', 'artist', 'genreid', 'musicbrainzalbumartistid', 'year', 'rating', 'artistid', 'musicbrainzalbumid', 'theme', 'description', 'type', 'style', 'playcount', 'albumlabel', 'mood', 'dateadded']}, 'jsonrpc': '2.0', 'method': 'AudioLibrary.GetAlbums', 'id': 1}
2019-05-30 14:49:31.994 T:38652 ERROR: CImageLoader:oWork - Direct texture file loading failed for special://masterprofile/Thumbnails/c/ccd20aab.jpg
EDIT: I figured out the problem, the above "array element at index 6" was a FIELD called "genreID" in kodi_constants.py (inside metadatautils). As it would turn out the MyMusic72.db has no genreid column of data that I can find. Deleting the reference in kodi_constants.py fixes my issue. I am still not sure why one install of skin.helper.service had this called out and the other did not. Possibly an old install that never got fixed for the metadatautils?
Cheers
This has been dealt with in this commit, not sure if that change is included in latest release in marcels' repo but it's not included in the SH from kodi official repo for sure.
https://github.com/kodi-community-addons...f3edc1aebf