diff options
author | lassulus <git@lassul.us> | 2023-09-07 12:26:31 +0200 |
---|---|---|
committer | lassulus <git@lassul.us> | 2023-09-07 12:40:43 +0200 |
commit | 2e5167de1560ad0d7b8e294c72e1913f694160c2 (patch) | |
tree | b618daa9f125650e9276bae7848f854c48d6c95e /lass/5pkgs/dl | |
parent | 6a3a423dad19264c0c42821c7676e85ecc122d21 (diff) |
lass: migrate awayriplass
Diffstat (limited to 'lass/5pkgs/dl')
-rw-r--r-- | lass/5pkgs/dl/default.nix | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/lass/5pkgs/dl/default.nix b/lass/5pkgs/dl/default.nix deleted file mode 100644 index 69f2b8c45..000000000 --- a/lass/5pkgs/dl/default.nix +++ /dev/null @@ -1,29 +0,0 @@ -{ pkgs }: -pkgs.writers.writeBashBin "dl" '' - set -efux - LINK_OR_SEARCH=$@ - if [[ $LINK_OR_SEARCH == magnet:?* ]] || [[ $LINK_OR_SEARCH =~ ^https?: ]]; then - LINK=$LINK_OR_SEARCH - else - SEARCH=$LINK_OR_SEARCH - fi - - if ! [ -z ''${SEARCH+x} ]; then - LINK=$(${pkgs.we-get}/bin/we-get -n 50 -t the_pirate_bay,1337x --json -s "$SEARCH" | - ${pkgs.jq}/bin/jq -r 'to_entries | - .[] | - "\(.key) [\(.value.seeds)]\t\(.value.link)" - ' | - ${pkgs.fzf}/bin/fzf -d '\t' --with-nth=1 | - ${pkgs.coreutils}/bin/cut -f 2 - ) - fi - - if [ -z ''${CATEGORY+x} ]; then - CATEGORY=$(echo -e 'movies\nseries' | ${pkgs.fzf}/bin/fzf) - fi - - ${pkgs.transmission}/bin/transmission-remote yellow.r \ - -w /var/download/finished/sorted/"$CATEGORY" \ - -a "$LINK" -'' |