Jump to content

ZigZagJoe

Dedicated Members
  • Posts

    895
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by ZigZagJoe

  1. Update! * can now add a download button directly into the pandora page itself (does not work with ie) * does not refresh mini player * removes ads * breaks the miniplayer check to see if it was spawned from pandora.com * option to delete thumbs down songs http:// zzj.itf-inc.com/PandoraSaver1004-ZZJ.zip OUTDATED
  2. Done - check "Delete negatively-rated songs" in settings. Also implemented support for inserting a download button straight into the webpage, right below the logo. Don't use the download button with IE6. (pops an odd error and refuses to load page) it doesn't work with opera either (for unknown reasons, it shows up, but never catches songchanged events) however does work in safari (chrome also by extension). Edit. Evidently related to bugs in how Pandora handles events - it sets proper but never fires on Opera, and in IE it doesn't work due to its faulty implementation. Also, tested IE7 - it does not work either. Note, this button only functions properly with one window at a time - some quirk of JS? i don't know if webkit-derived browsers have the same behavior. (every button gets the song the window opened first is currently playing) Made it "break" pandora's check if the mini player was linked from their website or not because it annoyed me. seriously, why did they do that? Also removes the prominent ad on the mini player. if you want a nice shortcut to the mini player, use http://zzj.itf-inc.com/gopan.html (link) to get the new version, download http://zzj.itf-inc.com/PS-1004bin.zip and place the contents in fiddler2's scripts dir. i don't know where the installer keeps the scripts, however, so you will need to find it yourself. Also, when the automatic refresh of pandora pages is enabled it nolonger refreshes the miniplayer (as i figured if you have the mini player open you are probably listening to it)
  3. mm, yeah, the mp4 extension is a bit of a stretch based on common use (though it IS a valid use of it) but the problem with changing it to aac or m4a is that all the already-ripped mp4 files would have to be renamed or it would re-rip. (aac = m4a and can equal mp4 - they are all the same format) as for not downloading thumbs down songs - do you mean deleting already-downloaded songs? pandora will not play thumbs down songs again on the radio (the field is either 0 or 1 for rated positive or not). It would be possible to have it delete recently thumbs-downed songs (ie, played in the same session, so pandorasaver has the info registered) Ie, if you clicked thumbs down then it could delete the song i suppose
  4. i'm not sure what the pandorasaver executable you talk about is, so i assume it is a launcher (PandoraSaver is a dll plugin for fiddler2 not a direct executable) if you launch fiddler2 by itself, it should work fine. The only real problem i've had with fiddler2 is if you have reuse client connections checked it will mix up images and generally not work well. speed is pretty much the same as normal - small price to pay for doing whatever i want. also, when using openpandora, copy a few of the urls from the start of when you launch pandora to whenever it finishes starting - this will give me some info. dunno if i could make it work though - really don't care for openpandora (it leaks memory like a sieve and is rather useless) In its place, i ended up writing a program that catches global media keypresses and passes it pandora, allows the volume to be changed as well. will upload it if someone wants it. ONLY works with firefox 3.x (due to how it keeps flash objects)
  5. You can also disable "Always show tray icon" in fiddler2 settings, under Appearance. As for using it with regular firefox, follow the instructions at this site. You need to point your firefox to use the proxy provided by Fiddler2. If firefox is not using fiddler2 as its proxy, this plugin can do nothing. Fiddler2 has not been modified in any way - the firefox in the box is just pre-setup to use the fiddler2 proxy by default. To use it with other programs, have them use the info seen in fiddler's options. basically, read the link for all you wish to know.
  6. I rather mp4. to convert to mp3 requires cpu time and if it's set to rock n roll it might try to do it at any time. with 256kbs mp3 it shouldn't be loosing much quality, but...eh. unless you want music to use on a portable device, i would leave it as mp4. 2x-4x the size with mp3s, possible transcoding losses, for slightly better compatibility. It tags mp4s just the same now, so there really isn't any point imo. See this post/thread for more details on this.
  7. hmm, shouldn't have been (it used the same fiddler API as the rest of saver does to get the path) but ah well, good to know it works again (using reg). truth be told, i wasn't sure the XML stuff was gonna work as it has been flaky for me in the past. Let me know if you spot any bugs. Only ones i know of currently is that sometimes the counter does not decrement when saving songs and that the logs window may stop updating (just relaunch it if you like)
  8. Simply put, i have no idea what is going wrong. Thus i have reverted it to using the registry, as atleast that is known to work. (i was unable to find a conclusive answer to what that error meant: some said errors in .net install?) I suppose it really doesn't matter as fiddler needs registry settings too, so it isn't truely portable. ah well Download it at the normal link.
  9. Hmm. The version of 1003 you are using is probably sitll using the registry for configuration. i updated the zip with a new version that will give a bit more info about the error + has a fallback option. Also, check the scripts directory and see if the conf file has any contents in it. THe only thing that should cause an error is if the there is no config file present, but by what you are posting the code that will create one if there is not one is also failing. From that, i am guessing the path it is trying to save to is invalid...? which would mean fiddler is not installed correctly, because it uses the info from it to know where to put files and where exes are located. So, download it again, copy all the files, and rerun it. Let me know if it errors. if it doesn't, check for a file at C:\PandoraSaver.conf and or one in the scripts dir.
  10. hmmm, that is odd. if it failed to create config, that means it probably could not write to that dir...? anyways, i put a default PandoraSaver.conf in the zip under /bin. try download it and sticking it in the scripts directory (in fiddler2). overwrite the dll just in case Odd, however, as i just tested removing the conf and it recreated it properly... in the screen you posted it appears to have missed the audio URLs. i would try with the newest version. the 1003 that is up may be outdated or bugged (possibly both) also, if you double click in the log window it will copy everything to the clipboard
  11. done implementing automatic mode off (and it works) - gonna increment the version to 1004 http:// zzj.itf-inc.com/PandoraSaver1004-ZZJ.zip OUTDATED positively ranking a song (when it is playing) will still cause it to be downloaded, but this would be simple to change. you might want to sneak this change in there quickly, otherwise i think this is done. (exempting any possible bugs, but i've tested it pretty well) notes on the installer thread- it does now grab track when rated positively. it can only rip positive songs or not automatically rip at all you manually rip songs via the "View Songs" option on the pandorasaver menu or tray icon you might want to put a list of contributors (hobbit, OP, and I)? also, i incremented the version number just now as this really is quite changed from 1003 and lower. a list of features might be good too
  12. yah, already implemented it in the form of the "View songs" option. keeps the last 30 songs, you can select from them at will. (turn on only rip positively rated songs) it will show a tray icon with the same options as the pandorasaver menu, and doubleclicking it will open the folder. the icon can be disabled in the settings menu. i could implement only downloading songs clicked as an extension of the positively rated song thing - when you click download song in the songs list, it sets the rating field to positve so it will download it. if it mangles that field when reading it to "0" always, it would never download any songs except ones you pick. i will implement it, it sounds like a good idea.
  13. finished making it use an XML config file. stores it in the scripts directory. (link in my post above) as for this button, where exactly would you put it? in the page itself really would not be practical, but i could see keeping the last 20 or so that were not acted on for display in a window accessible from the config menu, in which they could be manually ripped (or ripped if it catches a thumbs up response). it would be a little work, but nothing too hard i don't think the maker of the program would mind.
  14. It's possible to do it, it just needs some more code. I'll look into after I am finished beating XML with a large stick to make a config file.
  15. Hmm, yeah, that would be a good idea. I will make this use an ini file in the fiddler dir, instead of the registry to aid portability. I had noticed some websites were quirky with fiddler, but on the whole it's far too useful to give up. So handy Only thing that you need to check is if fiddler uses the registry itself, otherwise I don't see any problems
  16. Yes - pandora songs are in 64kbs HE AAC by default. The Pandorasaver plugin has an option to convert these to mp3, but I would rather not have one core pegged at 100% at random intervals for about 30 seconds. The modified version I made(see the very last post in that thread) adds support for tagging the mp4 files, so I would call that method better. keep in mind 64kbs HE AAC is far superior to 64kbs MP3, and the filesize is 2x smaller or more than mp3s at a sufficient bitrate to not loose much quality. (96kbs - 160kbs mp3 is equal to 64kbs HE AAC) Only thing that you really loose is less mobile devices support HE aac (aka aac+), nor does itunes (it does, but it can't use the HE features and thus they sound poorly). any other media player should support aac with a proper codec like ffmpeg installed, winamp and vlc even have support built in!
  17. I would use the fiddler2 plugin method with a new version of flash - it works great. (see this thread)
  18. Been using this, great program, far superior to Pandora's Jar, imo. (and fiddler2 is right handy as well by itself). Created another modified version, to address some shortcomings I found. Primary thing is it fixes path errors and now tags mp4s (and saves album arts for them) Seeing as I didn't want mp3s because of their lower quality/re-encoding, larger filesize (2x +), and heavy cpu use while transcoding, I chose to not convert the files (aac ftw). But, by default, if the saver is not going to convert them it just drops the mp4 in the folder without any tagging at all (or album art). Added/Changed Features: Option to only download thumbs-up songs. (note - if you thumbs up a song when listening to it, it will not be downloaded until the next play.) Option to only download songs on command - this is "view songs" on the pandorasaver menu or the tray icon Tray icon - same options as pandorasaver menu. disableable in settings. Adds tags + album art to mp4 files - album arts will be saved as png if using mp4 (format restriction). Adds support for custom save format - use tags like %artist%, %album%, and %genre% to customize where it saves files. I have not implemented custom filenames, but that would be a trivial thing to implement if people want it. *NEW* Can also use "%sid%" to sort by station ID and %station% to sort by station name *NEW* Log viewer window to see how many songs were sniffed/ripped + any other activity (and errors). Open it on the pandorasaver menu on fiddler2 window Adds new files to a m3u playlist "newMusik.m3u" in the root of the save dir Fixes errors in path due to periods, and general readability. They are now removed completely (except for the ext, ofc) "..." is replaced with a single space for sake of readability Now checks for mp3 files already being present when saving files, and will not save a mp4 file if there is an mp3 already (if you were using mp3 and stopped, or such) Formats names nicely - no multiple underscores or spaces in names. Also, will not end names with a space or underscore. Tags in mp3s + and m4as will not have underscores for chars like ?/\: etc Option to always update tags on files (even if it has been already tagged) Put associated station name in publisher/composer field Check for non-aac streams (which would cause a problem. I don't know if it is possible, but it is best to check just in case) Will not save responses shorter than 100kb (I noted this happening a few times) Features from 1003- Terminates proccesses that go longer than 5 minutes Download at http://zzj.itf-inc.com/PandoraSaver1005-ZZJ.zip, source etc within. (1.2mb) To use, copy ALL the files in \bin to <ProgramFilesDir>\Fiddler2\Scripts, overwriting any old versions of PandoraSaver.dll. Do note, there is a new EXE that needs to be copied - mp4tags.exe (used for tagging mp4s) Notes/Errata/Etc: Use Flash 9 or 10 with this - 8 now returns mono files (and may not be in aac format). Do NOT use iTunes to decode saved mp4 files! It is not capable of using HE AAC's SBR properly and thus falls back to LC aac - in short, it will sound very poorly! Use a decoder based on libfaad2 like ffmpeg (codec), or a player like winamp or vlc which have support built in. To enable logging create a blank txt file named "Log.txt" in the root of save folder. Alternatively use the "Log viewer" option - the log will be helpful if something is not working, instead of posting "it doesn't work onnoes halp". Doubleclick anywhere in the log window and it will copy the last 50 lines to your clipboard. If you do not set a filter to dump old requests in Fiddler2 it will *eat* memory and eventually crash, because it keeps all requests in memory, along with their responses (IE the big files downloaded). To fix this, in the fiddler2 main window click the filters tab, and check "Use Filters". then, at the bottom, check the box that says "Keep only the most recent 200 sessions" I find it still eventually will fail but it last a *lot* longer. (and doesn't use 2gb of ram) Fiddler.exe that was in the bin/Debug folder does NOT need to be copied to the scripts directory (along with the Xceed* dlls). it has been moved to /src (required so the compiler knows what it exports) Just leave it alone, do not move or mess with it - it has been added to the project so the compiler can still find it. A diff file detailing changes in code between this and 1002 is within the ZIP This was derived from 1002, but now incorporates some features from 1003 as well: namely the check for bad url/too long and terminated hung processes. I didn't bring the timer as i didn't really thing it necessary. wouldn't be hard to add it, though. Hmm, the url check doesn't work properly (because by default ALL values are longer than they should be?) Somehow the fiddler seems to know the correct length...need to figure out how this is done. I have the command for piping faad's output into lame (and avoiding the use of a wav file completly) inserted in the source, however, C#'s proccess utils blow goats and it's just too much effort to setup a pipe using inbuilt commands. But, it won't let cmd.exe launch properly to do the piping for us, so...Maybe someone else can complete it. Uses spaces rather than underscores for invalid chars, looks a bit nicer. Also, it only allows single spaces in filenames, in the case of consecutive invalid chars. It would be possible to download a song immediately when rated positively, if it were to check for the feedback POST (url containing "method=addFeedback") and then take the 3rd arg "arg3" which is the ID of the song. however, the method to handle sessions would have to be reworked so it didn't delete songs that were not positively rated until a few minutes after from the session-queue. (to allow for rating after the fact). after it has found that request, it would have to set the 'rating' field of the session to the value of "methodResponse" of the feedback POST. Last updated: 10:39pm 1/12/09 edit Hmm, just saw Hobbit's post about making a c-based version of this. (though it has been a few weeks with no result...?) To be honest, I like this method better because Fiddler2 is handy in its own right. Also, how do you plan on making a similar functionality without re-implementing the proxy entirely, or using a separate browser? Somehow you have to get the requests to go through a facility that the program can grab from, which is really limited to using a proxy(somewhat nasty) or forcing pandora.com to resolve to the local server (really nasty) Basically, while it is possible, why bother? It would be quite a pain, imo. Points for using C++ however, as I still don't like bytecode/heavy implementation languages that need a runtime such as java and .net - the latter being the lesser of 2 evils. Having no dependencies on outside dlls or programs would be nice, but it's impractical.
×
×
  • Create New...