summaryrefslogtreecommitdiffstats
path: root/shell.nix
diff options
context:
space:
mode:
Diffstat (limited to 'shell.nix')
-rw-r--r--shell.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/shell.nix b/shell.nix
index f231666..02c1e15 100644
--- a/shell.nix
+++ b/shell.nix
@@ -149,8 +149,7 @@ let
echo "already in finished: $1"
fi
id="$(echo "$1" | ${pkgs.gnused}/bin/sed 's@.*youtube.com/watch?v=\([^#]*\)#.*@\1@')"
- echo $id
- if ls "$target_folder" | ${pkgs.gnugrep}/bin/grep -Fe "$(echo "$1" | ${pkgs.gnused}/bin/sed 's@.*youtube.com/watch?v=\([^#]*\)#.*@\1@')"; then
+ if ls "$target_folder" | ${pkgs.gnugrep}/bin/grep -Fe "$id.ogg"; then
echo "file already exists: $1"
else
${pkgs.youtube-dl}/bin/youtube-dl \