Kodi seems to ignore anything after "," in $INFO tags
#1
I have a problem when using the extended info script to get artist details when artist names have a "," in them. I was told that this may be a general problem that
effects all addons and could be a core problem therefore i'm posting here also.

More detail can be found in this thread... http://forum.kodi.tv/showthread.php?tid=...pid1825512

If running a script using...

PHP Code:
RunScript(script.extendedinfo,info=artistdetails,artistname=$INFO[Container(50).ListItem.Property(Headliner)],silent=False

And the artist names have a "," included like "Crosby, Stills, & Nash" for instance. It seems to ignore anything in the $INFO tag after the ",".
When I run the script it will only return data for "Crosby".

Running the script with "Crosby, Stills, & Nash" 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   DEBUGscript.extendedinfoversion 1.0.0 started
09
:20:04 T:6276   DEBUGscript.extendedinfo: default.py
09
:20:04 T:6276   DEBUGscript.extendedinfoinfo=artistdetails
09
:20:04 T:6276   DEBUGscript.extendedinfoartistname=Crosby
09
:20:04 T:6276   DEBUGscript.extendedinfosave to textfileC:\Users\Woodside\AppData\Roaming\Kodi\userdata\addon_data\script.extendedinfo\07d062a7607dc570bdabe6fe9d5bec10.txt
09
:20:04 T:6276   DEBUGscript.extendedinfofound artist id for Crosbyfcb54ed6-d107-4408-a489-53d1cbf80cb8
09
:20:04 T:6276   DEBUGscript.extendedinfoStills Nash
09
:20:04 T:6276   DEBUGscript.extendedinfoDiscography.Count None
09
:20:04 T:6276   DEBUGscript.extendedinfoMusicVideos.Count None
09
:20:05 T:6276   DEBUGscript.extendedinfosave to textfileC:\Users\Woodside\AppData\Roaming\Kodi\userdata\addon_data\script.extendedinfo\368891fd5efc9e5d45ff3264d76e9804.txt
09
:20:05 T:6276   DEBUGscript.extendedinfoError when handling GetExtendedAudioDBInfo results
09
:20:05 T:6276   DEBUGscript.extendedinfosave to textfileC:\Users\Woodside\AppData\Roaming\Kodi\userdata\addon_data\script.extendedinfo\f0411563d79873192c29cc0daedb9d30.txt
09
:20:05 T:6276   DEBUGscript.extendedinfoError when handling HandleAudioDBAlbumResult results
09
:20:05 T:6276   DEBUGscript.extendedinfofinished 

I'm running Helix nightlies but this has been happening when running Gotham also. It seems as though $ESCINFO doesn't seem to work anymore, if I
use $ESCINFO it acts as though you just ran the script with an empty call.

PHP Code:
10:10:30 T:1400   DEBUGscript.extendedinfoversion 1.0.0 started
10
:10:30 T:1400   DEBUGscript.extendedinfo: default.py
10
:10:30 T:1400   DEBUGscript.extendedinfoinfo=artistdetails
10
:10:30 T:1400   DEBUGscript.extendedinfoartistname=
10:10:30 T:1400   DEBUGscript.extendedinfoDiscography.Count None
10
:10:30 T:1400   DEBUGscript.extendedinfoMusicVideos.Count None
10
:10:31 T:1400   DEBUGscript.extendedinfosave to textfileC:\Users\Woodside\AppData\Roaming\Kodi\userdata\addon_data\script.extendedinfo\6de11549bc707ee9e24cf3005761f40b.txt
10
:10:31 T:1400   DEBUGscript.extendedinfosave to textfileC:\Users\Woodside\AppData\Roaming\Kodi\userdata\addon_data\script.extendedinfo\efbeebf24d786be8c94781a4bfc582ff.txt
10
:10:31 T:1400   DEBUGscript.extendedinfoError when handling HandleAudioDBMusicVideoResult results
10
:10:31 T:1400   DEBUGscript.extendedinfosave to textfileC:\Users\Woodside\AppData\Roaming\Kodi\userdata\addon_data\script.extendedinfo\c6c048a4ffa65e0255e14bc3efc5e059.txt
10
:10:31 T:1400   DEBUGscript.extendedinfoError when handling HandleAudioDBAlbumResult results
10
:10:31 T:1400   DEBUGscript.extendedinfofinished 

Not too many artists have a "," in their names so it's not too big of a deal but I thought maybe you all should be aware of this and can maybe check into it. Thanks.
Reply
#2
Thx for opening a thread for this. I´d be really grateful if some of the experienced coders here could look into it since it probably affects a lot more scripts.
In Frodo I could use ESCINFO[] to pass arguments with special chars to the script. In Gotham and Helix ESCINFO[] just returns an empty string, no matter which infolabel I use. Anyone havin an idea what could cause this? (I think something like $NUMBER[] was added to prevent auto label translation in the nearer past, not sure if that is connected to this bug)

EDIT: seems as if it works when using '$ESCINFO[]' (including quotation marks)
For full discussion please go to the thread linked in the first post.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi seems to ignore anything after "," in $INFO tags0