diff options
author | lassulus <lass@aidsballs.de> | 2015-08-22 17:30:04 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2015-08-22 17:30:04 +0200 |
commit | c9c103c0a751dcbec723ea19c255acf6764396c9 (patch) | |
tree | 7db4dc04c6ef9c5c86ba99f92a781b3e225a03e7 | |
parent | 9218b163f2d8bc965b853ed9fc9e13d15a703456 (diff) |
use parallel to download files
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | env.nix | 5 |
2 files changed, 4 insertions, 3 deletions
@@ -2,7 +2,7 @@ help: ## Show this help. @fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//' download: ## download all links to ./music - cat links | target=./music xargs -n 1 bin/yout2ogg + cat links | parallel -j5 -k "target=./music bin/yout2ogg" add: ##make add url="http://youtube..." add: ##to add link to ./links @@ -2,9 +2,10 @@ with import <nixpkgs> {}; { env = stdenv.mkDerivation { name = "playlist-tools"; buildInputs = [ - sox - pypyPackages.youtube-dl-light ffmpeg + parallel + pypyPackages.youtube-dl-light + sox vorbisgain ]; SSL_CERT_FILE="/etc/ssl/certs/ca-bundle.crt"; |