Jump to content

Pandora Timeshifting App: Main Discussion Thread


Recommended Posts

I've tried Pandora Jar and it's worked great. I copied the 7.2 jar file into the 7.3 installation, and edited the bat file to use port 85 since I had something on port 80 already. I even made a shortcut to the bat and gave it an icon, and zipped it up for backup.

I am having one problem, though. I'm getting an error when it tries to send to last.fm

I have my last.fm username and password entered with "on" selected and everything. Is anyone having the same problem?

Link to post
Share on other sites
  • Replies 1.4k
  • Created
  • Last Reply

Top Posters In This Topic

I've tried Pandora Jar and it's worked great. I copied the 7.2 jar file into the 7.3 installation, and edited the bat file to use port 85 since I had something on port 80 already. I even made a shortcut to the bat and gave it an icon, and zipped it up for backup.

I am having one problem, though. I'm getting an error when it tries to send to last.fm

I have my last.fm username and password entered with "on" selected and everything. Is anyone having the same problem?

Everyone is having the same problem it seems :(

Link to post
Share on other sites
Everyone is having the same problem it seems :(

You know, the other day I was using the PandoraFM mashup site and it wasn't submitting to my last.fm account. I thought it was just a fluke, but perhaps the two are related and something about the last.fm site has changed.

edit: it looks like there have been some changes to the API in the last month or so http://history.swik.net/Last.fm/Plugin+API I don't know how to, like, change anything though.

Link to post
Share on other sites

I have changed the file with 7.2. It is still the same. I get the following when I listen to something.

Fetching ID3 information and tagging MP3 for artist. (Scooter) song (Waiting For Spring (Live))....

Initing add track to last.fm.

I opened a last.fm accont with the hope of that clearing the problem - didnt change anything. As I said, I get all the information on the song, the music are playing -but it is somehow not stored. What is the role of last.fm? Is it necesarry to get the mp3's? I aslo opened my Itunes - but it also didn't work. No mp3s to be found.

Help please

:cry: :cry:

Link to post
Share on other sites
I have changed the file with 7.2. It is still the same. I get the following when I listen to something.

Fetching ID3 information and tagging MP3 for artist. (Scooter) song (Waiting For Spring (Live))....

Initing add track to last.fm.

I opened a last.fm accont with the hope of that clearing the problem - didnt change anything. As I said, I get all the information on the song, the music are playing -but it is somehow not stored. What is the role of last.fm? Is it necesarry to get the mp3's? I aslo opened my Itunes - but it also didn't work. No mp3s to be found.

Help please

:cry: :cry:

Do you have Cruise Control set to "on"?

Link to post
Share on other sites

Err...I have everything installed correctly, Flash 8, Firefox, Latest Java, etc.

So I load it and it works but music does not download, at all.

Says INFO [Thread2] <Mp3Processor.java:39> - access file not found trying again after 1 sec

Been doing that for about 4 songs.

Link to post
Share on other sites

i have a problem.

i have the latest firefox , flash 8, pandorajar 7.3 (and also tried replacing with jar of 7.2)

the problem is that the mp3 files are not saved.

i tried to use the defualt option (mp3 sub dir of pandora) and also tried to change the properties file (uncommented the relevant row)

cruise control is on.

the weird thing is that files are created by pandora sometime in the tempdir in the name of plugtmp-%, and sometimes inside the plugtmp subdir of the %temp% dir in weird names like: 5813319528624005116

during the same sesion. nothing is consistent here.

also when i check the log file is see the processing the mp3 files in the temp dir occurs only when i press on "grab this track" (and it's stuck on "Fetching ID3 information and tagging MP3 for artist...") even when the cruise control is on. but still all it does is igonre the mp3 files (it scans all files in temp and plugtmp dir) or the most it does is the finally find some file which is "ok" but it copies it to the temp dir in the name "temp" (in 7.3 jar) and to "pandorasJarTmpFile.mp3" (in 7.2 jar)

i think i worked only once and when i checked the log why only this time i saw that it succeseded to get the info from lastfm (or cddb i dont know)

only then the mp3 folder got created and the mp3 inside of it.

another thing:

most of the time the bio and stats from lastfm doesnt show anything.

once in a while it shows something.

also when using the 7.2 jar in 7.3 version u can see at the bottom "unsupported action: version"

i tried 7.3 (with 7.3 jar) at home on XP Machine, and everything works fine

the problem is only at work on win2000 SP4

Link to post
Share on other sites
On Jul 11, 2006, 12:21 Russ wrote:

OK, client ID pja, version 0.1. Thanks.

On Jul 11, 2006, 16:52 you wrote:

I am working on the Pandora's Jar Timeshifting application and I'd like to obtain a Client Code (pja would be fine) for a lastFM client

This was part of the last.fm problem it was using an unrecognised client id. I've secured this id for Pandora's Jar.

Link to post
Share on other sites

Okay I've found out why the "Station Name" stuff doesn't work.

Pandora's Jar on the HTML/JS side depends on an undocumented little flash script called PandoraEvents.swf This is what passes along the artist and song info from pandora and cues PJ to when songs are playing and such.

It USED TO provide a stationId but alas, it does no longer. Now all it does is these four functions:

pandoraEventsError(msg)

pandoraSongPlayed(songName, artistName)

pandoraSongPaused(songName, artistName)

pandoraSongEnded(songName, artistName)

So, for the forseeable future, it won't. I've fired an email off to the PandoraFolks (who are very open and helpful, BTW) to see if they would re-activate that particular feature since I liked it, and others may like it too.

While I was at it I fixed the "Backstage' Button so that it will now do a search for the currently playing artist.

Link to post
Share on other sites

A Fixed, Up-to-date Source, with some minor bug fixes and the new Pandora's Jar ClientID for last.fm is ONLINE

http://wildandbad.com/pandora.beta.7.3.zip

Technically it is 7.3.1 (and is available as http://wildandbad.com/pandora.beta.7.3.1.zip) but since 7.3 was such a fuckup I just copied over it.

I've spent a lot of time today making sure it compiles, runs and WORKS

Link to post
Share on other sites
I've fired an email off to the PandoraFolks (who are very open and helpful, BTW)

the music genome project people? do they know who you REALLY are? do they mind this grabber project?

Well they've been helping someone else doing much the same thing at http://pandorafm.real-ity.com/controls.php and it was their discussions that helped me figure it out.

http://www.simran.in/blog/?p=65

Link to post
Share on other sites

Well, the previous problem was certainly not the same versioning problem everyone else was having because after I copied Jar 2 over 3 then I did get a versioning error and nothing loaded.

After your fix was released MrDave2176, I jumped on it. I deleted everything just to make sure no error carried over and unzipped into a c:/pandora dir. Now everything loads and pandora runs but the files aren't getting grabbed. It is giving me an error in the command prompt. I'm not at home at the moment to paste the error but I'll pipe in later with it. I have the last.fm stuff turned off, not sure if this will cause a problem. Another thing I noticed was that the "Save to Folder" field in 7.2 turned into "PandoraAccount." I'm not sure if this was what is supposed to happen. The cookie saving my settings filled that field out with the directory information initially and pandora still ran.

Link to post
Share on other sites
Well, the previous problem was certainly not the same versioning problem everyone else was having because after I copied Jar 2 over 3 then I did get a versioning error and nothing loaded.

After your fix was released MrDave2176, I jumped on it. I deleted everything just to make sure no error carried over and unzipped into a c:/pandora dir. Now everything loads and pandora runs but the files aren't getting grabbed. It is giving me an error in the command prompt. I'm not at home at the moment to paste the error but I'll pipe in later with it. I have the last.fm stuff turned off, not sure if this will cause a problem. Another thing I noticed was that the "Save to Folder" field in 7.2 turned into "PandoraAccount." I'm not sure if this was what is supposed to happen. The cookie saving my settings filled that field out with the directory information initially and pandora still ran.

Actually the "save Directory" field WAS the PandoraAccount field. It had just been re-labeled. I've put it back in anticipation of fixing the station sorting issue but I am waiting on information from the Music Genome people. I can add a 'save directory' field if you'd like and parse it seperately. but it is just as easy to edit the default.properties field to the path you'd like to see appear.

Currently Pandora Account is information that is sort of used but it doesn't have any effect.

In LastFMLookup.getStationName it is used to retrieve a list of stations and before that was used as a lookup table for stationId to determine the station name. But now, the stationId isn't being passed (since they changed PandoraEvents.swf) and so it really just accomplishes nothing.

Maybe if I had it try the lookup and if it FAILS then it passes the PandoraUsername back as the station name. Hmmm....that might work.

util/LastFmLookup.java

public static String getStationName(String pandoraUserName, String stationId) throws IOException, DocumentException {

        LOG.info("looking up station name for station with id: " + stationId + " user: " + pandoraUserName);

        URL url = new URL("http://feeds.pandora.com/feeds/people/" + pandoraUserName + "/stations.xml?max=100");

        Document document = parse(url);

        Iterator list = document.getRootElement().element("channel").elementIterator("item");



        while (list.hasNext()) {

            Element o = (Element) list.next();

            String value = o.element("link").getText();

            if (value.indexOf(stationId) != -1) {

                String stationName = o.element("title").getText();

                LOG.info("found station name: " + stationName);

                return stationName;

            }

        }

       LOG.info("station with id: " + stationId + " not found. user: " + pandoraUserName);

       return pandoraUserName;

    }

There. That should do it.

or if you are one of THOSE people ;)

util/LastFmLookup.java

public static String getStationName(String pandoraUserName, String stationId) throws IOException, DocumentException {

       return pandoraUserName;

    }

EDIT:

It occurrs to me that in the servlet/ProcessAction.java file there is this snippet:

            if (stationId != null &amp;&amp; pandoraUserName != null) {

                LOG.info("Finding Station Name");

                try {

                    songInfo.setStationName(LastFmLookup.getStationName(pandoraUserName, stationId));

                      //todo:this does not work anymore - used the passed in param instead: 

                    // station javascript callbacks where disabled

                    //songInfo.setStationName(pandoraUserName);

                } catch (Exception e) {

                    LOG.warn("unable to lookup station name", e);

                }

            }

it would have to be modified as well

            if (stationId != null &amp;&amp; pandoraUserName != null) {

                LOG.info("Finding Station Name");

                try {

                    songInfo.setStationName(LastFmLookup.getStationName(pandoraUserName, stationId));

                      //todo:this does not work anymore - used the passed in param instead: 

                    // station javascript callbacks where disabled

                    //songInfo.setStationName(pandoraUserName);

                } catch (Exception e) {

                    LOG.warn("unable to lookup station name", e);

                }

            } else {

                songInfo.setStationName(pandoraUserName);

            }

Link to post
Share on other sites

i found why the mp3 files wasnot ripped to hard disk:

i debugged the code alittle using eclipse and found that when i am enabling cddb lookup and last fm data i have problems and mp3 files are not saved. the lookup is just get stuck and when does not return from the request and than a new song is started and the old one wil never get saved.

this occurs maybe because i am at work behind a firewall or something like this. at home this is works fine.

if i turn off htese options, mp3 files are get saved correctly.

Link to post
Share on other sites

Hi,

the thread is already 47 sides long... hard to remember all effects from anybody. But I think that I've read that some recorded files have the wrong name.

I've just decteded 2 filed which are really the same. Both have the same time stamp. But both have different names. So I'am a little disturbed if the recorded song is really the song I like or not..... sucks ...

Was the the solution to this problem to clear the temporary internet files before starting to record ?

I'am actually using 7.3 beta/alpha/gamma version.....

Link to post
Share on other sites
I'am actually using 7.3 beta/alpha/gamma version.....

Omega? ;)

Was the the solution to this problem to clear the temporary internet files before starting to record ?

That might work but try this instead:

go to C:Documents and Settings{username}Local SettingsTemp and delete all the plugtmp* files and folders. It will speed things up if you delete any archives(.zip, .rar, .cab) and folders too.

Some of them you won't be able to delete, but as long as the most recent ones are deleted you should be good.

Link to post
Share on other sites
i found why the mp3 files wasnot ripped to hard disk:

i debugged the code alittle using eclipse and found that when i am enabling cddb lookup and last fm data i have problems and mp3 files are not saved. the lookup is just get stuck and when does not return from the request and than a new song is started and the old one wil never get saved.

this occurs maybe because i am at work behind a firewall or something like this. at home this is works fine.

if i turn off htese options, mp3 files are get saved correctly.

This is very interesting...I'll have to investigate. I work behind a firewall and it works just fine for me.

If you turn off the last.fm data does the cddb work? vice-versa?

Link to post
Share on other sites
i found why the mp3 files wasnot ripped to hard disk:

i debugged the code alittle using eclipse and found that when i am enabling cddb lookup and last fm data i have problems and mp3 files are not saved. the lookup is just get stuck and when does not return from the request and than a new song is started and the old one wil never get saved.

this occurs maybe because i am at work behind a firewall or something like this. at home this is works fine.

if i turn off htese options, mp3 files are get saved correctly.

This is very interesting...I'll have to investigate. I work behind a firewall and it works just fine for me.

If you turn off the last.fm data does the cddb work? vice-versa?

i tried each one of them alone and also together, but the problem still exists.

also there was a situation that it was stuck on lastfm , the player already advanced 2 songs ahead, and then the data from lastfm returned bio and image, maybe this is relates to problem ppls had where songs where not tagged correctly. it hink that if the song get advanced to the next song, the result from lastfm or cddb should be discarded. this is occurs also if u just started to hear a song and while waiting for the query from last fm to return u advance manually to the next song...

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.


×
×
  • Create New...