Duplicated song ID
I noticed that several songs have the same song ID.
Due to this issue, /updatePlaylist
API doesn't work as expected.
# Script to reproduce the issue
import requests import json base_url = "https://play.asti.ga/rest/" username = "example@example.com" password = "example" client_name = "my_client" version = "1.16.0" token = password.encode('utf-8').hex() params = { 'u': username, 'p': f"enc:{token}", 'v': version, 'c': client_name, 'f': 'json', 'query': 'traveller', 'songCount': '3', } response = requests.get(f"{base_url}search3", params=params) print(json.dumps(response.json(), indent=2))
The response will follow in the 2nd post.
Comments
# Reponse in my acount
The returned songs have the same 27476763 as a song ID.
Actually not only
id
but alsoartistId
andalbumId
are the same...Thanks for pointing this out, we'll look into it.
Any plan to fix this?
Yeah, sorry, it's in the current milestone. Hopefully we'll roll it out soon...
Just to let you know: due to impending holiday, I've made the decision to postpone this release until around 22nd July. Sorry for this inconvenience...