Nov-22-2017, 12:07 AM
The print(album_respose) have this format:
{'album': {'name': 'Achtung Baby', 'artist': 'U2', 'mbid': 'a3cb23fc-acd3-4ce0-8f36-1e5aa6a18432',
'listeners': '3390992', 'playcount': '136035640', 'tracks': {'track': [{'name': 'One', 'url': 'https://www.last.fm/pt/music/U2/Achtung+Baby/One', 'duration': '276', '@attr':
{'rank': '3'}, 'streamable': {'#text': '0', 'fulltrack': '0'}
The error just appear in some artists that have space but some artists work like The Rolling Stones:
http://ws.audioscrobbler.com/2.0/?method...ormat=json
But others not for example Bruno Mars:
http://ws.audioscrobbler.com/2.0/?method...ormat=json
But works with a "+":
http://ws.audioscrobbler.com/2.0/?method...ormat=json
Do you know how to solve this issue?
{'album': {'name': 'Achtung Baby', 'artist': 'U2', 'mbid': 'a3cb23fc-acd3-4ce0-8f36-1e5aa6a18432',
'listeners': '3390992', 'playcount': '136035640', 'tracks': {'track': [{'name': 'One', 'url': 'https://www.last.fm/pt/music/U2/Achtung+Baby/One', 'duration': '276', '@attr':
{'rank': '3'}, 'streamable': {'#text': '0', 'fulltrack': '0'}
The error just appear in some artists that have space but some artists work like The Rolling Stones:
http://ws.audioscrobbler.com/2.0/?method...ormat=json
But others not for example Bruno Mars:
http://ws.audioscrobbler.com/2.0/?method...ormat=json
But works with a "+":
http://ws.audioscrobbler.com/2.0/?method...ormat=json
Do you know how to solve this issue?