Duplicated song ID

tpytpy Member

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

  • tpytpy Member

    # Reponse in my acount

    ...
          "song": [
            {
              "id": 27476763,
              "parent": 27476144,
              "title": "the scholars and the travellers",
              "artist": "i am robot and proud",
              "artistId": 206145,
              "album": "the electricity in your house wants to sing",
              "albumId": 27476144,
              "genre": "Electronica",
              "coverArt": 27476764,
              "size": 7802868,
              "contentType": "audio/mpeg",
              "suffix": "mp3",
              "duration": 242,
              "path": "e2746aboveandbeyondvol15/17.mp3",
              "type": "music",
              "isDir": false,
              "bitRate": 256,
              "created": "2025-06-22T15:19:45"
            },
            {
              "id": 27476763,
              "parent": 27476144,
              "title": "traveller",
              "artist": "serph",
              "artistId": 206145,
              "album": "Aerialist",
              "albumId": 27476144,
              "genre": "Electronica",
              "coverArt": 27476764,
              "size": 10801713,
              "contentType": "audio/mpeg",
              "suffix": "mp3",
              "duration": 336,
              "path": "e2746aboveandbeyondvol15/17.mp3",
              "type": "music",
              "isDir": false,
              "bitRate": 256,
              "created": "2025-06-22T15:19:45"
            },
            {
              "id": 27476763,
              "parent": 27476144,
              "title": "Time Traveller",
              "artist": "Above & Beyond",
              "artistId": 206145,
              "album": "Anjunabeats Vol.15",
              "albumId": 27476144,
              "genre": "Trance",
              "coverArt": 27476764,
              "size": 7066139,
              "contentType": "audio/mpeg",
              "suffix": "mp3",
              "duration": 219,
              "path": "e2746aboveandbeyondvol15/17.mp3",
              "type": "music",
              "isDir": false,
              "bitRate": 256,
              "created": "2025-06-22T15:19:45"
            }
          ],
    ...
    

    The returned songs have the same 27476763 as a song ID.

  • tpytpy Member

    Actually not only id but also artistId and albumId are the same...

  • gravelldgravelld Administrator

    Thanks for pointing this out, we'll look into it.

Sign In or Register to comment.