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
30
votes
1 answer

ElementTree findall() returning empty list

I am trying to write a small script for interacting with the last.fm API. I have a small bit of experience working with ElementTree, but the way I used it previously doesn't seem to be working, it instead returns an empty list. I removed the API…
Cirno
  • 335
  • 1
  • 4
  • 8
23
votes
1 answer

How to Prevent Chrome fetching the last 128 bytes of an MP3 file

I am having a problem with this for a while now, so I thought I'd ask for your help. For a proof of concept project, I created a HTML 5 only last.fm player using jPlayer . It works fine with Firefox, but does not play using the html solution when…
user3001
  • 3,437
  • 5
  • 28
  • 54
12
votes
2 answers

Authenticating with Last.fm in Jquery - Invalid method signature supplied

I'm trying to auth a Last.fm session and am struggling to sign a request for a session key correctly. I keep receiving Invalid method signature supplied However when I md5 hash what i believe the query should consist of outside of JS, I get the…
TechnicalChaos
  • 452
  • 3
  • 21
9
votes
2 answers

Last.fm API returns same "white star" image for all artists

Recently i'm getting a poblem with Last.fm API, I have a fully functional code that worked 2/3 days ago but today each attempt to get artists pics from API returns an array with same url on all image sizes for all artists. A gray background white…
Gilian Marques
  • 417
  • 4
  • 16
9
votes
5 answers

PHP cURL error: "Empty reply from server"

I have a class function to interface with the RESTful API for Last.FM - its purpose is to grab the most recent tracks for my user. Here it is: private static $base_url = 'http://ws.audioscrobbler.com/2.0/'; public static function…
ABach
  • 3,743
  • 5
  • 25
  • 33
8
votes
1 answer

Last.fm geo.getEvents returns Invalid Method - No method with that name in this package

I have a problem running a test query with geo.getEvents method to the last.fm API. Weird thing is that it has been working for a while, then it just stopped suddenly. I wonder if the method has been disabled, or am I doing something wrong? This is…
8
votes
2 answers

SaxParseException in eclipse: XML document structures must start and end within the same entity

I am using the last.fm API for JAVA which can be found here . I have a huge Dataset in which I am only using the file with user's artist history and plays. I have written a code in Java which extracts these artist names and returns the similar…
HackCode
  • 1,837
  • 6
  • 35
  • 66
7
votes
1 answer

HTML5 audio with a HTTP 302 redirect in Chrome

I am trying to write an HTML 5 based last.fm player using the popular jPlayer jQuery plugin (http://jplayer.org). The player works fine in Firefox. However I ran into a problem: From the last.fm API (http://last.fm/api) I get a playlist with urls to…
user3001
  • 3,437
  • 5
  • 28
  • 54
7
votes
4 answers

HTTP Get Request in JQuery to Last.fm

I'm trying to make an HTTP Get request using JQuery, but I get an empty string as a response, so I figure I'm doing something wrong. I used the documentation from http://api.jquery.com/jQuery.get/ as a guide. My code looks like…
Crothers
  • 177
  • 1
  • 2
  • 8
6
votes
1 answer

lastfm api, 'ignorecode = 1' on return of attempted scrobble

I have tried scrobbling to my account on last.fm using three different methods and have come across the same error each time. All the information including auth information was provided yet the call to scrobble to my account still failed.. What is…
Edwin0258
  • 181
  • 1
  • 8
5
votes
2 answers

I want to get the all the song's tags through Last.fm API by Pylast

experts, I currently want to use all the song's tags in a research project. Of course, I have Pylast on my hand. But there is no detailed doc about Pylast. Then, is there anyone can tell me how to use Pylast to get all tags of song's through last.fm…
MaiTiano
  • 691
  • 4
  • 12
  • 21
5
votes
2 answers

Creating/Accessing a JSON object using jQuery $.ajax with Last.FM API

I've recently changed my site design and now need to use dynamic AJAX requests for my data. Basically, I'm trying to retrieve user data using the Last.FM API in JSON format. I'm newish to this, particularly JSON, and it's giving me a bit of a…
walden
  • 135
  • 1
  • 5
5
votes
1 answer

Accessing a JSON variable pre-fixed with a hash (#)

Last.fm seems to put # symbols in front of some of their variable names for it's JSON API. Have a look at a sample response here. As soon as I try and access #text with JavaScript I get an invalid symbol error in the console. Any quick fixes or…
greenimpala
  • 3,777
  • 3
  • 31
  • 39
5
votes
1 answer

error TS2339: Property 'results' does not exist on type 'Response'

I followed a piece of code building and app that collect data from last.fm using angular2, typescript and firebase. the source code can be found here: https://github.com/vtts/mytunes QUESTION how can I cast the results from the json calls? Source…
Abdelkrim
  • 2,048
  • 5
  • 30
  • 44
5
votes
2 answers

Rate Limiting Calls To an Api Using Cache in ColdFusion

Hi I am using ColdFusion to call the last.fm api, using a cfc bundle sourced from here. I am concerned about going over the request limit, which is 5 requests per originating IP address per second, averaged over a 5 minute period. The cfc bundle has…
namtax
  • 2,417
  • 5
  • 20
  • 27
1
2 3
21 22