Hi,

I'm working on a web-based mpd
client<https://github.com/superjoe30/groovebasin>,
and *here's a problem* that I'm having:

Users can upload tracks which the daemon adds to the music library. I'd
like to have those tracks go into a sensible location, for example
"$artist/$album/$track $title.$ext". But as is, I'd have to drop the file
in the root level, wait for mpd to pick it up if auto update is on, or send
a manual update notice, then once the tags are read, I can do a rename to
put the track in the correct location, and then wait for another round of
updating, before finally being able to queue the song in the playlist. So
this takes a long time, and there is a race condition in which a person
could overwrite a song with the same name before it gets moved.

*Here is a solution*:

If mpd supported reading tags for arbitrary files, not just files that have
already been added to the database, I could choose the correct destination
for the file before mpd adds it to the database.


Thoughts?
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team

Reply via email to