Python Forum
error getting tracks from albums
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
error getting tracks from albums
#2
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?
Reply


Messages In This Thread
error getting tracks from albums - by ozzyk - Nov-21-2017, 08:21 PM
RE: error getting tracks from albums - by ozzyk - Nov-22-2017, 12:07 AM
RE: error getting tracks from albums - by heiner55 - Nov-22-2017, 03:57 AM
RE: error getting tracks from albums - by snippsat - Nov-22-2017, 12:48 PM
RE: error getting tracks from albums - by ozzyk - Nov-22-2017, 01:44 PM
RE: error getting tracks from albums - by snippsat - Nov-22-2017, 02:07 PM
RE: error getting tracks from albums - by ozzyk - Nov-22-2017, 03:24 PM
RE: error getting tracks from albums - by snippsat - Nov-22-2017, 07:33 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  mido MIDI-file; how to distinguis tracks? philipbergwerf 2 2,321 Dec-10-2021, 05:06 PM
Last Post: philipbergwerf
  If statement not separating Albums giddyhead 5 2,580 Feb-26-2021, 11:31 PM
Last Post: giddyhead
  Getting top albums from last.fm ozzyk 1 3,045 Nov-19-2017, 09:40 PM
Last Post: heiner55

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020