http://localhost:9000/html/docs/cli-api.html?player=#DB

Sure, but this is not what pkfox is looking for. He needs a way to
retrieve all tracks with the info on what album the tracks belong to.
I would be very surprised if a CLI command, or even a sequence of CLI
commands, would export the entire library.

How do you expect does LMS send all the albums lists etc. to the player UI or iPeng or whatnot? Of course this is possible with the CLI. Just read the documentation about the various parameters you can use to get additional data for eg. tracks. Or get the full list of albums and iterate over it to get tracks album by album. It's all in there. Probably not as fast as raw SQL, but this shouldn't matter for this use case. Plus it doesn handle all the LMS settings the way LMS does for all the other UIs.

I guess the best way to
achieve that is by accessing the DB directly.

No, that's definitely not the best way. It's a waste of time, because you'd have to re-implement LMS' logic. Concentrate on your application and let LMS deal with the gory database stuff.

--

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

Reply via email to