Questions tagged [last.fm]

Last.fm is a music recommendation service.

The Last.fm API allows anyone to build their own programs using Last.fm data, whether they're on the web, the desktop or mobile devices. Find out more about how you can start exploring the social music playground on the link below.

Links

320 questions
0
votes
3 answers

Getting first value of array

I'm kinda new to JavaScript and jQuery, but I'm learning while I'm making things. Now I'm working with the last.fm api for JS (https://github.com/fxb/javascript-last.fm-api), and I'm trying to get the first album of my list. I fetch the data with…
Kiwi
  • 2,713
  • 7
  • 44
  • 82
0
votes
1 answer

How do i read the opensearch nodes in lastfm results

I am working with the lastfm api and i want to be able to paginate the search results from the artist search.
Danny Connolly
  • 879
  • 3
  • 10
  • 27
0
votes
1 answer

Parsing lastFm JSON for cover art

This is the JSON "album":[ { "name":"DD Y Ponle Play", "artist":"Jumbo", "id":"2528039", "url":"http:\/\/www.last.fm\/music\/Jumbo\/DD+Y+Ponle+Play", "image":[ { …
Dbrandt
  • 609
  • 1
  • 6
  • 16
0
votes
1 answer

KeyError in Python (Last.fm/@attr)

I am working with the last.fm-API. I have a problem with the currently playing song. Here is an example of a JSON-output: {"recenttracks":{"track":[{"artist":{"#text":"Gorillaz","mbid":"e21857d5-3256-4547-afb3-4b6ded592596"},"name":"Feel Good Inc -…
0
votes
2 answers

namespace name 'Lastfm' could not be found

I am using Visual Studio 2010, and this is my first time using an API. When I try to use the Last.FM API, I get the "type or namespace name 'Lastfm' could not be found..." for lines 10 and 48. I've looked at some other StackOverflow questions on…
0
votes
1 answer

I want to get the user info through Last.fm API by Pylast

I want to get the user info through Last.fm API by Pylast,but it returns error: bound method,I think I need your help. import pylast API_KEY = "xxx" API_SECRET = "xxx" username = "xxx" password_hash = pylast.md5("xxx") network =…
0
votes
1 answer

JavaScript LastFM

Hi have the following function: function last() { /* Create a cache object */ var cache = new LastFMCache(); alert("test"); alert("test2"); /* Load some artist info. */ lastfm.artist.getInfo({artist: 'The Killers'},…
0
votes
1 answer

Getting song tags and adding to the ID3 tag list

I solved my problem ^^ The following code scans a folder and its subdirectories, and for every .mp3 & .wav uses its ID3 tag to find all the tags from last.fm. I need to add more text to explain my code: You can use the args from the main, to add…
Kiwi
  • 2,713
  • 7
  • 44
  • 82
0
votes
3 answers

display name from last fm json feed parsed with jquery

I am trying to get a json feed and display the names of the artists. on the line that says element.artist, it displays [object Object],[object Object],[object Object] . I am very new to this. How would I display the contents of these objects? …
weaveoftheride
  • 4,092
  • 8
  • 35
  • 53
0
votes
1 answer

Last.fm JSON sorting with JQuery

I'm doing AJAX calls to get data from the last.fm API and decided to use JSON as return data type. So far, so good. The problem is this: I want to get the top tracks using the tag.getTopTags method from the API and it returns me a JSON that isn't…
swiftcode
  • 3,039
  • 9
  • 39
  • 64
0
votes
1 answer

Get number of tracks played within the last month from last.fm

I'm looking to display the total number of tracks I have scrobbled over the last month through my last.fm profile. I don't require the artists name, the track, etc, just the number of tracks played. Anyone have any idea how to accomplish this? …
Martin
  • 55
  • 1
  • 9
0
votes
1 answer

Last.FM scrobble via post.audioscrobbler.com

I am trying to create a simple app that scrobbles songs. If I follow these instructions (http://www.lastfm.de/api/submissions) the handshake responds with OK and I get a session ID as well as the submission URLs. But when I try to scrobble a song…
Stacksatty
  • 191
  • 2
  • 13
0
votes
1 answer

Last.fm API sends 2 tracks when I ask for one if I am listening to a song currently

Using the user.getRecentTracks, Last.fm sends 2 tracks despite the limit I set was 1. Due to some wise guy, it only sends one track if I am not currently listening to a track. For example:…
Paul
  • 145
  • 2
  • 11
0
votes
1 answer

Why toString() returns an hexadecimal code?

I have this written in my app LastFmServer server = AndroidLastFmServerFactory.getServer(); Artist[] results; results = server.searchForArtist("Hatebreed"); Log.e("", results[2].toString()); Why does this code make this appear in…
BamsBamx
  • 4,139
  • 4
  • 38
  • 63
0
votes
1 answer

How to get last week top tracks of an artist using last.fm API?

I want to fetch the last week top tracks of an artist using the last.fm API but I don't see any relevant method call for that. I looked at artist.getTopTracks method but it returns the overall top tracks of an artist. So, is there any way I can…
RanRag
  • 48,359
  • 38
  • 114
  • 167