From 5606555d4a61192dd4b9c8ec1e5e210e799dce92 Mon Sep 17 00:00:00 2001 From: terra-dude <59861614+terra-dude@users.noreply.github.com> Date: Tue, 28 Jan 2020 18:14:24 +0100 Subject: [PATCH] Update total-rescan.pl --- total-rescan/total-rescan.pl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/total-rescan/total-rescan.pl b/total-rescan/total-rescan.pl index 20eb996..75fbf0f 100755 --- a/total-rescan/total-rescan.pl +++ b/total-rescan/total-rescan.pl @@ -2,12 +2,14 @@ ############## ############## ############## ############## ############## ######## #### ## # # total-rescan (c) daxxar ^ team pzs-ng # - version 1.5rc2 +# total-rescan (c) TeRRaNoVA added FLAC +# - version 1.5rc3 # #.########################################################################, # THIS SCRIPT *MUST* RUN AS ROOT, DUE TO chroot! IT CANNOT RUN WITHOUT! # # (will give an error like "- Chroot failed! (Operation not permitted)") # -#`#######################################################################´ +#`#######################################################################´ # # info: @@ -178,9 +180,13 @@ sub isscandir { closedir(TARGETDIR); return 1; } + if ($onlysort && /\.flac$/i) { + closedir(TARGETDIR); + return 1; + } } - # In case the dir is without .sfv/.zip/.mp3. :) + # In case the dir is without .sfv/.zip/.mp3/.flac. :) closedir(TARGETDIR); return 0; }