Jamendo Ogg Vorbis direct downloader


This is a shell script that allows you to download music from jamendo.com in Ogg Vorbis format directly and easily (even multiple albums) - all you need to know is the album id (since 1.1 you can just paste the album urls on the command line).

Requirements



Tested on Linux, probably will work on other platforms supported by php-cli and wget as well.

The script (version 1.1)


ckjamendooggdl.php (line 1)
  1. #!/usr/bin/php -q
  2.  
  3. <?php
  4.  
  5. /*
  6.         CkJamendoOggDl - downloads albums from jamendo.com in OGG Vorbis format
  7.         Copyright (C) 2010-2011 Łukasz "Cyber Killer" Korpalski
  8.  
  9.         This program is free software: you can redistribute it and/or modify
  10.         it under the terms of the GNU General Public License as published by
  11.         the Free Software Foundation, either version 3 of the License, or
  12.         (at your option) any later version.
  13.  
  14.         This program is distributed in the hope that it will be useful,
  15.         but WITHOUT ANY WARRANTY; without even the implied warranty of
  16.         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17.         GNU General Public License for more details.
  18.  
  19.         You should have received a copy of the GNU General Public License
  20.         along with this program.  If not, see <http://www.gnu.org/licenses/>.
  21. */
  22.  
  23. if($_SERVER["argc"] > 1)
  24. {
  25.         for($num=1; $num<=($_SERVER["argc"]-1); $num++)
  26.         {
  27.                 preg_match('/[\d]+/', $_SERVER["argv"][$num], $albumid);
  28.                 system("wget --trust-server-names http://www.jamendo.com/get/album/id/album/archiverestricted/redirect/" . $albumid[0] . "/?p2pnet=bittorrent\&are=ogg3");
  29.         }
  30. }
  31. else
  32. {
  33.         print("Jamendo Ogg downloader. Version 1.1 by Cyber Killer\n");
  34.         print("Get the latest version at http://digital.dharkness.info/CkJamendoOggDl\n\n");
  35.         print("Usage:\n");
  36.         print($_SERVER["argv"][0] . " <albumid or album URL> [albumid or album URL] [...]\n");
  37. }
  38.  
  39. ?>


Just click grab to save the file, or copy&paste it yourself to your favorite editor. Remember to add executable permissions.

License


This program is under GNU GPLv3 or later.

Special thanks


I'd like to thank Karol „Zal” Zalewski for showing me how to force downloading Vorbis files directly from Jamendo. Great thanks to Jamendo for providing such a great service, but you could add an option to download ogg Vorbis files normally ;-P.


 
CategoryProjekty

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki