diff options
| author | jules on spawn <spawn@cortex> | 2018-05-13 12:03:37 +0200 |
|---|---|---|
| committer | jules on spawn <spawn@cortex> | 2018-05-13 12:03:37 +0200 |
| commit | a61412eb1538615578e87a20ddfbc618e1eeb041 (patch) | |
| tree | 2751107a89fbd4acae0c3435d6a9f9e655474bcf /latest.pl | |
| parent | 3ff94cfea6b8953307e29d5d3ffba9d70cf7659e (diff) | |
get script now supports urls
Diffstat (limited to 'latest.pl')
| -rwxr-xr-x | latest.pl | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -5,7 +5,8 @@ use Getopt::Std; our $opt_l; # mix and upload files our $opt_v; # print log for all files -getopts('lav'); +our $opt_n; # name/tag for file +getopts('lavn:'); our $matches = 0; if (scalar @ARGV) { @@ -73,6 +74,10 @@ sub process($){ # return 0; #} + if ($opt_l && $opt_n) { + $name .= '-' . $opt_n; + } + if (-e "output/" . $name . ".mp3") { return 1; } |
