2014-10-30, 18:48
(2014-10-30, 17:52)phil65 Wrote:(2014-10-30, 16:32)woodside Wrote: Hi Phil, a quick heads up... extended info script either kicks out an error or doesn't recognize artists with any kind of special characters when running info=artistdetails.
Crosby, Stills, & Nash (sees the artist as "Crosby" ignoring anything after ",")
Sinéad O'Connor
Guns N' Roses
Mötley Crüe
The B52's
The O'Jays
Howlin' Wolf
All of these artists that have either a comma, apostrophe, or any kind of special characters, either fail with a script error or the script runs on them but doesn't return anything and is silent with no error.
"Crosby, Stills, & Nash" and "Guns N' Roses" seems to work ok when it is generated from DialogAlbumInfo using context menu. The only difference I see is that it is ran using $INFO[ListItem.Artist]... I don't know why it works okay from that dialog but fails on other script runs.
PHP Code:RunScript(script.extendedinfo,info=artistdetails,artistname=$INFO[ListItem.Artist],silent=False)
Works for "Crosby, Stills & Nash" and "Guns N' Roses" but not for "Sinéad O'Connor".
when using...
PHP Code:RunScript(script.extendedinfo,info=artistdetails,artistname$INFO[Window(Home).Property(Artist)],silent=False)
RunScript(script.extendedinfo,info=artistdetails,artistname=$INFO[Container(50).ListItem.Property(Headliner)],silent=False)
All artists above fail with either a script error or nothing returned when running the script using the 2 ways just above.
I tried using $ESCINFO but that doesn't seem to work for anything anymore either. Thanks.
the debug log should show if the script gets the correct parameters. could you check that?
Mötley Crüe
PHP Code:
09:00:49 T:3188 DEBUG: script.extendedinfo: info=artistdetails
09:00:49 T:3188 DEBUG: script.extendedinfo: artistname=Mötley Crüe
09:00:49 T:3188 DEBUG: script.extendedinfo: loaded textfile C:\Users\ Woodside\AppData\Roaming\Kodi\userdata\addon_data\script.extendedinfo/d204ca167a257993b3e90e4e4776028d.txt
09:00:49 T:3188 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.UnicodeDecodeError'>
Error Contents: 'ascii' codec can't decode byte 0xc3 in position 21: ordinal not in range(128)
Traceback (most recent call last):
File "C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.extendedinfo-master\default.py", line 581, in <module>
Main()
File "C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.extendedinfo-master\default.py", line 40, in __init__
self._parse_argv()
File "C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.extendedinfo-master\default.py", line 510, in _parse_argv
self.Artist_mbid = GetMusicBrainzIdFromNet(self.ArtistName)
File "C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.extendedinfo-master\resources\lib\Utils.py", line 480, in GetMusicBrainzIdFromNet
log("found artist id for " + artist + ": " + mbid)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 21: ordinal not in range(128)
-->End of Python script error report<--
Crosby, Stills, & Nash (Doesn't return anything, no error or data but you can see that it found "Crosby" and it ignored anything after the "," to get the mbid. It then
shows "Stills & Nash" under that as just extra text or something. But it discards anything after "," to get the mbid.
PHP Code:
09:20:04 T:6276 DEBUG: script.extendedinfo: version 1.0.0 started
09:20:04 T:6276 DEBUG: script.extendedinfo: default.py
09:20:04 T:6276 DEBUG: script.extendedinfo: info=artistdetails
09:20:04 T:6276 DEBUG: script.extendedinfo: artistname=Crosby
09:20:04 T:6276 DEBUG: script.extendedinfo: save to textfile: C:\Users\Woodside\AppData\Roaming\Kodi\userdata\addon_data\script.extendedinfo\07d062a7607dc570bdabe6fe9d5bec10.txt
09:20:04 T:6276 DEBUG: script.extendedinfo: found artist id for Crosby: fcb54ed6-d107-4408-a489-53d1cbf80cb8
09:20:04 T:6276 DEBUG: script.extendedinfo: Stills & Nash
09:20:04 T:6276 DEBUG: script.extendedinfo: Discography.Count = None
09:20:04 T:6276 DEBUG: script.extendedinfo: MusicVideos.Count = None
09:20:05 T:6276 DEBUG: script.extendedinfo: save to textfile: C:\Users\Woodside\AppData\Roaming\Kodi\userdata\addon_data\script.extendedinfo\368891fd5efc9e5d45ff3264d76e9804.txt
09:20:05 T:6276 DEBUG: script.extendedinfo: Error when handling GetExtendedAudioDBInfo results
09:20:05 T:6276 DEBUG: script.extendedinfo: save to textfile: C:\Users\Woodside\AppData\Roaming\Kodi\userdata\addon_data\script.extendedinfo\f0411563d79873192c29cc0daedb9d30.txt
09:20:05 T:6276 DEBUG: script.extendedinfo: Error when handling HandleAudioDBAlbumResult results
09:20:05 T:6276 DEBUG: script.extendedinfo: finished
"Sinéad O'connor" was done by going into my library and selecting "Artist Info" but it seems to generate an error just like Mötley Crüe.
PHP Code:
09:32:35 T:6424 DEBUG: script.extendedinfo: version 1.0.0 started
09:32:35 T:6424 DEBUG: Previous line repeats 1 times.
09:32:35 T:6424 DEBUG: script.extendedinfo: info=musicvideos
09:32:35 T:6424 DEBUG: script.extendedinfo: artistname=Sinéad O'connor
09:32:35 T:2184 DEBUG: script.extendedinfo: info=youtubesearch
09:32:35 T:2184 DEBUG: script.extendedinfo: id="Sinéad O'connor" Music
09:32:35 T:6424 DEBUG: script.extendedinfo: loaded textfile C:\Users\Woodside\AppData\Roaming\Kodi\userdata\addon_data\script.extendedinfo/f0f8b2feae3633cca74658ed5d860944.txt
09:32:35 T:6424 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.UnicodeDecodeError'>
Error Contents: 'ascii' codec can't decode byte 0xc3 in position 23: ordinal not in range(128)
Traceback (most recent call last):
File "C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.extendedinfo-master\default.py", line 581, in <module>
Main()
File "C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.extendedinfo-master\default.py", line 40, in __init__
self._parse_argv()
File "C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.extendedinfo-master\default.py", line 510, in _parse_argv
self.Artist_mbid = GetMusicBrainzIdFromNet(self.ArtistName)
File "C:\Users\Lonnie Woodside\AppData\Roaming\Kodi\addons\script.extendedinfo-master\resources\lib\Utils.py", line 480, in GetMusicBrainzIdFromNet
log("found artist id for " + artist + ": " + mbid)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 23: ordinal not in range(128)
-->End of Python script error report<--
The B52's seems to be some kind of different error but it was also generated by going into my library and initiating Artist Info.
PHP Code:
09:40:39 T:1332 DEBUG: script.extendedinfo: version 1.0.0 started
09:40:39 T:3560 DEBUG: CPythonInvoker(120, C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.extendedinfo-master\default.py): instantiating addon using automatically obtained id of "script.extendedinfo" dependent on version 2.1.0 of the xbmc.python api
09:40:39 T:1332 DEBUG: script.extendedinfo: info=similarartistsinlibrary
09:40:39 T:1332 DEBUG: script.extendedinfo: artistname=The B-52's
09:40:39 T:1332 DEBUG: script.extendedinfo: loaded textfile C:\Users\Woodside\AppData\Roaming\Kodi\userdata\addon_data\script.extendedinfo/ff880cd717856456e0e695e89fe9102d.txt
09:40:39 T:1332 DEBUG: script.extendedinfo: found artist id for The B-52's: 79d16880-4ed2-4572-9fb5-03a7ff3a4b80
09:40:39 T:6480 DEBUG: script.extendedinfo: save to textfile: C:\Users\Woodside\AppData\Roaming\Kodi\userdata\addon_data\script.extendedinfo\ab6284a436aea032dc20eb4192ef4058.txt
09:40:39 T:3560 DEBUG: script.extendedinfo: version 1.0.0 started
09:40:39 T:3560 DEBUG: script.extendedinfo: info=musicvideos
09:40:39 T:3560 DEBUG: script.extendedinfo: artistname=The B-52's
09:40:39 T:6480 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.KeyError'>
Error Contents: ('album',)
Traceback (most recent call last):
File "C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.extendedinfo-master\default.py", line 581, in <module>
Main()
File "C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.extendedinfo-master\default.py", line 43, in __init__
self._StartInfoActions()
File "C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.extendedinfo-master\default.py", line 88, in _StartInfoActions
Discography = GetArtistTopAlbums(self.Artist_mbid)
File "C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.extendedinfo-master\resources\lib\LastFM.py", line 204, in GetArtistTopAlbums
return HandleLastFMAlbumResult(results)
File "C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.extendedinfo-master\resources\lib\LastFM.py", line 81, in HandleLastFMAlbumResult
for album in results['topalbums']['album']:
KeyError: ('album',)
-->End of Python script error report<--