Current functionality (?)
![]() ![]() |
This script is exactly what I came here to find... but I can't determine if it's not working, or if its functionality is just not being noticed by me. So... IS this working with the current incarnation of playlist.com? If it is working for someone, please suggest a search term I can try and where to look for success? Thanks! |
![]() ![]() |
Well, It's kind of working at the moment. I need to update the search results. Playlist.com implemented some changes that broke this script when you are searching for items. However, downloading playlists still works. |
![]() ![]() |
Ahhh, OK it all makes sense now! This is a fantastic script! (There's no magic javascript way to force the name of the download to conform to the playlist entry, is there? I imagine if there was you would have implemented that long ago...) |
![]() ![]() |
nope. With javascript no. With PHP yes, but that's not the current language. I might see if I can write something that redirects all downloads through a PHP wrapper that sends them as attachments, but that's only theoretical at the moment. I have no idea if that will even work. |
![]() ![]() |
p113fd wrote:If we made this a Firefox addon we could do this and even make it automatically download to your default download location when you clicked the download links. Not sure Ronald wants that much exposure. I sure don't, hence why this script hasn't been uploaded to my account in a long time. |
![]() ![]() |
It doesn't initiate the button until you click the share button at least once, having to hit that and go back several times until the script loads properly. It would be wonderful if you updated this for all of us who appreciate your work! |
![]() ![]() |
I'm going to work on getting an update out today that will fix all the issues. Also, with FF addons, I'm much more hesitant. It's kind of a combination of exposure and questionable ethics. With userscripts, users tend to have a bit more experience with computers and won't be quite as exploitative. Also, with userscripts I can improve my javascript abilities, (which I am using more and more frequently in my web design), whereas addons would purely be a hobby activity. |
![]() ![]() |
I hope you plan on updating this, it appears they've changed their site appearance again and it's not giving the frame like appearance. Now it's not replacing the "share" option with download. I wish I could also download on the search page so I don't have to add to playlist. Keep up the good work! I hope this script doesn't fade away! |
![]() ![]() |
Okay the script is back up and running and being maintained by me(for how long I don't know) again. |
![]() ![]() |
Make this change(I bolded the relevant part) to fix the script and it will work again: if(unsafeWindow.PPL.search.trackdata.length && $('loadingModal').getAttribute('style').match(/display:\s*none;/)) {
Btw, I decided to delete my script awhile back but I also lost my most recent copy so if anybody out there has it, please shoot it my way. Thanks. You can host the most recent version here if you still have it Ronald. Also if anybody is interested in helping me develop a project playlist android app, I'm considering working on that. Obviously, since I plan on adding the feature where you could download the songs to your phone, we wouldn't upload it to the actual android market place and would instead keep it on the DL. Here is some sweet code I've been sitting on for several years that would really help us out:
function encodeSearchURL(param) {
param = param.replace(/\((\S|\s)*\)/g,'').replace(/\[(\S|\s)*\]/g,'').replace(/^\s+/, '').replace(/\s+$/, '').replace(/\./g,'_').replace(/-/g,'--').replace(/ /g,'-').replace(/\?/, '');
return encodeURIComponent(encodeURIComponent(param));
}
var searchurl = 'http://search.playlist.com/async/search/minisearch/' + encodeSearchURL(searchstring);
Yeah, that's right. They have a JSON api. We could use this for quick searches. And then we'd use could use that XML api they have for playlists. |



