MrDave2176 Posted June 24, 2006 Share Posted June 24, 2006 FYI.. If anyone wants to run this on os x here is a script that I put together to start everything for yo. export TEMP=`echo ~`/Library/Caches/TemporaryItems java -jar pandora.jar 8085& cd /Applications/Firefox.app/Contents/MacOS/ ./firefox-bin http://localhost:8085& I just create a file called pandora.sh and add all that to it. Make sure it is executable and run ./pandora.sh. May be a better way to do it, but this works for me. Also this only works if Firefox is not running yet. I am not sure how to open a new window in firefox via command line. Any ideas? I'll add a pandora.sh to the source documents if you'll put this in the n00b's guide Quote Link to comment Share on other sites More sharing options...
btothec Posted June 24, 2006 Share Posted June 24, 2006 FYI.. If anyone wants to run this on os x here is a script that I put together to start everything for yo. export TEMP=`echo ~`/Library/Caches/TemporaryItems java -jar pandora.jar 8085& cd /Applications/Firefox.app/Contents/MacOS/ ./firefox-bin http://localhost:8085& I just create a file called pandora.sh and add all that to it. Make sure it is executable and run ./pandora.sh. May be a better way to do it, but this works for me. Also this only works if Firefox is not running yet. I am not sure how to open a new window in firefox via command line. Any ideas? I'll add a pandora.sh to the source documents if you'll put this in the n00b's guide Done. I will update when I figure out how to open a "new window" in firefox. Quote Link to comment Share on other sites More sharing options...
Guest t3chn0b0y Posted June 24, 2006 Share Posted June 24, 2006 Thankz Barley!! Great Work... At one moment it saved a 1k file as an mp3, and folders with band names with & in them cut the name down to before &.. other then that no really serious issues... :D oh is there any place in the code i can change the "-" between the band name and song title to include a few spaces.. Quote Link to comment Share on other sites More sharing options...
wheatstraw Posted June 25, 2006 Share Posted June 25, 2006 I just create a file called pandora.sh and add all that to it. Make sure it is executable and run ./pandora.sh. May be a better way to do it, but this works for me. Also this only works if Firefox is not running yet. I am not sure how to open a new window in firefox via command line. Any ideas? btothec...we can use some applescript to open a new firefox window. Also, the port # can be specified via the first argument...example: $ ./pandora.sh 8000 #!/bin/bash port=$1 if [ ! $port ]; then         port=8085 fi export TEMP=`echo ~`/Library/Caches/TemporaryItems java -jar pandora.jar $port& # make sure java has enough time to launch sleep 5 osascript -e "tell application "Firefox"" -e "Get URL "http://localhost:$port"" -e "end tell" Quote Link to comment Share on other sites More sharing options...
MrDave2176 Posted June 25, 2006 Share Posted June 25, 2006 Barley!!! has released a fix for the iTunes integration and it is on-board as Beta 7.1 Here: http://wildandbad.com/pandora.beta.7.1.zip Quote Link to comment Share on other sites More sharing options...
btothec Posted June 25, 2006 Share Posted June 25, 2006 I just create a file called pandora.sh and add all that to it. Make sure it is executable and run ./pandora.sh. May be a better way to do it, but this works for me. Also this only works if Firefox is not running yet. I am not sure how to open a new window in firefox via command line. Any ideas? btothec...we can use some applescript to open a new firefox window. Also, the port # can be specified via the first argument...example: $ ./pandora.sh 8000 #!/bin/bash port=$1 if [ ! $port ]; then         port=8085 fi export TEMP=`echo ~`/Library/Caches/TemporaryItems java -jar pandora.jar $port& # make sure java has enough time to launch sleep 5 osascript -e "tell application "Firefox"" -e "Get URL "http://localhost:$port"" -e "end tell" Wheatstraw.. Thanks for the input. The oascript works fine. For some reason though I cannot get the first part of the script to work. When I run the script I get this. if: bad interpreter: No such file or directory Quote Link to comment Share on other sites More sharing options...
MrDave2176 Posted June 25, 2006 Share Posted June 25, 2006 awesome alpha, again barley. sorry for misstyping your name.heres a skin i made and am using. http://webpages.charter.net/sb76117/milky.zip I have made some minor changes so that the default pandoraGrabber file can be used. All of the changes are in the pandorajar.css file. pandorajar.css: body { background-color: #000000; } .button {     display: inline-table;     font-size: 9px;     font-weight: 600;     color: #c4c4c4;     background: transparent;     border: 1px solid #c4c4c4;     height: 18px;     line-height: 16px;     padding-bottom: 2px;     padding-left: 12px;     vertical-align: middle;     padding: 0px;     text-align: middle;     margin-bottom: 2px;     margin-top: 1px;     text-decoration: none; } #controlsPanel {     margin-top: -1px;     line-height: 23px;     vertical-align: middle;     padding-right: 10px;     background: none;     color: #c4c4c4; } #controlsPanel input{     display: inline-table;     font-size: 9px;     font-weight: 600;     color: #c4c4c4;     background: transparent;     border: 1px solid #c4c4c4;     height: 18px;     line-height: 16px;     padding-bottom: 2px;     padding-left: 12px;     vertical-align: middle;     padding: 0px;     text-align: middle;     margin-bottom: 2px;     margin-top: 1px;     text-decoration: none; } #saveControl {     position:relative;     margin-bottom: -20px;     width: 100px;     top: 4px;     left: 500px; } a.button {     display: inline-table;     padding: 2px;     font-size: 9px;     font-weight: bold;     margin-bottom: 5px;     color: #c4c4c4; } select, input {     color: #ffffff;     border: 1px solid #ffffff;     background-color: #c4c4c4; } blockquote {     margin: 0px;     padding: 0px;     padding-bottom: 10px;     padding-left: 30px;     color: #CCCCCC; } #topFans ul {     list-style: none;     margin: 0;     padding: 0;     display: inline; } #topFans li {     display: inline;     color: #999999; } #topFans li a:link { color: #336699; } #topFans li a:hover { color: #EC9201; } span.bold, strong {     font-weight: 900; } div {     font: 9px arial;     color: white; } .header {     font: 12px;     color: #c4c4c4;     background: url(../images/north.gif) repeat-x top;     margin-bottom: 18px;     height: 24px; } #logo {     width:300px;     height:24px;     margin-right: 45px;     background:url(../images/pjlogo.gif);     float:left; } #status {     width: 640px;     margin-right: auto;     margin-left: auto; } #TunerContainer {     position:relative;     height:250px;     width:640px;     margin-bottom: 18px; } #pandoraEvents, #pandoraEvents embed { POSITION: absolute; } iframe {     height:250px;     width:640px;     border:0px;     padding:0px;     margin:0px;     overflow: hidden; } /* Pandora  Style 'Album' Panels */ /* Pandora Style Brushed Metal */ .north { background: url(../images/north.gif) repeat-x top; } .east { background: url(../images/east.gif) repeat-y right; } .south { background: url(../images/south.gif) repeat-x bottom; } .west { background: url(../images/west.gif) repeat-y left; } .ne { background: url(../images/ne.gif) no-repeat top right; } .se { background: url(../images/se.gif) no-repeat bottom right; } .sw { background: url(../images/sw.gif) no-repeat bottom left; } .nw { background: url(../images/nw.gif) no-repeat top left; } #settingsPanel {     padding: 30px;     font: 12px arial; } #settingsCell {     margin-top: 18px; } #infoPanel {     padding-left: 20px;     padding-right: 20px;     padding-top: 24px;     padding-bottom: 26px;     width:600px;     height: 250px; } #idpanel {     float:left;     padding-left: 7px;     padding-right: 18px;     padding-top: 3px;     padding-bottom: 3px;     width:138px;     height: 244px;     background: #313131 url(../images/idpanel.gif) left repeat-y;     font-size: 9px;     overflow: hidden; } #idPanel .downloadMp3response {     padding: 2px;     border: 1px solid #999999;     width: 140px; } #biobottom, #statsbottom { background: url(../images/bottom.gif) no-repeat bottom left;     width:217px;     height: 243px;     overflow: hidden;     padding-top: 7px; } #biotop, #statstop { background: url(../images/top.gif) no-repeat top left;     float:left;     width:217px;     height: 250px; } #bandBio2, #songStats {     width:182px;     height: 210px;     font-size: 9px;     color: #444444;     padding: 14px;     overflow: auto; } p, li  {     font-size: 9px;     color: #444444; } I did this primarily so that I could use milky as an alternat stylesheet (as detailed in this thread: http://hak5.org/forums/viewtopic.php?p=17752#17752 Quote Link to comment Share on other sites More sharing options...
wheatstraw Posted June 25, 2006 Share Posted June 25, 2006 Wheatstraw.. Thanks for the input. The oascript works fine. For some reason though I cannot get the first part of the script to work. When I run the script I get this. if: bad interpreter: No such file or directory Could you make sure you pandora.sh script has EXACTLY the following? I've tested this script on both 10.3 and 10.4 and it works. pandora.sh #!/bin/bash port=$1 if [ ! $port ]; then         port=8085 fi export TEMP=`echo ~`/Library/Caches/TemporaryItems java -jar pandora.jar $port& # make sure java has enough time to launch sleep 5 osascript -e "tell application "Firefox"" -e "Get URL "http://localhost:$port"" -e "end tell" Quote Link to comment Share on other sites More sharing options...
l0ki76117 Posted June 25, 2006 Share Posted June 25, 2006 thanks mr. dave. im glad your not pissed at me for using your skin as a base! ill make other skins if anyone wants. maybe a hak5 skin. Quote Link to comment Share on other sites More sharing options...
Ghostbiscuit Posted June 25, 2006 Share Posted June 25, 2006 Hi All, Great work :D One question Where is the source for the last version (pandora.beta.7.1) ? Thanks Quote Link to comment Share on other sites More sharing options...
btothec Posted June 25, 2006 Share Posted June 25, 2006 Wheatstraw.. Thanks for the input. The oascript works fine. For some reason though I cannot get the first part of the script to work. When I run the script I get this. if: bad interpreter: No such file or directory Could you make sure you pandora.sh script has EXACTLY the following? I've tested this script on both 10.3 and 10.4 and it works. pandora.sh #!/bin/bash port=$1 if [ ! $port ]; then         port=8085 fi export TEMP=`echo ~`/Library/Caches/TemporaryItems java -jar pandora.jar $port& # make sure java has enough time to launch sleep 5 osascript -e "tell application "Firefox"" -e "Get URL "http://localhost:$port"" -e "end tell" Ahh. So if I have #!/bin/bash It gives that error. If I do #!/bin/bash I do not get the error. Only Difference is the space before #. But it still doesnt work. Just does nothing. I get no error, but it just sits there. I am using OS X 10.4.6 on a Macbook. Quote Link to comment Share on other sites More sharing options...
MrDave2176 Posted June 25, 2006 Share Posted June 25, 2006 thanks mr. dave. im glad your not pissed at me for using your skin as a base!ill make other skins if anyone wants. maybe a hak5 skin. Why would I be? I "borrowed" Pandora's after all :D Quote Link to comment Share on other sites More sharing options...
MrDave2176 Posted June 25, 2006 Share Posted June 25, 2006 Hi All,Great work :D One question Where is the source for the last version (pandora.beta.7.1) ? Thanks It is in the Beta 7.1 file (as far as I know) http://www.wildandbad.com/pandora.beta.7.1.zip Quote Link to comment Share on other sites More sharing options...
MrDave2176 Posted June 25, 2006 Share Posted June 25, 2006 thanks mr. dave. im glad your not pissed at me for using your skin as a base!ill make other skins if anyone wants. maybe a hak5 skin. Only thing I'd like to see is to make it a css and graphics only change...don't modify the pandoraGrabber.html file if at all possible. If you are adding functionality through Javascript and such that's fine...(after all that is exactly what I did) but I structured the pandoraGrabber.html file to be easy to change (radically even) with CSS only so it could be changed visually. And, as usual, I am happy to host anything you guys make for pandora's jar. Quote Link to comment Share on other sites More sharing options...
l0ki76117 Posted June 25, 2006 Share Posted June 25, 2006 ok, ill remember that. im makin a nice skin based on the blue hak5 wallpaper by testMAD http://www.flickr.com/photos/testmad/57088...in/set-1298042/ Quote Link to comment Share on other sites More sharing options...
l0ki76117 Posted June 26, 2006 Share Posted June 26, 2006 Hak5 skin... dave, i couldnt keep it JUST css... check you PMs and if you want, make it happen. Quote Link to comment Share on other sites More sharing options...
MrDave2176 Posted June 26, 2006 Share Posted June 26, 2006 Hak5 skin... dave, i couldnt keep it JUST css... check you PMs and if you want, make it happen. Actually, I was able to fix it to be just a CSS skin. Look here. http://wildandbad.com/hak5.zip I also fixed the 'milky' skin to be just CSS as well: http://wildandbad.com/milky.zip Quote Link to comment Share on other sites More sharing options...
tabako Posted June 26, 2006 Share Posted June 26, 2006 I am very sorry if this has already been answered, but I am having a few issues with my pandora time shifter :o . Often times (not all the time, and I can't figure out what causes it) when I first open it, the program gives me a repeated INFOÂ Â [Thread-2] (Mp3Processor.java:39) - access file not found trying again after 1 sec This will get spammed every second in the cmd prompt log for a song or two, and then the program will appear to run normally. Songs saved, however, are not saved under the correct artist/song/album, and normally each has the artist/song/album of a song that played two (or another small number) songs before it. I am not sure if the cmd prompt errors and the songs being saved under the same name are related or not. Thanks for any assistance anybody could provide, and sorry again if this is posted in the wrong place or has already been answered... I tried to look for something regarding this but found nothing. Quote Link to comment Share on other sites More sharing options...
btothec Posted June 26, 2006 Share Posted June 26, 2006 I am very sorry if this has already been answered, but I am having a few issues with my pandora rip. Often times (not all the time, and I can't figure out what causes it) when I first open it, the program gives me a repeated INFOÂ Â [Thread-2] (Mp3Processor.java:39) - access file not found trying again after 1 sec This will get spammed every second in the cmd prompt log for a song or two, and then the program will appear to run normally. Songs saved, however, are not saved under the correct artist/song/album, and normally each has the artist/song/album of a song that played two (or another small number) songs before it. I am not sure if the cmd prompt errors and the songs being saved under the same name are related or not. Thanks for any assistance anybody could provide, and sorry again if this is posted in the wrong place or has already been answered... I tried to look for something regarding this but found nothing. Make sure you are using the latest version first of all. Then clear your cache and delete all the plugtmp stuff in your temporary files. I am pretty sure that you are using an old version. Quote Link to comment Share on other sites More sharing options...
MrDave2176 Posted June 26, 2006 Share Posted June 26, 2006 I am very sorry if this has already been answered, but I am having a few issues with my pandora rip. Often times (not all the time, and I can't figure out what causes it) when I first open it, the program gives me a repeated Please don't call it a rip/ripper. It is a time-shifter. I say this not to be pedantic, but to be careful that we don't get squashed like a bug by a company with a lot more money and lawyers. okay...on to the problem. INFOÂ Â [Thread-2] (Mp3Processor.java:39) - access file not found trying again after 1 sec This will get spammed every second in the cmd prompt log for a song or two, and then the program will appear to run normally. Songs saved, however, are not saved under the correct artist/song/album, and normally each has the artist/song/album of a song that played two (or another small number) songs before it. I am not sure if the cmd prompt errors and the songs being saved under the same name are related or not. Thanks for any assistance anybody could provide, and sorry again if this is posted in the wrong place or has already been answered... I tried to look for something regarding this but found nothing. A couple of questions. First, are you using the latest version of Java Second is this on a Mac or Win XP? Third, What cersion of Flash are you using (There have been probs with Flash 9 reported) I have seen this. Here is my take on it. It is ignorable. It happens becasue the caching of the first (or second) song hasn't completed before the PandorasJar is trying to copy/tag it. The first few songs tend to make it hiccup a little until it catches up. Maybe that can be refined (or at the very leadt have it throw a different error). Seems to me mine just said "File not ready" in my log. Try D/Ling the latest version and see if that fixes it. http://wildandbad.com/pandora.beta.7.2.zip Try deleting everything in your Pandora Folder before installing it again to prevent any possible conflicts. Just some ideas. Quote Link to comment Share on other sites More sharing options...
tabako Posted June 26, 2006 Share Posted June 26, 2006 I updated my java with the link in the tutorial, the name of the file was jre-1_5_0_07-windows-i586-p-iftw. Windows XP is my operating system. I did not even realize I was using an older version of flash until now (mine is only 8, and you mentioned 9...) so I'll update flash and reinstall the new version and see if that fixes it. Thanks alot for the quick reply, and, sorry, I edited that one word out of my original post. edit: I went to update my flash and it said the version I am using, (8,0,24,0), is the most current version for windows. Is there another version you would recommend, and where would I find such a version? Quote Link to comment Share on other sites More sharing options...
btothec Posted June 26, 2006 Share Posted June 26, 2006 I updated my java with the link in the tutorial, the name of the file was jre-1_5_0_07-windows-i586-p-iftw.Windows XP is my operating system. I did not even realize I was using an older version of flash until now (mine is only 8, and you mentioned 9...) so I'll update flash and reinstall the new version and see if that fixes it. Thanks alot for the quick reply, and, sorry, I edited that one word out of my original post. Flash 8 is fine. People have problems with Flash 9. I wouldn't update flash at this point. Quote Link to comment Share on other sites More sharing options...
tabako Posted June 26, 2006 Share Posted June 26, 2006 In the newest beta that you linked me, the default directory seems to be E:/downloads/ which was causing problems for me because, well, I dont have an E drive. After looking through some of the files, it seems that the "default.properties" file was altered #uncomment the following line to set your preferred storage dir - u can change at at runtime if u want mp3.archive.path=E:/downloads/ tmp.mp3.retry.count=20 My guess is whoever was developing the current beta forgot to re-comment those two lines or something, but its an easy fix. Ok, regarding mp3s being saved under the wrong artist/album/song... this is what just happened for me. These are my first results after using the most current version. Song 1 started playing in pandora. It wasn't fully loaded or however that works, and the jar couldn't find the file. Once the song was almost done playing I pushed "grab it" and this time, the song was downloaded successfuly to the correct location with the correct name. "Cruise control" is checked at this point and when song 2 started playing, 15 seconds in the jar successfuly downloaded it to the correct location. Song 3 was downloaded to where it should have been, but the mp3 was a copy of song 2. Song 4 is downloaded to where it should have been, but the mp3 was a copy of song 3. Song 5 downloads to its location, but, predicatably, the mp3 is not the song that its title suggests, but is song 4. Still don't know what could be causing this, but I'll try some things and post if I can get a working solution. Quote Link to comment Share on other sites More sharing options...
bilalq908 Posted June 26, 2006 Share Posted June 26, 2006 Thanks Barley seems to be working again. I gotta question when i first loaded it it showed in a tiny window where i could barely see my lists of stations, not until i uploaded a new background did it work nice. Is this how it was for everyone else? Quote Link to comment Share on other sites More sharing options...
lo_moixo Posted June 26, 2006 Share Posted June 26, 2006 1) New BETA 7.2 works really good with the mp3 file naming. Also I cleaned the TEMP of FIREFOX. Maybe it helped :) Q1: Is any way to clean this options from command line? So we can write it on the BAT/CMD that runs the grabber and be sure it's always ok. 2) The "preferred storage" folder from "default.properties" file in the BETA 7.2 is E:/downloads and maybe need to be changed. But, if I write "C:mp3filespandora", and I ran the app from "C:pandorabeta.7.2." it stores the music in "C:pandorabeta.7.2.mp3filespandora" (joints the 2 folders). I supose because the app understands C: as current "C: folder" of the CMD file once it's runned. Also the end folder will be "mp3em@il from pandora" Q2: Can we change the "em@il from pandora" folder from code? Q3: Can we add the "Station Name" Folder? Q4: Can we change the "artist-name.mp3" naming fot "artist - name.mp3"? Surely it can bve done by code, but I don't know much :( - - - Q5: Where are the itunes/ipod tools? - - - Thanxs in advance 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.