Jump to content

Pandora's Jar ColdFusion's jar & src 7.4.0_CF5


have you tried PJ_CF5 (or 4) yet?  

16 members have voted

  1. 1.

    • yes, it's great
      3
    • yes, it's ok
      0
    • yes, it sucks
      1
    • no, but I will
      4
    • no and I will not.
      0


Recommended Posts

CF5 is now available on sourceforge.net.

download the jar-only from here:

http://sourceforge.net/project/showfiles.php?group_id=184854

developers are more than welcome to join in on the project! all sources are checked in to the CVS on sourceforge.

you are welcome to join me there - or take the sources and create your own branch.

---------------

features included over CF4:

1) added new configuration option: mp3.archive.dir (to choose a different name for the folder instead of the default 'mp3')

2) fixed fetching of station name. Will set the name of the currenly playing station PER USER!

if your user is logged on on more than one machine - this field will be the same for all of them,

it will be correct for at least one, but certainly not all of them. Sorry.

3) new config option "playlist.filename.bystation" if true, a playlist file with the sation name will be appended with the songs. if this is "ture" playlist.filename option is ignored.

------

Important:

a) Please go over the changelog if you're upgrading from something earlier than 7.4.0_CF4.

b) integrate all the new settings from the example file (or just use the example file instead of your existing default.properties)

c) if you don't mind submitting the song you are listening to including with it's file signature on the internet to the mp3-md5 verification DB - please enable mp3md5 (it's "opt-in" so it's disabled by default) - this way you get more reliable file-names and you contribute to the PJ community by providing song-name<->file-signature data.

Feel free to ask questions and suggest improvements.

Currently planned features for CF6 are album art and info grabbing off the pandora directory (instead of current way - which doesn't really work [at least for me]).

bug reports are more than welcome.

CF.

Link to post
Share on other sites

2 things:

If you have last.fm posting on, a song will be added twice if you have to re-click onto the grab-button because of the "unable to rip MP3 unable to find file make sure you have Pandora running in a FIRFOX browser" issue that sometimes occurs.

Another thing, as well regarding last.fm: Since several versions - so long I can't even remember since when exactly ;) - the timestamp of le last.fm submission is messed up! It's always one hour too fast!

Oh and yeah the QuickMix "problem"... But that has already been discussed by someone else... ;) The question should be, are the songs supposed to go into a "QuickMix" directory/playlist or into the one of the station that currently got played by the QuickMix function?

And as I see you got station names working! =) Did it work the way I suggested?

Link to post
Share on other sites

does it have a feature that allows you to have all songs saved into just 1 folder just like how many p2p programs are able to save the songs into 1 single folder with out grouping them in their own folder

it is annoying to go through 30 different folders to find the song you like (usually i remember the song name but not the artist)

Link to post
Share on other sites

Of course... Actually, it's the other way round: PJ used to save all files always into the folder "mp3", but many people complained that they wanted to have single folders for artists/stations/genres etc.

Just set

filename.format=/%a - %t

and the files will get saved into the mp3.archive.dir as "Artist - Title.mp3"

Just take a look at the comment in the config file for learning about other variations of file names.

Link to post
Share on other sites
Oh and yeah the QuickMix "problem"... But that has already been discussed by someone else... ;) The question should be, are the songs supposed to go into a "QuickMix" directory/playlist or into the one of the station that currently got played by the QuickMix function?

And as I see you got station names working! =) Did it work the way I suggested?

Yes, I did it the way you suggested. though there was a little trick there, the URL for the current station is using a different format of the username, so I first access the http://feeds.pandora.com/feeds/people/" + pandoraUserEmail + "/stations.xml?max=100 and grab the correct username from there.

About the quickmix - I have no way of knowing what station it is currently playing... so I'm just setting the station name to quickmix, and it behaves as if that's a regular station.

If you have any magic solutions for this - I'm here :-)

Link to post
Share on other sites
If you have any magic solutions for this - I'm here :-)

heheh, I think QuickMix will do well! ;-)

What do you think about the last.fm issues? Will it be possible to fix that?

I think there must be a way to add 1 hour to the timestamp in the code.

Link to post
Share on other sites

I'm not using the last.fm so much myself, so I can't really say.

Let me check that.

Adding 1 hour would be really easy - but who says that is the actual bug? perhaps it will fix it for you and create a bug for everyone else...

I'll try to see what I can do.

you are more than welcome to fix it yourself - the project is on sourceforge...

Link to post
Share on other sites

CF6 is now available at sourceforge (same url):

http://sourceforge.net/project/showfiles.php?group_id=184854

changes are:

1) bug fixes

1.1) station name was not detected when playing quickmix.

2) changes in default.properties

2.1) add support for field: "genre.setstation", if set true - genre will be set to be the name of the station currently playing. usefull if you'll want to browse later on your mp3-player by station (a mix of actual genres) and not by genre. [not to mention that actual genre is not working great right now]

3) changes in log file

3.1) add log entry for addition to playlist file

3.2) add log entry for overriding genre with station

Link to post
Share on other sites
CF6 is now available at sourceforge (same url):

http://sourceforge.net/project/showfiles.php?group_id=184854

changes are:

1) bug fixes

1.1) station name was not detected when playing quickmix.

2) changes in default.properties

2.1) add support for field: "genre.setstation", if set true - genre will be set to be the name of the station currently playing. usefull if you'll want to browse later on your mp3-player by station (a mix of actual genres) and not by genre. [not to mention that actual genre is not working great right now]

3) changes in log file

3.1) add log entry for addition to playlist file

3.2) add log entry for overriding genre with station

"genre.setstation" is not in the CF6 default.properties file.

Is it safe to assume that this is the line to be added?

genre.setstation.enabled=true

Link to post
Share on other sites
CF6 is now available at sourceforge (same url):

http://sourceforge.net/project/showfiles.php?group_id=184854

changes are:

1) bug fixes

1.1) station name was not detected when playing quickmix.

2) changes in default.properties

2.1) add support for field: "genre.setstation", if set true - genre will be set to be the name of the station currently playing. usefull if you'll want to browse later on your mp3-player by station (a mix of actual genres) and not by genre. [not to mention that actual genre is not working great right now]

3) changes in log file

3.1) add log entry for addition to playlist file

3.2) add log entry for overriding genre with station

I was so happy when I saw this!! But I guess I'm doing something wrong.

In Quickmix mode, it does go into the folder "Quickmix" but it doesn't add the Radio Name to the genre :(. How to fix this? :oops:

[Edit] And it does still show CF5.

Link to post
Share on other sites

sorry, my bad about the line not being in the default properties and the version still showing CF5. that's what happens when you work at 5 am.

the line to add is:

genre.setstation=true

the comment is set to the station name if there is a station name detected this is the way it has been for quite a while (I don't think that's something I wrote. perhaps even it's way back from 7.4.0 which I used as a baseline)

I'll fix the file on sourceforge ASAP.

I'm here for comments / suggestions / bug reports!

Thanks for the feedback guys.

Link to post
Share on other sites
sorry, my bad about the line not being in the default properties and the version still showing CF5. that's what happens when you work at 5 am.

the line to add is:

genre.setstation=true

the comment is set to the station name if there is a station name detected this is the way it has been for quite a while (I don't think that's something I wrote. perhaps even it's way back from 7.4.0 which I used as a baseline)

I'll fix the file on sourceforge ASAP.

I'm here for comments / suggestions / bug reports!

Thanks for the feedback guys.

Thanks for your reply!

This is a big improvement, but now the genre is "Quickmix" :oops:

Link to post
Share on other sites
... now the genre is "Quickmix" :oops:

birra, stop quoting everything! leave just the relevant part (if anything).

As I've said - there's no way for me to know which station the quick mix is currently playing.

I suggest that if station info is that important to you - quickmix on your own... listen to a different station every time - for a few hours each.

notice that when you switch stations - pandora's jar is most likely to grab the first file wrongfully.

this is a known bug - it is caused because the song that was supposed to be next on your previous station is already waiting in the temp folder - hence pandora's jar detects it as the one that's currently playing.

as we didn't get correct station info until now - I didn't have any way of working around it... but I suppose some sort of solution will be integrated into CF7 which is on it's way.

If you have any suggestions of how to know which station quickmix is using - I'll be thrilled!

Link to post
Share on other sites
Well, is there a way to open multiple Pandora sites?

If you do that now, they will all download the same song.

Do you mean "they will all grab the same song"? or do they actually play the same song?

Even if you can get multiple pandoras running - pj will mix up the temp files.

so don't do that! most of the files grabbed will be named incorrectly.

play one station at a time, or use multiple computers.

a clever trick might be to run multiple firefox instances using different temp directories.

if anyone manages to do that - and check if the flash is also fooled into using the other temp dir - this could be a good opportunity for some experiments in parallel ripping!

NOTICE: even if you rip in parallel (even on different computers) only one station name will be detected - and it will be the same on both machines! for parallel ripping - either listen to the same station on all instances or use different pandora accounts!

[/b]

Link to post
Share on other sites
NOTICE: even if you rip in parallel (even on different computers) only one station name will be detected - and it will be the same on both machines! for parallel ripping - either listen to the same station on all instances or use different pandora accounts!

[/b]

Different Pandora accounts doesn't work on the same PC. :(

Link to post
Share on other sites
Different Pandora accounts doesn't work on the same PC. :(

Alas!

(I think this is something that will be hard to overcome.)

my best suggestion to you is to listen to different stations, change once every few hours.

after a few days - just set pandora to 0-volume and listen to the files in your archive with shuffle on - it will be the same as quickmix.

if you want to quickmix only some of the stations - load their m3u files into your player and shuffle on that...

pandora will be downloading new files into your archive, while you'll get the same experience as listening to quickmix of the selected stations - with the abitlity to hit back and next as many times as you'd like.

what do you think?

Link to post
Share on other sites

Horray, CF7 is out. not what I expected to have in this release, but some neat features nonetheless.

same download page on sourceforge...

http://sourceforge.net/project/showfiles.php?group_id=184854

If you don't need any of the features here - there's no real reason to upgrade from CF6.

Changelog for PJ_CF7 (released 13-Jan-2007)

1) bug fixes

none

2) new features

2.1) added an option called "remote grab", when it is on - pandora's jar must be in cruise control.

the grabbing done in cruise control will not actually cause the file to be ripped, but rather just let the server know that a new song is playing (with artist / title info). then, the server can be accessed using the address http://localhost:port/monitor this will display a short text page with info about the song currently playing (if the cruise control sent the info already (default: 15 seconds into the song)):

a) the amount of time that passed since the info currently displayed has been sent (to verify sanity of the data before hitting "grab")

b) a link to initiate a grab (just like hitting "grab this song").

c) the name of the last grabbed song + the time passed since it was grabbed. (again for 'sanity QA' purposes)

In this mode - a click on "Grab this track" in firefox will not grab the song, a second click on the same song will grab it. (notice that clicking the link in the monitoring console will init a rip anyway. no two clicks needed there. if you click when a song just started playing - it will be saved with the info of the old song!)

Main use case: this feature has been requested by a user that is listening on a wireless headset and would like to be able to grab songs remotely using his PDA (equipped with WIFI). if you have a wireless headset but no PDA you can also access the page remotely using you cellular phone and WAP / GPRS / EDGE (etc). [usefull as a remote for grabbing while listening in bed and so on...]

3) chages in configuration default.properties

- enabled setting port number, specify "server.port=" , good if you want to run pj simply by double

clicking the jar file (if they're mapped to be run by java on your pc), but you don't want to us port 80.

- added "mp3.maxsize", defaults to 25MB, comment out in order to disable limit. will not save any grabbed

file if it is larger than specified size. (this was done because someone was experiencing a bug where files >80MB were grabbed!) 25MB limit seems more than reasonable.

- changed mp3md5 config format to support three options "off , local, online"

off = don't try to verify anything (md5 comparison to last file grabbed is still made)

local = create and use a local text file for collecting md5->songinfo votes

online = connect to an online mp3md5 database (hence opt-in to collaborate with others on the voting)

4) changes in log

minor changes, for new features.

Waiting for feature requests, but reports, suggestions, solutions and developers who wish to contribute from their time to the project

Link to post
Share on other sites

works great but has 1 problem

sometimes after a song when the next one starts and you click on grab this track, it will grab the last song played instead of the current one. then if you wait a little more and try it again, you get this error

Same MD5 as last time (stopping!)

ef542d5693b3c630e89577762c5c25e4

and other times, it will tag the new song with the name of the song last played

(the remote control works great :) )

Edit: it has used the same song and artist name for 3 different songs now.

for 2 different radio stations

and if i grab it again i get

Same MD5 as last time (stopping!)

3a838948e0d46bf635726c1c94ca6157

For my "Ayumi hamasaki" station, i get this error

failed to retreive match rating:

f07e6ce40def92a9abf3b02653c3e520HTTP/1.0 500 Internal server.Server Error Date: Sat Jan 13 16:04:31 EST 2007 Content-Type: text/html Cache-Control: no-cache, no-store, must-revalidate, max-age=-1 server.Server: Pandora's Jar Connection: close unable to rip MP3 null

Link to post
Share on other sites
works great but has 1 problem

sometimes after a song when the next one starts and you click on grab this track, it will grab the last song played instead of the current one. then if you wait a little more and try it again, you get this error

Same MD5 as last time (stopping!)

ef542d5693b3c630e89577762c5c25e4

and other times, it will tag the new song with the name of the song last played

(the remote control works great :) )

dude, read everything before you ask...

1)

In this mode - a click on "Grab this track" in firefox will not grab the song, a second click on the same song will grab it. (notice that clicking the link in the monitoring console will init a rip anyway. no two clicks needed there. if you click when a song just started playing - it will be saved with the info of the old song!)

2) the "same-md5" error means that the file you are trying to grab is the same as the last file grabbed. it prevents saving the same file under two names. in this case - the second click is the correct name... too bad.

don't click within the first 15 seconds!!! the timestamp on the "current playing" song should help you know if it's the right time... if the song you want to grab just started and the timestamp is more than 2 minutes... obviously this is not the time to click "grab"... refresh the page, and when you see the new song name - hit the grab link.

notice. do not "refresh" the result page (the one saying the file was grabbed) - it will cause another grab attempt.

Link to post
Share on other sites

i tried waiting until the middle of the song, it still saved the wrong name

MP3 tagged and saved:

C:pandoramp3UNKNOWN STATIONTam!UNKNOWN ALBUMTam!-Punctured Brain.mp3HTTP/1.0 500 Internal server.Server Error Date: Sat Jan 13 16:19:55 EST 2007 Content-Type: text/html Cache-Control: no-cache, no-store, must-revalidate, max-age=-1 server.Server: Pandora's Jar Connection: close unable to rip MP3 null

the name of the real song is Nemo by nightwish

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...