James Posted June 2, 2006 Share Posted June 2, 2006 pandora.js file in the js folder has the settings. One of the settings is: var SONG_COUNT_BEFORE_RELOAD = 30; Pandora after sometime will require user intervention and will not function. This setting ensures that Pandora is reloaded before it requires user intervention. So if you want to rip music all night long (cruise control is on) then this will do it for you. If you're going to sit in front of the computer and rip songs manually (cruise control is off) then you can increase the counter for reload. When pandora stops playing songs because it requires user intevention, you can simply reload the page at that time. Won't the program become out of synch with Pandora if it is restarted and grab the wrong file? Or will it automatically compensate for the song that is downloaded before hand in the background? Quote Link to comment Share on other sites More sharing options...
nyb141 Posted June 3, 2006 Share Posted June 3, 2006 When the app grabs the song it takes all the files in temp directory and sorts them by the modified time. Once sorted it grabs the file. In the case you mentioned where Pandora reloads it doesn't matter since a timestamp is used. Quote Link to comment Share on other sites More sharing options...
Extreme_One Posted June 3, 2006 Share Posted June 3, 2006 ... * All settings such as pandora username, last.fm username/password, and other options can be saved * Settings are saved to a cookie which expires after 60 days Now if the page reloads all your settings will be restored and you don't need to retype any info. ... Sweet! :D Quote Link to comment Share on other sites More sharing options...
sunilkorah Posted June 5, 2006 Share Posted June 5, 2006 I have downloaded the latest compiled file today, but it is not working. My port 80 is used so I used port 8085. I get the 'let's grab some mp3s' message. But when I try to navigate to localhost:8085 the Pandora page does not come up. Instead I get this error "HTTP/1.0 404 Not Found Date: Thu Jun 01 17:24:12 GMT+05:30 2006 Content-Type: text/html Cache-Control: no-cache, no-store, must-revalidate, max-age=-1 server.Server: Pandoras Jar Connection: close file not found" And in the PandorasJar window it after 2 lines of "localhost connected to server " it shows "No enum const class enums.File Type .ICO" Any help? Sunil Korah Quote Link to comment Share on other sites More sharing options...
ddkk Posted June 5, 2006 Share Posted June 5, 2006 When pandora refreshes, the cruise control gets turned off so it stops grabbing when I try to run it over night. Is there a reason for this? I don't mean to complain because it is a great hak and I thank you. But, for those obscure songs it takes a long time for pandora to play it so I need to run it over night sometimes. Could an ini file be created for this so people can enter their own parms to control the way it works? Unfortunately, I don't know java or I'd try to help. Quote Link to comment Share on other sites More sharing options...
samu Posted June 5, 2006 Share Posted June 5, 2006 I have also downloaded the latest compiled file and it doesnt work... it pops the dos window for a sec and write: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/Logfactory at client.client.<clinit><Client.java:19> what can i do? Quote Link to comment Share on other sites More sharing options...
cooper Posted June 5, 2006 Share Posted June 5, 2006 @sunil: The .ICO thing is harmless. Just a warning about a file your browser is requesting which isn't included in the package (the icon typically shown left of the URL in the browser window). I'm not familiar enough with the package just yet to figure out what else might be wrong. @samu: The pandora.jar file has a dependency to several files in the lib directory that was (or should be) part of the package you downloaded. You must run the pandora server from the directory that contains the pandora.jar file otherwise it probably won't be able to find its dependencies. Specifically, your error means it was unable to find the liblog4j-1.2.12.jar file. Quote Link to comment Share on other sites More sharing options...
Magic Posted June 5, 2006 Share Posted June 5, 2006 Hi...this app looks really exciting. I downloaded it and tried it out on Dapper Drake Ubuntu even though I know that it's "for Windows only" at this time. To get it working I had to switch from the open source java default implementation to the sun jre. After doing this, it actually seems to get pretty far, but when I hit "grab it", I get the message "unable tor rip MP3 null". Any chance we can get this working on Linux? It seems like it shouldn't be that hard, it is java after all... Thank you... Quote Link to comment Share on other sites More sharing options...
cooper Posted June 6, 2006 Share Posted June 6, 2006 It's on my to-do list. The only downside is that it's a long list, and it takes a while for stuff to float to the top... Quote Link to comment Share on other sites More sharing options...
VoRTeX Posted June 6, 2006 Share Posted June 6, 2006 I think that a great feature that could be added to this would be that the program could skip the song once it has ripped it to save time when we leave it on over night, that way we can get more songs in the same amount of time and it should stop the idle feature built in to pandora, tho i have no idea how to impliment this feature or even if it would be possible Its great as is tho! ben Quote Link to comment Share on other sites More sharing options...
unclejim Posted June 6, 2006 Share Posted June 6, 2006 I think I read on their web site that you only get a certain number of skips per day. (10?) Has to do with their license agreement so they aren't classified as a music on demand service. Quote Link to comment Share on other sites More sharing options...
VoRTeX Posted June 7, 2006 Share Posted June 7, 2006 ohh yeah i forgot about that, and i guess a refresh doesnt cancel the 10 skips? so never mind! Quote Link to comment Share on other sites More sharing options...
MrDave2176 Posted June 7, 2006 Share Posted June 7, 2006 I have re-structured the pandoraGrabber.html file to look nicer and to conform to the Pandora look-and-feel The file is here: http://wildandbad.com/pandoraGrabber.zip Just Download and UNZIP into your pandora application folder. Let me know if you have any problems. Quote Link to comment Share on other sites More sharing options...
Islington Posted June 8, 2006 Share Posted June 8, 2006 Getting an error. C:Pandora>java -jar pandora.jar 8085 Exception in thread "main" java.lang.UnsupportedClassVersionError: client (Unsupported major.minor version 49.0) Â Â Â Â Â Â Â Â at java.lang.ClassLoader.defineClass0(Native Method) Â Â Â Â Â Â Â Â at java.lang.ClassLoader.defineClass(ClassLoader.java:537) Â Â Â Â Â Â Â Â at java.security.SecureClassLoader.defineClass(SecureClassLoader. 3) Â Â Â Â Â Â Â Â at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) Â Â Â Â Â Â Â Â at java.net.URLClassLoader.access$100(URLClassLoader.java:55) Â Â Â Â Â Â Â Â at java.net.URLClassLoader$1.run(URLClassLoader.java:194) Â Â Â Â Â Â Â Â at java.security.AccessController.doPrivileged(Native Method) Â Â Â Â Â Â Â Â at java.net.URLClassLoader.findClass(URLClassLoader.java:187) Â Â Â Â Â Â Â Â at java.lang.ClassLoader.loadClass(ClassLoader.java:289) Â Â Â Â Â Â Â Â at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274) Â Â Â Â Â Â Â Â at java.lang.ClassLoader.loadClass(ClassLoader.java:235) Â Â Â Â Â Â Â Â at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) Any way to get around this? Quote Link to comment Share on other sites More sharing options...
James Posted June 8, 2006 Share Posted June 8, 2006 Pandora has relocated the MP3's yet again. Now they're located outside the "plugtmp" folder and are named "plugtmp-#". Quote Link to comment Share on other sites More sharing options...
wizpig64 Posted June 8, 2006 Share Posted June 8, 2006 did you just now discover this? because my files have all the sudden stopped copying. "unable to rip MP3 null" and all. Quote Link to comment Share on other sites More sharing options...
Islington Posted June 8, 2006 Share Posted June 8, 2006 I solved it. netstat -a :oops: sorry about that. Quote Link to comment Share on other sites More sharing options...
zerko Posted June 8, 2006 Share Posted June 8, 2006 I had the "unable to rip MP3 null" error and I installed the new skin of MrDave2176 (superb !). Unfortunately, it doesn't show any message in the bar and seems to be unable to grab any song. Is there any solution ? I'm so sad without this great hack... Thanks in advance. Quote Link to comment Share on other sites More sharing options...
dubby Posted June 8, 2006 Share Posted June 8, 2006 For those of you who aren't afraid to hack a bit, and know how to compile Java code... 1) Edit srcutilMp3Processor.java... 1-a) Find these lines (beginning around line number 67) ---------- private static File getAccessFile(File pandoraTempDir) { File [] files = pandoraTempDir.listFiles(); ---------- ...and insert the following lines just after those lines... ---------- File tmpDir = new File(System.getenv("TEMP")); files = tmpDir.listFiles(new FilenameFilter() { public boolean accept(File parentDir, String fileName) { boolean nameMatches = fileName.startsWith("plugtmp"); if (nameMatches) { File mp3File = new File(parentDir, fileName); return !mp3File.isDirectory(); } else { return false; } } }); ---------- 1-b) Find this line (around line number 88 after the above is inserted) ---------- Long.parseLong(file.getName()); ---------- ... and replace it with this line... ---------- Long.parseLong(file.getName().substring(10)); ---------- 2) Save and compile the revised Mp3Processor.java file 3) In the same directory where the original pandora.jar and the src directory exist, create a new subdirectory called override and then inside that, create overrideutil 4) Copy Mp3Processor.class, Mp3Processor$1.class, and Mp3Processor$2.class into the overrideutil directory 5) Run pandora.jar with the following command java -cp override;pandora.jar client.Client Hopefully an official fix will be released soon and you won't have to do any of this... but if you just can't stand it being broken, and you know your way around a Java compiler, this seems to get it working again. Worked for me anyway. BTW, I also thought it was pretty funny that the first song that Pandora played after I got the grabber fixed was a song recorded by a well known has-been thrash band. For those who missed that episode of the music download wars, read this... http://www.disinfo.com/archive/pages/dossier/id374/pg1/ Quote Link to comment Share on other sites More sharing options...
zerko Posted June 8, 2006 Share Posted June 8, 2006 I have been able to hack to .java file but not to compile the code... So I will wait the next release with impatience. Thanks for everything ! Quote Link to comment Share on other sites More sharing options...
wizpig64 Posted June 8, 2006 Share Posted June 8, 2006 thanks dubby, but all i have is notepad2. :( hmm, could someone host the few files for the fix above for those of us who cant compile java? Quote Link to comment Share on other sites More sharing options...
zerko Posted June 8, 2006 Share Posted June 8, 2006 It would indeed be great... but perhaps am I abusing a little bit. Quote Link to comment Share on other sites More sharing options...
cooper Posted June 8, 2006 Share Posted June 8, 2006 http://comicnut.speedxs.nl/pandora.jar Simply overwrite your existing pandora.jar with this one. Please post back to this thread if this works. If so, I'll update the release on my server with it. Quote Link to comment Share on other sites More sharing options...
crus Posted June 8, 2006 Share Posted June 8, 2006 I made the changes and recompiled it...but how do you get the $1 $2 class files ? Quote Link to comment Share on other sites More sharing options...
cooper Posted June 8, 2006 Share Posted June 8, 2006 Those are the inner classes. Your compiler should've simply produced them. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.