Is it possible to add the tracknumber variable to the custom api for
json?
I am trying to add a menu entry that opens a text file in the browser. 
I have another http server running since I don't know how to get the
file from LMS.

The following works fine except I need to get the tracknumber with
leading zero as shown:

{ "title":"test2",

"script":"window.open('hypertext'+window.location.hostname+':8081/'+'$ARTISTNAME'+'/'+'$ALBUMNAME'+'/myfiles/'+'01.txt')",
"icon":"queue_music"
},

I have also tried the following without success, I think the concept is
correct but I don't know how to implement it.

lmsresponse=lmsCommand('d0:63:b4:00:66:d0',['status','-','1','tags:u']);
urlfile=lmsresponse.data.result.playlist_loop[0].url;
dir=urlfile.substring(24,urlfile.lastIndexOf('/')+1);
tracknum=urlfile.substr(urlfile.lastIndexOf('/')+1,2)


------------------------------------------------------------------------
doodooaudio's Profile: http://forums.slimdevices.com/member.php?userid=71784
View this thread: http://forums.slimdevices.com/showthread.php?t=109624

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to