servo: transmission/torrent-done: fix noisy file regexes

This commit is contained in:
2024-07-21 11:25:54 +00:00
parent c5227c52c4
commit a9cbb2c092

View File

@@ -57,11 +57,12 @@ if [ ${#subdirs[@]} -eq 1 ]; then
fi
# remove noisy files:
# -iname means "insensitive", but the syntax is NOT regex -- more similar to shell matching
destructive find "$MEDIA_DIR/" -type f \(\
-iname '.*downloaded.?from.*' \
-iname '*downloaded?from*' \
-o -iname 'source.txt' \
-o -iname 'upcoming.?releases.*' \
-o -iname 'www.YTS.*.jpg' \
-o -iname '*upcoming?releases*' \
-o -iname 'www.YTS*.jpg' \
-o -iname 'WWW.YIFY*.COM.jpg' \
-o -iname 'YIFY*.com.txt' \
-o -iname 'YTS*.com.txt' \