]> git.donarmstrong.com Git - bin.git/commitdiff
* in anime mode, ditch (foo) too
authorDon Armstrong <don@donarmstrong.com>
Fri, 25 Apr 2008 20:58:51 +0000 (20:58 +0000)
committerDon Armstrong <don@donarmstrong.com>
Fri, 25 Apr 2008 20:58:51 +0000 (20:58 +0000)
sanitize_filename

index e0bd3227e4e0f8f54e9eb3077e55cdd1d29c5014..19737a23cd8ccb3ba288eb3b9db171a1830bbea9 100755 (executable)
@@ -27,5 +27,5 @@ shift;
 if [ "$ANIME_CUT" == 0 ]; then
     rename 's/\s+/\_/g; s/[^\w\d.]/\_/g; s/^_+//g; s/_$//g; $_ = lc($_); s/\_+/\_/g; s/\_\././' "$@"
 else
-    rename 's/\[[^\]]+\]//g; s/^_+//; s/\s+/\_/g; $_ = lc($_); s/[_-]+/\_/g; s/\_\././' "$@"
+    rename 's/\[[^\]]+\]//g; s/\([^\)]+\)//g; s/^_+//; s/\s+/\_/g; $_ = lc($_); s/[_-]+/\_/g; s/\_\././' "$@"
 fi;
\ No newline at end of file