Forum » Development Discussion

I made a Firefox extension for Pandora and Slacker - Version 1.0.2.1

 
    • ctd1500 said...
    • User
    • 3 Jul 2006, 04:06

    I made a Firefox extension for Pandora and Slacker - Version 1.0.2.1

    I have recently created a Firefox extension that submits the tracks you play at Slacker.com and Pandora.com to Last.fm.

    I liked Gabe's solution, but didn't really like the idea of entering my password on a third-party site, so I made an extension to handle the submissions.

    You can read some more about it, and install it at this page.

    If you decide to give it a try, please report any issues you have in the group forum.

    Edited by ctd1500 on 10 Dec 2009, 05:31
    • romiir said...
    • User
    • 3 Jul 2006, 08:20
    As the lead beta tester (poor little white rat), I must say this extention rox0rs :)

    Definitely worth a download if you listen to pandora.

    • ahoier said...
    • User
    • 4 Jul 2006, 03:22
    neat, will definately check into it :)

  • Excellent stuff mate, works like a charm!
    This thing rocks, so everybody: don't forget to digg (:

    - http://digg.com/software/Last.FM_Firefox_Extention

    Small comment (as bugs should be reported here):
    Every time a new song starts playing (and a message appears), Firefox goes back to the tab where Pandora has been loaded. This can be quite annoying. It does not happen when a message appears about the successful submission to Last.fm

    Feature request:
    Is it possible to translate the thumbs up/down (Pandora) into a loved/banned (Last.fm) and submit these as well? Would be great...

    Keep up the good work!

    discover new oceans
    lose sight of the shore
    Edited by newoceans on 7 Jul 2006, 07:18
    • ctd1500 said...
    • User
    • 7 Jul 2006, 03:26
    Quoth newoceans:
    Small comment (as bugs should be reported here):
    Every time a new song starts playing (and a message appears), Firefox goes back to the tab where Pandora has been loaded. This can be quite annoying. It does not happen when a message appears about the successful submission to Last.fm

    "Show a message when a song is submitted to Last.FM?
    Note: The message can be annoying, but it will show that it's working."
    That option was added for basic debugging purposes, so that you would know if the extension was seeing the songs currently being played or not.

    As for the reason that it goes to the Pandora.com tab when a new song starts, that is because the message is launched from the code that the extension places onto Pandora.com on load, in order for it to read the song data.
    Whereas the "The song: ... has been successfully submitted to Last.FM" message is launched from directly within the extension, so it isn't bound to a tab.

    Anyways, in the next release I'll try to stick the "Currently playing - Song: ..." message inside the extension core code, so it no longer switches to the Pandora tab.

    Quoth newoceans:
    Feature request:
    Is it possible to translate the thumbs up/down (Pandora) into a loved/banned (Last.fm) and submit these as well? Would be great...

    Unfortunately, the Pandora API is very limited in its current state and I can't read things like that programmatically. Maybe in the future Pandora will add a few more features to the API, but I won't count on it..

  • Thanks for the quick reply, everything clear (:

    discover new oceans
    lose sight of the shore
  • Hmm. Just received the same error message a few times:

    processSubmit error: Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE)
    [nsIXMLHttpRequest.status]


    Suppose it's caused by the Firfox Pandora/Last.fm extension. It happens while I'm browsing at another tab (just a website of an employment agency: http://www.tempoteam.nl).

    Hope this bug-report makes some sense...

    ______________

    UPDATE

    Got the following message in last.fm (seems to have a relation):

    Some tracks you submitted have not been added to your profile for the following reason:
    Spam protection triggered: You submitted a track dated earlier than your last submission.
    Close this box

    discover new oceans
    lose sight of the shore
    • ctd1500 said...
    • User
    • 7 Jul 2006, 20:16
    Quoth newoceans:
    Hmm. Just received the same error message a few times:

    processSubmit error: Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE)
    [nsIXMLHttpRequest.status]


    Suppose it's caused by the Firfox Pandora/Last.fm extension. It happens while I'm browsing at another tab (just a website of an employment agency: http://www.tempoteam.nl).


    That probably means that the extension couldn't make a connection to the Audioscrobbler submission server, so it returned no status code. In turn, the extension sent the song data to cache to be submitted later..


    Quoth newoceans:
    Got the following message in last.fm (seems to have a relation):

    Some tracks you submitted have not been added to your profile for the following reason:
    Spam protection triggered: You submitted a track dated earlier than your last submission.
    Close this box

    This means that either your computer's clock was set back to a time earlier than the last submission, or you perhaps submitted some songs from another player (like Winamp, WMP, etc..) and then the extension attempted to send the songs stored in cache to the server but they were dated earlier than the last submission from the other player.

    If that's not the case, and you didn't submit songs from another player after you recieved those first errors and then come back and begin submitting songs from pandora, or your computer's clock didn't get set back an amount of time (can be cause by a simple time server synchronization) then I really don't know what would be wrong..

    That would all depend on you knowing what songs you played recently, so that you could tell where it cut off, and where it started submitting the songs again.

  • Allright, thanks for the info!

    About the first thing (error message): sounds reasonable. Since I've installed ZoneAlarm's Security Suite, I experience problems with the internet connection quite often... As if the using of resources influences the quality of the connection - which sounds reasonable too. At least, to me (:

    However, at the time of the message, Pandora's music was playing without any hickups.

    About the second thing (last.fm message): I didn't change the computer's clock, and I didn't listen to music played by another player... So, next time I'll try to study the submitted songs better (:

    Anyway, didn't experience the error message again, so for now everything is fine. Thanks for the replies!

    discover new oceans
    lose sight of the shore
    • ctd1500 said...
    • User
    • 9 Jul 2006, 07:37
    Quoth newoceans:
    About the second thing (last.fm message): I didn't change the computer's clock, and I didn't listen to music played by another player... So, next time I'll try to study the submitted songs better (:


    In the update I released today (version 0.6.2) I've added logging to the extension, so now all the errors and much of the information (such as song data) is temporarily stored in a log file while the browser is running. Note that it only keeps the log for one browsing session, so if you close the browser and then re-open it, the log file is cleared on start.

  • Thanks!

    Just updated the extension. Will report bugs, feature requests, etcetera here again.

    Cheers!

    discover new oceans
    lose sight of the shore
    • Podex said...
    • User
    • 6 Aug 2006, 00:10
    Thanks a lot for this extension. Gabek's PandoraFM doesnt work for me on Ubuntu linux. But this works fine.

    Edit: I spoke too soon maybe. It doesnt appear to be working anymore. Is this because of a Pandora update?

    Soulseek/Nicotine: Podex
    Join Real Avatar, for people using pictures of their real faces as their avatar.
    • [Deleted user] said...
    • User
    • 6 Aug 2006, 09:56

    Not working

    Using Firefox 1.5.0.5 on Gentoo Linux / AMD64 with the 32 bit Firefox and the newest Pandora update, the extension doesn't seem to work. No notices, no log files, no cache, no nothing.
    If you would like me to post more data about my setup, please ask here.
    Thanks for the good work, and please, please make it work again :)

    • ctd1500 said...
    • User
    • 6 Aug 2006, 21:53
    It seems to be working for me now.
    It had a few issues at first when I went to check after I saw these 2 posts, but after I cleared my cache and closed and re-loaded the Pandora.com tab, it's working fine now..

    I don't have an accessible *nix system available to me right now, so I'm just using XP with Firefox 1.5.0.6.

    So currently all I can suggest is to clear your cache, and restart Firefox and/or close and re-open the Pandora tab, and hopefully something will solve it.

    • [Deleted user] said...
    • User
    • 24 Sep 2006, 18:46
    It seems to be working fine but I keep getting the following message:

    Some tracks you submitted have not been added to your profile for the following reason:
    Spam protection triggered: You submitted a track dated earlier than your last submission.


    I don't think it's my date/time settings because I never get it when I'm using the Winamp plugin on the same computer.

    Any suggestions?

    Thanks,

    -Mike...

    • ctd1500 said...
    • User
    • 26 Sep 2006, 22:57
    mike_decock said:
    It seems to be working fine but I keep getting the following message:

    Some tracks you submitted have not been added to your profile for the following reason:
    Spam protection triggered: You submitted a track dated earlier than your last submission.


    I don't think it's my date/time settings because I never get it when I'm using the Winamp plugin on the same computer.


    Did you scrobble songs from Winamp, and then go back to Pandora and get that error?

    It could be that the extension cached some songs, and you scrobbled from Winamp, went back to Pandora and the cached songs were dated earlier than the songs from Winamp.
    There are a few different ways to get that warning, including your clock going back a few minutes due to a time synchronization, or scrobbling from a different plugin while the extension had a few songs cached.

    The only way to really tell is by looking in the log file when you get that warning, and figuring out where the gap in the recently played tracks list is. If you don't know already, you can find out where the log/cache files are located under Tools->LastFM->Log file info.

  • I'd love this if I could get it to work for me!

    Using FireFox on Windows XP, I downloaded the plugin, enabled it and configured it to show the notifications, however, I have received no notifications or indications that the information is being received by Last.fm. Any ideas? Thanks!

    • ctd1500 said...
    • User
    • 29 Sep 2006, 21:54
    zenobia13 said:
    Using FireFox on Windows XP, I downloaded the plugin, enabled it and configured it to show the notifications, however, I have received no notifications or indications that the information is being received by Last.fm. Any ideas? Thanks!


    Is there anything in the log file? (You can find where the log/cache files are located on your system under Tools->LastFM->Log file info.)
    When you open Pandora.com, the log file should have something like:
    LOAD Pandora.com is loaded and the code has been initialized.
    LOAD Should start recieving song data to send to Last.fm.

    When you play songs, a line such as this should be in the log:
    INFO Currently playing - Song: Nazican - Artist: Voodoo Glow Skulls
    Though, you should see the notifications. Are you using any extensions like NoScript? I thought AdBlock Plus might have a conflict, but I just installed it, and my extension still sees the song plays.
    My best guess would be that another extension is causing mine to not load the code into Pandora.com.

    • [Deleted user] said...
    • User
    • 2 Oct 2006, 03:27
    ctd1500 said:
    Did you scrobble songs from Winamp, and then go back to Pandora and get that error?


    No, this has been happening almost constantly. I just set the delay back to 90 seconds instead of 30 (where I've had it all week) and the warning seems to be gone. I guess it must be a time sync issue even though I sync my computer's clock daily.

    Even with the warning, it looks like all the tracks are being scrobbled just fine. The charts for this week show 613 tracks, which is just about right.

    Thanks for your help and the great plugin!

    By the way, It seems that the plugin does not send album information. Is that by design?

    Thanks again!

    -Mike...

    • ctd1500 said...
    • User
    • 2 Oct 2006, 07:33
    mike_decock said:
    By the way, It seems that the plugin does not send album information. Is that by design?

    The Pandora API doesn't give me any album information, only the track title and artist.

  • Firefox 2.0

    I have problems with Firefox 2.0...
    :(

  • I use firefox 1.5.0.7 on Ubuntu Dapper and it doesn't work... that is - it notices when i open pandora.com but doesn't fetch song infos at all

  • Well...

    I started using this almost a week ago, and it was working fine until yesterday when it just kind of ... stopped. I've restarted my computer, I've restarted Firefox, I've even reinstalled the extension, but no dice. Do you know anything about how I could make it start submitting again? I'm using an iBook G4 with Mac OS X Tiger, if that makes any difference.

    Thanks.
    --Diana.

    --Diana Wade.
  • Something happened

    I've been using this extension for weeks without much problems until last week, it just stopped working. It doesn't even display the tracks. Anybody knows what happened?. I'm using Firefox 1.5.0.7.

    Thanks

    • ctd1500 said...
    • User
    • 17 Oct 2006, 05:20
    Pandora changed their API with their latest updates..

    I'm working on an update of the extension right now, and I'll release it soon.

Anonymous users may not post messages. Please log in or create an account to post in the forums.