http access on current cover #318
-
Hi, i've got an additional question: is it possible to get direct access to the current album / stream cover via a http access? The idea is after "embedding of myMPD" is now working perfect, I would also need access to the cover of the actuel running music on a different site out myMPD application. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
The coverimage is always accessible over this url: |
Beta Was this translation helpful? Give feedback.
-
Yes I found that already, but is there any posibility to have something like a call? Means I know the actuel path, but if there is a new file played, the path is also changing. Is there a request I can send to get back the right path to the albumart? |
Beta Was this translation helpful? Give feedback.
-
Curl in combination with jq does the trick for you, a simple shell script would look like:
The API documentation is your friend: https://github.com/jcorporation/myMPD/wiki/API |
Beta Was this translation helpful? Give feedback.
-
Sorry, I'm absolutely not familiar with json-rpc requests. Thank you, script is working in priciple. Is it also possible to get the output with a HTTP-GET request? |
Beta Was this translation helpful? Give feedback.
-
No, the API is POST only |
Beta Was this translation helpful? Give feedback.
The coverimage is always accessible over this url:
http://jukebox/albumart/<musicfile relative to music_directory>