Ampache sync errer

Issue description:

I’m using plex and ampache. The hardness of ampache is version 7.5.2 and supports opensubsonic. plex syncs normally, but for ampache, if you sync with opensubsonic, track sync 0 after artist and album.

Logs:

Upload description: muhuli

Additional information:

 

 

Reproduction steps:

 

 

Media provider:

Subsonic

Screenshots:

     

@lachlan-00 more bugs for you :slight_smile:

If the user server is really at 7.5.2 it returns

 "type": "ampache",
        "serverVersion": "6.7.3",

But most importantly it returns invalid data:

{
                    "id": "200307230",
                    "parent": "100146823",
                    "album": "True",
                    "title": "True",
                    "name": "True",
                    "isDir": true,
                    "coverArt": "al-200307230",
                    "songCount": 1,
                    "created": "2023-09-16T00:34:20+09:00",
                    "duration": 258,
                    "playCount": 0,
                    "artistId": "100146823",
                    "artist": "Skirts",
                    "year": 2021
                },
                {
                    "id": "200230497",
                    "parent": "100057920",
                    "album": true,
                    "title": true,
                    "name": true,
                    "isDir": true,
                    "coverArt": "al-200230497",
                    "songCount": 1,
                    "created": "2023-09-13T00:34:57+09:00",
                    "duration": 191,
                    "playCount": 0,
                    "artistId": "100057920",
                    "artist": "Jawny",
                    "year": 2023
                },
                {
                    "id": "200262285",
                    "parent": "100128128",
                    "album": "True",
                    "title": "True",
                    "name": "True",
                    "isDir": true,
                    "coverArt": "al-200262285",
                    "songCount": 1,
                    "created": "2023-09-14T01:55:18+09:00",
                    "duration": 176,
                    "playCount": 0,
                    "artistId": "100128128",
                    "artist": "Jonasu, KAREN HARDING",
                    "year": 2022
                },
                {
                    "id": "200278684",
                    "parent": "100054590",
                    "album": "TRUE",
                    "title": "TRUE",
                    "name": "TRUE",
                    "isDir": true,
                    "coverArt": "al-200278684",
                    "songCount": 1,
                    "created": "2023-09-14T16:30:35+09:00",
                    "duration": 186,
                    "playCount": 0,
                    "artistId": "100054590",
                    "artist": "Syml",
                    "year": 2021
                },

For album 200230497 the name and all are booleans.
Maybe again your xml to json converter fails and the name of the album is true.

Thank you, and the problem has been fixed.
The server version is 7.5.2 but the API version is 6.7.3.
It’s fascinating to me too, so I checked and found that the version is hard-coded inside the api.php.

Is this still not returning names?

I’ll check on Monday/over the weekend and will do a point release as there is another found bug in searching to fix.

It will be returning the API version instead of the software version. I’ll change that in the opensubsonic rewrite.

My rewrite is partially implemented, there are about 50 calls to go and then I have to correct the output data structure to match the spec

using the demo site i’m getting okay returns on getAlbum.view, is there a specific call?

if it’s still an issue can you tell me whether the album is valid in the website? the call is coming from
Subsonic_XML_Data::addAlbum()

There my be another JSON conversion issue but it would depend on the album data as maybe there is a text problem with the name

Since there is only one album that returns a boolean (Jawny-true https://youtu.be/yVesKJcHtTY?si=2qvbjegfBlqqwsk-), I changed it from true to true1 and passed it. Actually, this error occurred quite a while ago, but since Plex was used with Symfonium and Ampache could be used with dsub, I was using them and I thought it would be better to use them in one place, so I asked.
Thank you for your kind support.

Ah so your string name Jawny-true is being caught as a Boolean and casting to true?

That’s a good bug but one that will be solved with my rewrite.

I’ll rename an album and have a look at that so it’s fixed asap.

Point release next week after I find that

No, the artist name is Jawny and the album and track are true.
So I just changed the album and track to true1 and it worked. :laughing:

can confirm i can do the same there is code to convert based on the string value.

I’ll tweak that a bit more to clean up and update a release this coming week.

I’m about 1/3 of the way through converting the functions to JSON but still many weeks away from being able to ditch this class

Okay.
Thank you for your kind response.
Have a nice weekend. :star_struck: