staresy wrote: 
> Hi Craig,
> No the REQ command never returns a result. In the the directory
> C:/Google Drive/Music/Bob Pearce/Someone To Run To/ there aren't any
> .TXT files, just .FLAC files and a sub directory called "additional
> resources" which contains my .HTML page and associated photos. So I
> added a .TXT file to the root of the directory where the .FLACs are as a
> test, but it didn't seem to make a difference, nothing is returned, no
> localfiles option displayed.
> 
> I'm no expert on CURL (never used it!), but got the command to run under
> a Win10 Admin cmd session, takes a long while to respond, and comes back
> with curl: (52) Empty reply from server
> 

Make sure you type the command exactly (including double dash before
data-raw).  I've just tried:


Code:
--------------------
    
  curl 'http://localhost:9000/jsonrpc.js' --data-raw 
'{"id":0,"method":"slim.request","params":["",["musicartistinfo","localfiles","folder:/C:/Google
 Drive/Music/Bob Pearce/Someone To Run To/"]]}'
  
--------------------


And LMS replied:

Code:
--------------------
    
  
{"method":"slim.request","params":["",["musicartistinfo","localfiles","folder:/C:/Google
 Drive/Music/Bob Pearce/Someone To Run 
To/"]],"id":0,"result":{"offset":0,"count":1,"window":{"textArea":"Empty"}}}
  
--------------------


Which is to be expected, as the folder does not exist on my Linux
system.



*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=109624

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

Reply via email to