summaryrefslogtreecommitdiff
path: root/get.pl
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-16 18:31:41 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-16 18:31:41 +0200
commit9888b8b629e1f976043b91d24629c772d76b17e8 (patch)
tree6db360eddd170e826d3353342493cacf1da1b244 /get.pl
parent775e51222cb2f00dc84ac3c3666e912c35d86380 (diff)
get
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/) {