summaryrefslogtreecommitdiff
path: root/get.pl
diff options
context:
space:
mode:
Diffstat (limited to 'get.pl')
-rwxr-xr-xget.pl4
1 files changed, 2 insertions, 2 deletions
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/) {