]> git.mjollnir.org Git - scripts.git/commitdiff
fixed formatting and added another exclusion in renametv.pl
authorPenny Leach <penny@mjollnir.org>
Wed, 28 Sep 2011 08:06:53 +0000 (10:06 +0200)
committerPenny Leach <penny@mjollnir.org>
Wed, 28 Sep 2011 08:06:53 +0000 (10:06 +0200)
bin/renametv.pl

index 4470b8ffe29d386190d235f895f62f2ebf435453..6e5db457a73405ece19f37360d497d2559decc1e 100755 (executable)
@@ -14,7 +14,7 @@ my @usualsuspects = qw/
     xvid xor ffndvd repack preair aaf 720p x264 dimension dvdrip
     hdtv 0tv fqm 2hd notv ws pdtv lol vtv xii dvdscr sys fov dot
     vostfr p0w4 caph fihtv flatline brrip ac3 flawl3ss asap
-    proper bufu notyou kfv immerse ctu webrip avdroid
+    proper bufu notyou kfv immerse ctu webrip avdroid haggis
 /;
 
 GetOptions(
@@ -46,6 +46,9 @@ while (<$inputdir/*>) {
         if ($epno =~ /^\d$/) {
             $epno = "0$epno";
         }
+        if ($epno =~ /^0(\d{3})$/) {
+            $epno = $1;
+        }
         $_ = $path . $series . '.' . $epno . '.' . $title;
     }
     next if $current eq $_;