Plugin URL prefix mapping?
cpd73 <cpd73.a1dj0n-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]>
| Newsgroups | gmane.music.equipment.slimdevices.devel |
|---|---|
| Organization | Logitech Squeezebox Forums |
| Message-ID | <[email protected]> |
For Material 2.4.2 I'm using a track's URL to map to its source. e.g. URL starting with "youtube:" maps to "YouTube". Currently I have a JSON file that maps these prefixes (URL schemes) to a displayable name. Is there a way for material to determine the URL prefixes used for all installed plugins? This way I can remove the JSON file and provide this mapping for a JSONRPC call - and when new plugins are created I don't have to manually update this mapping. e.g. I'd like Material's Perl plugin code to be able to query for all active prefixes/schemes and create a mapping from these to the plugin name. *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=114546