Menu

#101 Need more command line commands

open
Other (29)
5
2002-09-16
2002-09-16
Anonymous
No

Specifically, I would like the following commands to be
added to the command line interface:

filename ?

The "filename" commands allows for querying the file
name of the song currently playing.
Examples:
Request: "10.0.1.203:69 filename ?<CR>"
Response: "10.0.1.203:69
filename /music/abba/01_Voulez_Vous.mp3<CR>"

I would use this to save the current playlist as a .m3u
file, even if the current playlist has been composed
using the remote. The filename returned is the exact file
name that was passed with the "playlist add" command,
not necessarily a fully-qualified path.

One other option would be to have the "playlist save
<playlist> <format>" command, with <playlist> being a
playlist file (like myplaylist.m3u) and <format> one
of "m3u", "pls" and so on, for each format the server
supports.

-------------

rescan <forced>

The "rescan" command tells the server to scan the mp3
directory and the playlist directory. <forced> is either 0
or 1.
Examples:
Request: "rescan 0<CR>"
Response: "rescan 0<CR>"

Unless the server implements it already, it allows a user-
interface application to either support a rescan button, or
periodically checks for updates itself.
My understanding is that currently (release 3.03) the
server doesn't detect changes in the mp3 directory. If it
was to support it in the future, this command could be
ignored if forced is 0, or performed regardless of server
settings. If a rescan button is pressed, the user wants
the directory to be rescaned, regardless of the server
ability to detect directory changes.

Discussion


Log in to post a comment.