Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions total-rescan/total-rescan.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
############## ############## ############## ############## ############## ######## #### ## #
# total-rescan (c) daxxar ^ team pzs-ng <daxxar@daxxar.com>
# - 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:
Expand Down Expand Up @@ -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;
}
Expand Down