From 9888b8b629e1f976043b91d24629c772d76b17e8 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 16 Jun 2018 18:31:41 +0200 Subject: get --- get.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'get.pl') diff --git a/get.pl b/get.pl index 9a169b2..c640ce0 100755 --- a/get.pl +++ b/get.pl @@ -68,8 +68,8 @@ else { my @partz = split("\n", $yt); foreach $part (@partz) { print "$part\n"; - if ($part =~ /\[download\] Destination\: ([^)]+)$/) { - $video_fn = $1; + if ($part =~ /\[download\] Destination\: (.*)\n?$/) { + $video_fn = chomp $1; print ">>> $video_fn\n"; } if ($part =~ /\[download\] (.*) has already been downloaded and merged/) { -- cgit v1.2.3-70-g09d2