summaryrefslogtreecommitdiff
path: root/get.pl
diff options
context:
space:
mode:
authorjules on spawn <spawn@cortex>2018-05-14 18:57:17 +0200
committerjules on spawn <spawn@cortex>2018-05-14 18:57:17 +0200
commite2d8a6f26c5e44d970d7c069f171105376835495 (patch)
tree2b834a6fd1cdcd37cbdbc45f1fe971ac369692d0 /get.pl
parenta61412eb1538615578e87a20ddfbc618e1eeb041 (diff)
log stuff.. auto append
Diffstat (limited to 'get.pl')
-rwxr-xr-xget.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/get.pl b/get.pl
index 8a0d8f9..0ef39db 100755
--- a/get.pl
+++ b/get.pl
@@ -9,9 +9,11 @@ foreach my $s (@ARGV){
if ($s =~ /^http/) {
if ($s =~ /(wav|aiff?|flac|mp3|opus)$/i) {
my $fn = `basename $s`;
+ print "downloading $fn\n";
system('/usr/bin/wget', $s);
system('/usr/bin/perl', 'dataset.pl', $fn);
} else {
+ print "youtube-dl $s\n";
my $yt = `youtube-dl --extract-audio --audio-format flac -o "%(title)s.%(ext)s" $s`;
my @partz = split("\n", $yt);
foreach $part (@partz) {
@@ -38,9 +40,14 @@ foreach my $s (@ARGV){
}
} else {
if ($s !~/\..*$/) { $s .= ".wav"; }
+ print "downloading $s\n";
system('/usr/bin/wget', 'https://neural:spawn5@asdf.us/neural/' . $s);
system('/usr/bin/perl', 'dataset.pl', $s);
}
+ open(my $fd, ">>../run_slap.sh");
+ print $fd "standard $fn";
+ close $fn;
+
$fn = undef;
}