04-16-2023, 08:11 PM
Hi!
I'm toying with idea of making an alternative client app for Moode player, and been looking into its internal API for displaying music. It's been a while since I touched web development, so my question is likely very silly. I'm trying to figure out an HTTP request to get the all the library contents. I've found the command that should give me what I want, however it returns an empty structure:
This is strange because the very same API call when debugging in the browser gives me a different output with all the tracks in the database. Am I missing something obvious?
I'm toying with idea of making an alternative client app for Moode player, and been looking into its internal API for displaying music. It's been a while since I touched web development, so my question is likely very silly. I'm trying to figure out an HTTP request to get the all the library contents. I've found the command that should give me what I want, however it returns an empty structure:
Code:
$ curl http://192.168.0.7/command/music-library.php?cmd=load_library
[{"file":"","tracknum":"","title":"","disc":"1","artist":[""],"album_artist":"","composer":"Composer tag missing","year":"","time":"",
"album":"Nothing found","genre":[""],"time_mmss":"","last_modified":null,"encoded_at":"0","comment":"","mb_albumid":"0"}]
This is strange because the very same API call when debugging in the browser gives me a different output with all the tracks in the database. Am I missing something obvious?