Revision [669]

This is an old revision of CkJamendoOggDl made by CyberKiller on 2011-07-27 10:06:24.
 

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.

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. if($_SERVER["argc"] > 1)
  6. {
  7.         for($num=1; $num<=($_SERVER["argc"]-1); $num++)
  8.         {
  9.                 preg_match('/[\d]+/', $_SERVER["argv"][$num], $albumid);
  10.                 system("wget --trust-server-names http://www.jamendo.com/get/album/id/album/archiverestricted/redirect/" . $albumid[0] . "/?p2pnet=bittorrent\&are=ogg3");
  11.         }
  12. }
  13. else
  14. {
  15.         print("Jamendo Ogg downloader. Version 1.1 by Cyber Killer\n");
  16.         print("Get the latest version at http://digital.dharkness.info/CkJamendoOggDl\n\n");
  17.         print("Usage:\n");
  18.         print($_SERVER["argv"][0] . " <albumid or album URL> [albumid or album URL] [...]\n");
  19. }
  20.  
  21. ?>


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

License


CC-GNU GPL
This program is under the CC-GNU GPL, version 2.0 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