2016-12-12, 13:52
Hi Marcel,
There is a problem with Fanart.tv
Small test:
Your code in script.module.skin.helper.artutils/lib/helpers/musicartwork.py:
line 269
details.get("musicbrainzartistid", self.get_mb_artist_id(artist, album, track)) return [u'ARTIST_ID'] (this is a list.)
For example, for the artist SIA is the [u'2f548675-008d-4332-876c-108b0c7ab9c5']
and creates a url:
My code to test is working properly:
and creates a url:
If you find a little time, check it again please.
There is a problem with Fanart.tv
Small test:
Your code in script.module.skin.helper.artutils/lib/helpers/musicartwork.py:
line 269
Code:
mb_artistid = details.get("musicbrainzartistid", self.get_mb_artist_id(artist, album, track))
For example, for the artist SIA is the [u'2f548675-008d-4332-876c-108b0c7ab9c5']
and creates a url:
Code:
http://webservice.fanart.tv/v3/music/[u'2f548675-008d-4332-876c-108b0c7ab9c5']?api_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Code:
mb_artistid_tmp=[]
try:
mb_artistid_tmp = details["musicbrainzartistid"]
except Exception:
mb_artistid_tmp.append('')
if mb_artistid_tmp[0] == '':
mb_artistid = self.get_mb_artist_id(artist, album, track)
else:
mb_artistid = mb_artistid_tmp[0]
details["musicbrainzartistid"] = mb_artistid
Code:
http://webservice.fanart.tv/v3/music/2f548675-008d-4332-876c-108b0c7ab9c5?api_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx