Brandon Posted April 16, 2010 Author Share Posted April 16, 2010 Yep, all the urls changed, and the json format too, even groovewalrus is broken Quote Link to comment Share on other sites More sharing options...
Brandon Posted April 16, 2010 Author Share Posted April 16, 2010 (edited) Accidental Post Edited April 17, 2010 by Brandon Quote Link to comment Share on other sites More sharing options...
aloishis89 Posted April 16, 2010 Share Posted April 16, 2010 It would be cool to have a web based grooveshark downloader, but I found another one that works well. It's called Free Music Zilla. Basically it does some sniffing for mp3s and then grabs then and lets you download them. I just tested it out on grooveshark and it works great. It can't recover all of the metadata from the song, and you have to play like a second of each song on grooveshark to queue the download, but other than that it's awesome. My current instance of it is maybe 10 minutes old and its taking up about 12,500 K of memory. freemusiczilla.com Quote Link to comment Share on other sites More sharing options...
Brandon Posted May 27, 2010 Author Share Posted May 27, 2010 Ive started working on the site again, I should have code up in a few days Quote Link to comment Share on other sites More sharing options...
Brandon Posted May 29, 2010 Author Share Posted May 29, 2010 The new site is up groovedl.exofire.net Quote Link to comment Share on other sites More sharing options...
Brandon Posted June 1, 2010 Author Share Posted June 1, 2010 Heres the new new site, haha groovedl.6te.net Quote Link to comment Share on other sites More sharing options...
Belgin Fish Posted June 1, 2010 Share Posted June 1, 2010 Awesome :D Can we download it anywhere? I can't seem to find it on the google code. Quote Link to comment Share on other sites More sharing options...
Brandon Posted June 1, 2010 Author Share Posted June 1, 2010 Awesome :D Can we download it anywhere? I can't seem to find it on the google code. You have to download it via SVN, and have a server with PHP set up Quote Link to comment Share on other sites More sharing options...
Belgin Fish Posted June 1, 2010 Share Posted June 1, 2010 nice, thank you very much. Quote Link to comment Share on other sites More sharing options...
Brandon Posted June 1, 2010 Author Share Posted June 1, 2010 Your welcome, and I set up as script, so whatever progress i have made on those files, will upload to the branches folder on the svn every night, the code that will be in there might or might not work Quote Link to comment Share on other sites More sharing options...
Belgin Fish Posted June 15, 2010 Share Posted June 15, 2010 hey Brandon, I'm currently getting an issue with the header already been sent out. Is there an update? I've updated through the SVN but I had no luck. Quote Link to comment Share on other sites More sharing options...
Xqtftqx Posted June 18, 2010 Share Posted June 18, 2010 Nice Work Again Brandon, Any idea with the popular songs? I only seem to be getting 10 or 15 of them Quote Link to comment Share on other sites More sharing options...
Brandon Posted June 20, 2010 Author Share Posted June 20, 2010 @Belgin Fish Could you be more specific with the error, or just give me the error message? @Xqtftqx I dont seem to be getting that problem Quote Link to comment Share on other sites More sharing options...
Brandon Posted June 21, 2010 Author Share Posted June 21, 2010 @Belgin Fish That error has been fixed now Quote Link to comment Share on other sites More sharing options...
Brandon Posted June 26, 2010 Author Share Posted June 26, 2010 Does anyone have mirrors they would like to post, both of my hosting companies took them down Quote Link to comment Share on other sites More sharing options...
Xqtftqx Posted June 28, 2010 Share Posted June 28, 2010 (edited) Edit: http://xqtftqx.hacked.jp/scripts/Grooveshark/ Thats the mirror, its on a free domain but a paid host, they said they are all good with it. Ive made some modifications, you can get the diff file on the main page. Just some styling, fixed a bug in popular.php, and removed the counter code.. Also Playlists dont work.. Edited June 28, 2010 by Xqtftqx Quote Link to comment Share on other sites More sharing options...
Brandon Posted June 28, 2010 Author Share Posted June 28, 2010 Edit: http://xqtftqx.hacked.jp/scripts/Grooveshark/ Thats the mirror, its on a free domain but a paid host, they said they are all good with it. Ive made some modifications, you can get the diff file on the main page. Just some styling, fixed a bug in popular.php, and removed the counter code.. Also Playlists dont work.. Thanks! Would you like commit access to svn, since you've done a good bit for this project? Quote Link to comment Share on other sites More sharing options...
Xqtftqx Posted June 28, 2010 Share Posted June 28, 2010 (edited) Thanks! Would you like commit access to svn, since you've done a good bit for this project? Sure :D, PM Me Also, i get: Warning: Cannot modify header information - headers already sent by (output started at /home/xqtftqx/public_html/scripts/Grooveshark/newexec.php:188) in /home/xqtftqx/public_html/scripts/Grooveshark/stream.php on line 4 at the top of a page when trying to play a song... followed by the ascii of the mp3.. im trying to fix it Edited June 28, 2010 by Xqtftqx Quote Link to comment Share on other sites More sharing options...
DarkStar851 Posted June 29, 2010 Share Posted June 29, 2010 Haha, good ol' unreliable header();, you're problem is that in stream.php, you're including the functions class before defining the headers. Now, I couldn't be bothered to pick through everything in newexec.php to see what explicitly it was echoing, but here's all you need to do to fix the error. Open stream.php (optional, but good practice) uncomment "session_start();" Move "header('Content-Type: audio/mpeg');" one line before "include "newexec.php";" That's it. If anyone would like to see this in practice, or simply would like to get back to downloading, http://groovesnipe.it.cx/ Enjoy! -Scott Quote Link to comment Share on other sites More sharing options...
Brandon Posted June 29, 2010 Author Share Posted June 29, 2010 i have that fixed in the beta version Quote Link to comment Share on other sites More sharing options...
DarkStar851 Posted June 29, 2010 Share Posted June 29, 2010 (edited) Duely noted Brandon. Pro-tip; eliminate ANY whitespace before or after <?php ?>, as if said file/class is included before headers are defined, the whitespace is picked up as unparseable HTML and therefore PHP automatically defines headers. (which for this purpose is highly undesired!) If anyone on the project is looking for hosting, I have a box here doing pretty much nothing that could be put to good use. Hosting groovesnipe.it.cx on it at the moment if anyone has any questions about speed. EDIT: Useful update to stream.php to aid in track downloading (header trick) Replace the first part of stream.php (before "if(!...") with: <?php session_start(); include "newexec.php"; $songInfo = json_decode(getSongInfo($_GET["songid"]), true); header('Content-Disposition: audio/mpeg; filename=' . $songInfo["result"]["song"]["artistName"]. " - " . $songInfo["result"]["song"]["songName"] . '.mp3'); header('Content-Type: audio/mpeg'); NOTE: For this to work, you must go into newexec.php and remove the whitespace line at the very end of the file. Otherwise the script will error with that same annoying headers issue. This edit causes the file to be automatically downloaded (in modern browsers) with the filename automatically set as {artistName} - {songName}.mp3, very useful for song cataloging! :D Edited June 29, 2010 by DarkStar851 Quote Link to comment Share on other sites More sharing options...
Brandon Posted June 29, 2010 Author Share Posted June 29, 2010 Duely noted Brandon. Pro-tip; eliminate ANY whitespace before or after <?php ?>, as if said file/class is included before headers are defined, the whitespace is picked up as unparseable HTML and therefore PHP automatically defines headers. (which for this purpose is highly undesired!) If anyone on the project is looking for hosting, I have a box here doing pretty much nothing that could be put to good use. Hosting groovesnipe.it.cx on it at the moment if anyone has any questions about speed. EDIT: Useful update to stream.php to aid in track downloading (header trick) Replace the first part of stream.php (before "if(!...") with: <?php session_start(); include "newexec.php"; $songInfo = json_decode(getSongInfo($_GET["songid"]), true); header('Content-Disposition: audio/mpeg; filename=' . $songInfo["result"]["song"]["artistName"]. " - " . $songInfo["result"]["song"]["songName"] . '.mp3'); header('Content-Type: audio/mpeg'); NOTE: For this to work, you must go into newexec.php and remove the whitespace line at the very end of the file. Otherwise the script will error with that same annoying headers issue. This edit causes the file to be automatically downloaded (in modern browsers) with the filename automatically set as {artistName} - {songName}.mp3, very useful for song cataloging! :D I think a better way to do this would be a make a mod_rewrite rule, make the song id the folder, and then set the filename as the {artistName} - {songName}.mp3, because the way you did it disables streaming Quote Link to comment Share on other sites More sharing options...
DarkStar851 Posted June 29, 2010 Share Posted June 29, 2010 Hmm, fair enough. Granted streaming isn't working at all in Chrome for me, for some strange reason. If you'll note I'm already using a rewrite rule redirecting /*.mp3 to /stream.php?songid=$1, which is satisfactory for personal use. Might whip up a quick "Preview" (Flash-player for streaming from the Search or Popular page) later on, it's like 4am here. Quote Link to comment Share on other sites More sharing options...
Brandon Posted June 29, 2010 Author Share Posted June 29, 2010 Hmm, fair enough. Granted streaming isn't working at all in Chrome for me, for some strange reason. If you'll note I'm already using a rewrite rule redirecting /*.mp3 to /stream.php?songid=$1, which is satisfactory for personal use. Might whip up a quick "Preview" (Flash-player for streaming from the Search or Popular page) later on, it's like 4am here. Glad its not just me, what version of chrome do you use? And would you know how to make that mod_rewrite rule? Quote Link to comment Share on other sites More sharing options...
DarkStar851 Posted June 29, 2010 Share Posted June 29, 2010 (edited) RewriteEngine On RewriteRule ^(.*)/(.*).mp3 /stream.php?songid=$1 Should work, not sure. Haven't tested, and my Regex isn't the best. Works. Google Chrome 5.0.375.70 beta, for reference. They probably broke something. You under Linux as well? Anyways, I'm off to sleep for the night. Let me know if you come up with something a tad more elegant for streaming.. I have an idea, I'll do it up when I wake up, sometime around 3pm likely. :P Edit: It seems Grooveshark has changed their servers a bit. Updated stream.php code: http://pastebin.com/TWwJRSF9 Edited June 29, 2010 by DarkStar851 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.