Stereo Tool
https://www.forums.stereotool.com/

Possible to get track data from a URL?
https://www.forums.stereotool.com/viewtopic.php?t=34767
Page 1 of 1

Author:  Radio Quack [ Fri Jan 31, 2025 5:39 pm ]
Post subject:  Possible to get track data from a URL?

Hi,

The music source comes from Moode audio which uses MPD to play back tracks.

I wanted to know if the file source of the track data can come from a URL?

This is because MPD supports commands via URLs to get the track data, i.e., http://moode/command/?cmd=get_currentsong will output a page like the below:

{"file":"NAS\/Music\/Buddha Bar\/Buddha-Bar II By Claude Challe (2000)\/CD2 - Buddha's Party 2\/11. Soul Ascendants - The String Thing.flac","artist":"Soul Ascendants","album":"Buddha's Party 2 CD2","title":"The String Thing","coverurl":"\/coverart.php\/NAS%2FMusic%2FBuddha%20Bar%2FBuddha-Bar%20II%20By%20Claude%20Challe%20%282000%29%2FCD2%20-%20Buddha%27s%20Party%202%2F11.%20Soul%20Ascendants%20-%20The%20String%20Thing.flac","track":"11","date":"200000","composer":"","encoded":"FLAC 16\/44.1 kHz, 2ch","bitrate":"829 kbps","outrate":"PCM 32\/44.1 kHz, 2ch","volume":"0","mute":"0","state":"play"}

If it is not possible to access the data via a URL, then perhaps this could be considered for future development?

Also, is it sufficient to tell ST that to obtain the title information, the string is for "title": and it is until the comma? Is that the correct way to it?

Thank you!

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/