Open mihapiha opened 3 years ago
Apparently I missed this report. Sorry about that.
I just tested this against the latest Subsonic and from what I see, I get a single song back in the form of a dict:
In [5]: c.getSong(9285)
Out[5]:
{'status': 'ok',
'version': '1.16.1',
'song': {'id': '9285',
'parent': '9274',
'isDir': False,
'title': 'Mighty Love',
'album': 'Affection',
'artist': 'Lisa Stansfield',
'track': 2,
'genre': 'General R&B',
'coverArt': '9274',
'size': 7145759,
'contentType': 'audio/mpeg',
'suffix': 'mp3',
'duration': 312,
'bitRate': 182,
'path': 'Lisa Stansfield/Affection/Lisa Stansfield - Affection - 02 - Mighty Love.mp3',
'playCount': 0,
'created': '2005-01-17T03:46:36.000Z',
'albumId': '608',
'artistId': '292',
'type': 'music'}}
What version of Subsonic are you using? Or are you using Airsonic?
As in title getSong(id) returns list instead of just dictionary.
In documentation it says only dict is returned.