If you use Material skin, you can add an entry to the context menu shown
when you right-click (or long press for mobile) on the cover in
now-playing. Create a file named "actions.json" and place it within a
"material-skin" folder in your LMS's prefs folder - e.g.
"prefs/material-skin/actions.json" - with the following:


Code:
--------------------
    
  {
  "track":[
  {
  "title":"Copy file location",
  "script":"lmsCommand('$ID', ['status', '-', '1', 'tags:u']).then(({data}) => 
{copyTextToClipboard(decodeURI(data.result.playlist_loop[0].url));});",
  "icon":"file_copy"
  }
  ]
  }
  
--------------------


Selecting "Copy file location" from the menu will copy the location of
the current track to the clipboard.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.
------------------------------------------------------------------------
cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=113145

_______________________________________________
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter

Reply via email to