The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Internal API question
#1
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:


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?
Reply


Messages In This Thread
Internal API question - by eldar - 04-16-2023, 08:11 PM
RE: Internal API question - by Tim Curtis - 04-16-2023, 09:44 PM
RE: Internal API question - by eldar - 04-16-2023, 11:01 PM
RE: Internal API question - by Tim Curtis - 04-17-2023, 01:11 AM

Forum Jump: