Closed pled closed 4 months ago
Some more information : I have installed a subsonic client on my android (substreamer), and covers are nicely displayed using it.
I notice that type of request explicitly asking for cover art (getCoverArt.view) with subsonic client :
{"reqId":"AyKmwNQqoj01xaosADIa","level":0,"time":"2024-07-07T15:01:57+00:00","remoteAddr":"192.168.1.126","user":"--","app":"music","method":"GET","url":"/apps/music/subsonic/rest/getCoverArt.view?u=pascal%20&p=xxxxxxxxxx&v=1.13.0&c=substreamer&f=json&size=500&id=album-5463","message":"Subsonic request getCoverArt.view","userAgent":"Dalvik/2.1.0 (Linux; U; Android 14; Pixel 6a Build/AP2A.240705.004)","version":"29.0.3.4","data":{"app":"music"}}
Using Power Ampache client, I don't observe such request. Is it expected ? which request from ampache client is supposed to get cover art from Nextcloud Music App ?
There are basically two ways that an Ampache client could use to load the album art:
action=get_art
. But as that kind of calls are not visible in the log, I guess that PA2 is not using this alternative.art
URL returned as part of each album-type response from the Ampache API. If this alternative is used, then there is nothing logged to nextcloud.log.What you could try would be to fetch some albums from the Ampache API manually using the web browser. For example, the URL https://<your_server_url>/apps/music/ampache/server/json.server.php?action=stats&auth=5577f70e9eed2ba5d14a45dc5aac4328&limit=40&username=pascal&type=album&filter=random&offset=0
shown in your logs should work. Just note that the value of auth=
argument is a temporary session token, and this one is most likely already revoked. So check a valid token from a new log line. Then, you should get a response containing objects looking something like:
From there, copy the url shown on the key art
and test if you can load that with the web browser.
PS: If you have any further questions or findings, I might not be able to comment on those before Wednesday. But I will as soon as I can.
Thanks a lot for your answer. I did the test, and I do receive the expected answer :
So if my understanding is correct, this is an issue on client side. I will update issue on Github Power Ampache site.
Did you also follow that 'art' link and receive the image from there? If yes, then I would conclude that this is a client issue.
Btw, are your cover art images embedded in the audio files, or do you use separate image files located in the folder of each album? I'm wondering if the image format could be such that PA2 cannot handle it.
Hum, the 'art' link does not work, I get 404 error. Like for example :
https://xxx.yy/apps/music/ampache/image.php?object_type=album&object_id=5460&token=2-056cc720706eda4d3a6f4cde3a507ec5
For my test, I have both types of albums : some have art images embedded, when others are using cover.jpg
file in the album folder.
Can you see from the browser developer tools if there is any message attached to this 404 response?
It seems to be nginx response :
I had a similar issue when setting up my server, see that issue I raised to Nextcloud documentation : https://github.com/nextcloud/documentation/issues/11951
I may have to add another location or modify the one added to make this work...
Will do some tests with that, come back to you later on, I have to go now.. Thank you for your help...
So I did the test modifying the location in the nginx configuration file, and now the art link works and displays the cover.
From "location ~ ^/apps/music/ampache/server/.*\.php$
" to "location ~ ^/apps/music/ampache/.*\.php$
"
So this time, all is fine on server side I believe... :+1:
(I have to update documentation issue with that)
As far as the Music app is concerned, I consider this issue closed. The remaining problems shall be handled in the PA2 and Nextcloud documentation projects.
HI, I am using Nextcloud 29.0.1, Music 2.0.0 and PowerAmpache2-1.00-61-fdroid versions. I cannot succeed to get covers from NC Music server on PA, although album art is nicely displayed in the NC Music web interface.
I don't know exactly how to investigate this, and I would be happy to learn when and how server provides covers to the ampache client. Some of my musical library files have cover art embedded in the file, some others have a
cover.jpg
file in the same folder. These last take a bit more time to be displayed in the web view, but it is ok at the end (performance issue with my small server I guess).Here is some log I collected when client is connecting :
And may be this type of request for songs (not sure, but one can see "song&id=xxxxxx") :
{"reqId":"rv6bGelJMOWJx4pkUMpx","level":0,"time":"2024-07-05T08:56:56+00:00","remoteAddr":"192.168.1.126","user":"--","app":"music","method":"GET","url":"/apps/music/ampache/server/json.server.php?action=stream&auth=c7658352979824eab3eb335c15b54a22&type=song&id=31188","message":"Ampache action 'stream' requested","userAgent":"Dalvik/2.1.0 (Linux; U; Android 14; Pixel 6a Build/AP2A.240705.004)","version":"29.0.3.4","data":{"app":"music"}}