BLeeEZ / amperfy

Amperfy is an iOS/iPadOS/macOS app to play songs from an Ampache or Subsonic server
GNU General Public License v3.0
459 stars 37 forks source link

playlist not loaded correctly from server 1.0.5 (3) #42

Closed flrnns closed 3 years ago

flrnns commented 3 years ago

Playlists are not loaded correctly from the ampache server.

The playlist Title is loaded and displayed along with the number of songs, but missing the duration ("0s"). Opening a playlist will show an empty list, so the individal songs are not being displayed and thus cannot be played.

BLeeEZ commented 3 years ago

Thank you for the reported issues. Which version does your ampache server has? Can you please provide me the api versions under Amperfy->Settings->Server too?

flrnns commented 3 years ago

Ampache Server API version 400001

BLeeEZ commented 3 years ago

With the current beta I switched to ampache api v5. Is it possible to upgrade your server to v5? V4 has some disadvantages for example genres are not supported. I am not shure if I want to support v4 in the future. I will at least add a error message so the user knows whats wrong.

BLeeEZ commented 3 years ago

Maybe I change the api to subsonic for this case. Than the app would be still usable.

flrnns commented 3 years ago

I didn't know that ampache was not backward compatible, sorry.

As soon as I have v5 server, I will try again

BLeeEZ commented 3 years ago

Over the weekend I did some additional reading and testing regarding your issue. Server API Version 400001 is quite buggy as you can read here: Ampache API Changelog. I set up an older Ampache server (API Version 430000) by myself. Amperfy works fine with that. I would suggest you to update your ampache server.

flrnns commented 3 years ago

Thanks for your reply. In the meantime I found out, that with Nextcloud there is no real ampache server involved that I could manually upgrade. The music app of nextcloud seems to just provide server side api which is meant to be compatible with ampache 400001 and they have no plans to update

BLeeEZ commented 3 years ago

OK, I See the problem. I assume you are using this: https://github.com/owncloud/music#ampache-and-subsonic I think I will add a selector at the login screen to choose the backend API manually. With that you would be able to use the Subsonic API.

flrnns commented 3 years ago

Yes, that's correct. That sounds awesome - hope it'll work!

flrnns commented 3 years ago

I just noticed, that I can setup Amperfy so that it interacts with the Subsonic backend of the music app. Had to reset the app settings and add /apps/music/subsonic to the server URL. Server settings: Backend API: Subsonic Server API Version 1.11.0 Client API Version 1.11.0

Playlists work fine this way - after some loading time though

BLeeEZ commented 3 years ago

With this commit a14cd6883c1b73d4637f2f2a7223efbd40cc3212 the API is selectable on the login screen.