diff options
| author | jules on spawn <spawn@cortex> | 2018-05-14 18:57:17 +0200 |
|---|---|---|
| committer | jules on spawn <spawn@cortex> | 2018-05-14 18:57:17 +0200 |
| commit | e2d8a6f26c5e44d970d7c069f171105376835495 (patch) | |
| tree | 2b834a6fd1cdcd37cbdbc45f1fe971ac369692d0 /get.pl | |
| parent | a61412eb1538615578e87a20ddfbc618e1eeb041 (diff) | |
log stuff.. auto append
Diffstat (limited to 'get.pl')
| -rwxr-xr-x | get.pl | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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; } |
