cpd73 wrote: > I -think- the replacement of "$ID" only works for the fist occurance - > will fix for next release. For now, however, you could just use a > variable. e.g. (untested): > > > Code: -------------------- > > > { > "title":"Artist Radio", > "script":"let artistRadioId=$ID; lmsCommand(artistRadioId, ['dynamicplaylist', 'playlist', 'play', 'dpldefault_zz_CONTEXTMENU_for_selected_artist_a01_songs_random', 'dynamicplaylist_parameter_1:$ARTISTID']); setTimeout(() => lmsCommand(artistRadioId, ['dynamicplaylist', 'playlist', 'stop']), 10000)", > "icon":"queue_music" > } > > > > > I tried using a variable as you suggested above but it did not work. > It gave many json errors in the dev terminal but I didn't have time to > go through them. I will try to get you an example of the errors later. > Either way for the moment luckily using $ID and then $NAME is working > for what I wanted to do. > > Also using the "lmscommand": method is working on 2.7.1
------------------------------------------------------------------------ shinedou's Profile: http://forums.slimdevices.com/member.php?userid=72027 View this thread: http://forums.slimdevices.com/showthread.php?t=109624 _______________________________________________ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins