comparison bin/ren @ 137:983beb13c736

Even more rules.
author Edho Prima Arief <edho@myconan.net>
date Wed, 02 Nov 2011 22:10:49 +0700
parents eb4dddd48f29
children f963d52c031a
comparison
equal deleted inserted replaced
118:131e1ddf8d43 137:983beb13c736
13 $newname =~ s/_/ /g; 13 $newname =~ s/_/ /g;
14 # GROUP NAMES 14 # GROUP NAMES
15 $newname =~ s/\[UTW Mazui\]/[UTW-Mazui]/i; 15 $newname =~ s/\[UTW Mazui\]/[UTW-Mazui]/i;
16 #TITLE AND NAMES 16 #TITLE AND NAMES
17 $newname =~ s/^(\(|\[)W B(\)|\])/[W_B]/; 17 $newname =~ s/^(\(|\[)W B(\)|\])/[W_B]/;
18 if ($newname =~ m/\[Doremi/) { 18 if ($newname =~ m/\[(Doremi|Elysium)/) {
19 $newname =~ s/\.([a-z0-9]+)$/,$1/i; 19 $newname =~ s/\.([a-z0-9]+)$/,$1/i;
20 $newname =~ s/\./ /g; 20 $newname =~ s/\./ /g;
21 $newname =~ s/,([a-z0-9]+)$/.$1/i; 21 $newname =~ s/,([a-z0-9]+)$/.$1/i;
22 } 22 }
23 $newname =~ s/^Genesis of Aquarion - (\d+) \[3xR\]\[Blu-ray.720p.H264.FLAC.AC3\](v2|)/[3xR] Genesis of Aquarion - $1 [$2 720p BD]/; 23 $newname =~ s/^Genesis of Aquarion - (\d+) \[3xR\]\[Blu-ray.720p.H264.FLAC.AC3\](v2|)/[3xR] Genesis of Aquarion - $1 [$2 720p BD]/;
34 $newname =~ s/^Arigatou\.Tokyo\.Majin\.Ep(\d+)\./[Arigatou] Tokyo Majin - $1 /; 34 $newname =~ s/^Arigatou\.Tokyo\.Majin\.Ep(\d+)\./[Arigatou] Tokyo Majin - $1 /;
35 $newname =~ s/ (Inazuma Eleven - )(\d{2}) / $1 0$2 /; 35 $newname =~ s/ (Inazuma Eleven - )(\d{2}) / $1 0$2 /;
36 $newname =~ s/\] *Pocket Monsters - (\d+) - .*\[(H264 |)SUB\]/] Pokemon - $1 /i; 36 $newname =~ s/\] *Pocket Monsters - (\d+) - .*\[(H264 |)SUB\]/] Pokemon - $1 /i;
37 $newname =~ s/\] Fafner - /] Soukyuu no Fafner - /; 37 $newname =~ s/\] Fafner - /] Soukyuu no Fafner - /;
38 $newname =~ s/\] Mashiro iro symphony - /] Mashiro-iro Symphony - /i; 38 $newname =~ s/\] Mashiro iro symphony - /] Mashiro-iro Symphony - /i;
39 $newname =~ s/\] To Aru Kagaku no Railgun /] Toaru Kagaku no Railgun /i;
40 $newname =~ s/\] To Aru Majutsu no Index /] Toaru Majutsu no Index /i;
39 $newname =~ s/\] Shakugan no Shana III /] Shakugan no Shana Final /i; 41 $newname =~ s/\] Shakugan no Shana III /] Shakugan no Shana Final /i;
40 $newname =~ s/\] Boku Ha Tomodachi Ga Sukunai - /] Boku wa Tomodachi ga Sukunai - /i; 42 $newname =~ s/\] Boku Ha Tomodachi Ga Sukunai - /] Boku wa Tomodachi ga Sukunai - /i;
41 $newname =~ s/\] Seikon no Qwaser II BD - (\d+) \[720p\]/] Seikon no Qwaser II - $1 [720p BD]/i; 43 $newname =~ s/\] Seikon no Qwaser II BD - (\d+) \[720p\]/] Seikon no Qwaser II - $1 [720p BD]/i;
42 $newname =~ s/\] Seikon no Qwaser Picture Drama - (\d+) /] Seikon no Qwaser - Picture Drama $1 /i; 44 $newname =~ s/\] Seikon no Qwaser Picture Drama - (\d+) /] Seikon no Qwaser - Picture Drama $1 /i;
43 $newname =~ s/\] Fortune Arterial Akai Yakusoku - /] Fortune Arterial - /; 45 $newname =~ s/\] Fortune Arterial Akai Yakusoku - /] Fortune Arterial - /;
48 $newname =~ s/\] Mayo Chiki - / ] Mayo Chiki! - /i; 50 $newname =~ s/\] Mayo Chiki - / ] Mayo Chiki! - /i;
49 $newname =~ s/\] Naruto Shippuden - /] Naruto Shippuuden - /i; 51 $newname =~ s/\] Naruto Shippuden - /] Naruto Shippuuden - /i;
50 $newname =~ s/\] Maji de Watashi ni Koi Shinasai!! /] Maji de Watashi ni Koi Shinasai! /i; 52 $newname =~ s/\] Maji de Watashi ni Koi Shinasai!! /] Maji de Watashi ni Koi Shinasai! /i;
51 $newname =~ s/\] Sei Juushi Bismarck /] Sei Juushi Bismark /i; 53 $newname =~ s/\] Sei Juushi Bismarck /] Sei Juushi Bismark /i;
52 $newname =~ s/\] Tamayura - hitotose - /] Tamayura ~hitotose~ - /i; 54 $newname =~ s/\] Tamayura - hitotose - /] Tamayura ~hitotose~ - /i;
55 $newname =~ s/\] Yumekui Merry /] Dream Eater Merry /i;
53 $newname =~ s/^Arigatou\.Tsubasa\.Chronicles\.(|2\.)(\d{2})(|v2)\./[Arigatou] Tsubasa Chronicles $1 - $2$3/; 56 $newname =~ s/^Arigatou\.Tsubasa\.Chronicles\.(|2\.)(\d{2})(|v2)\./[Arigatou] Tsubasa Chronicles $1 - $2$3/;
54 $newname =~ s/^Niea\.Under\.Seven\.(\d+)\.\(Dual\.Audio\)\.XVID\.\[AM\]/[AM] Niea Under Seven - $1/; 57 $newname =~ s/^Niea\.Under\.Seven\.(\d+)\.\(Dual\.Audio\)\.XVID\.\[AM\]/[AM] Niea Under Seven - $1/;
55 $newname =~ s/ Tsubasa Chronicles 2\. - / Tsubasa Chronicles 2 /; 58 $newname =~ s/ Tsubasa Chronicles 2\. - / Tsubasa Chronicles 2 /;
56 $newname =~ s/ *Moritasan wa Mukuchi */ Morita-san wa Mukuchi /i; 59 $newname =~ s/ *Moritasan wa Mukuchi */ Morita-san wa Mukuchi /i;
57 $newname =~ s/ Hanasakeru Seishonen / Hanasakeru Seishounen /i; 60 $newname =~ s/ Hanasakeru Seishonen / Hanasakeru Seishounen /i;
197 $newname =~ s/Natsu no Arashi - Akinai-chuu/Summer Storm! - Open for Business/; 200 $newname =~ s/Natsu no Arashi - Akinai-chuu/Summer Storm! - Open for Business/;
198 $newname =~ s/Natsu no Arashi/Summer Storm!/; 201 $newname =~ s/Natsu no Arashi/Summer Storm!/;
199 $newname =~ s/Naruto (\d+-\d+) /Naruto - $1 /; 202 $newname =~ s/Naruto (\d+-\d+) /Naruto - $1 /;
200 $newname =~ s/Lupin III Series 1 - (\d+) - .+ \[neo1024\]/[neo1024] Lupin III - $1 /; 203 $newname =~ s/Lupin III Series 1 - (\d+) - .+ \[neo1024\]/[neo1024] Lupin III - $1 /;
201 $newname =~ s/Mitsudomoe Picture Drama - 0/Mitsudomoe Picture Drama - /; 204 $newname =~ s/Mitsudomoe Picture Drama - 0/Mitsudomoe Picture Drama - /;
202 $newname =~ s/^(Star Driver .*)(\[AtsA\])/$2 $1 /i; 205 $newname =~ s/^(Fullmetal Alchemist Brotherhood .*|Star Driver .*)(\[AtsA\])/$2 $1 /i;
203 $newname =~ s/(Sora no Woto|Ichiban Ushiro no Daimaou|Mayoi Neko Overrun!) - ([^ ]+|OP Clean|ED Clean|Theater [a-z0-9]+) \[BD 1080p\]\[AtsA\]/[AtsA] $1 - $2 [1080p BD]/; 206 $newname =~ s/(Sora no Woto|Ichiban Ushiro no Daimaou|Mayoi Neko Overrun!) - ([^ ]+|OP Clean|ED Clean|Theater [a-z0-9]+) \[BD 1080p\]\[AtsA\]/[AtsA] $1 - $2 [1080p BD]/;
204 $newname =~ s/(Sora no Woto|Ichiban Ushiro no Daimaou|Mayoi Neko Overrun!) ([^ ]+|Opening Clean|Ending Clean|Theater - [a-z0-9]+) \[1080p BD\]\[AtsA\]/[AtsA] $1 - $2 [1080p BD]/; 207 $newname =~ s/(Sora no Woto|Ichiban Ushiro no Daimaou|Mayoi Neko Overrun!) ([^ ]+|Opening Clean|Ending Clean|Theater - [a-z0-9]+) \[1080p BD\]\[AtsA\]/[AtsA] $1 - $2 [1080p BD]/;
205 $newname =~ s/Battle\.Programmer\.Shirase\./Battle Programmer Shirase /; 208 $newname =~ s/Battle\.Programmer\.Shirase\./Battle Programmer Shirase /;
206 $newname =~ s/Battle Programmer Shirase - 0/Battle Programmer Shirase - /; 209 $newname =~ s/Battle Programmer Shirase - 0/Battle Programmer Shirase - /;
207 $newname =~ s/ Kuragehime / Princess Jellyfish /; 210 $newname =~ s/ Kuragehime / Princess Jellyfish /;
253 $newname =~ s/ TV Broadcast \[720p/ [LQ 720p/; 256 $newname =~ s/ TV Broadcast \[720p/ [LQ 720p/;
254 $newname =~ s/ ED(\d+[a-z]*)/ - Ending $1 /i; 257 $newname =~ s/ ED(\d+[a-z]*)/ - Ending $1 /i;
255 $newname =~ s/ OP(\d+[a-z]*)/ - Opening $1 /i; 258 $newname =~ s/ OP(\d+[a-z]*)/ - Opening $1 /i;
256 $newname =~ s/ ED / - Ending /; 259 $newname =~ s/ ED / - Ending /;
257 $newname =~ s/ Clean (Opening|Ending) v2/ - $1 (Clean) [v2]/i; 260 $newname =~ s/ Clean (Opening|Ending) v2/ - $1 (Clean) [v2]/i;
258 $newname =~ s/ Creditless Opening (\d+) / - Opening $1 (Clean) /i; 261 $newname =~ s/ Creditless (Opening|Ending) (\d+) / - $1 $2 (Clean) /i;
259 $newname =~ s/ Ep(\d+) Creditless Ending / - Ending $1 (Clean) /i; 262 $newname =~ s/ Ep(\d+) Creditless Ending / - Ending $1 (Clean) /i;
260 $newname =~ s/ (NCED|Ending Clean) / - Ending (Clean) /i; 263 $newname =~ s/ (NCED|Ending Clean) / - Ending (Clean) /i;
261 $newname =~ s/ NCED(\d+) / - Ending $1 (Clean) /i; 264 $newname =~ s/ NCED(\d+) / - Ending $1 (Clean) /i;
262 $newname =~ s/ (NCOP|Opening Clean) / - Opening (Clean)/i; 265 $newname =~ s/ (NCOP|Opening Clean) / - Opening (Clean)/i;
263 $newname =~ s/ OP / - Opening /; 266 $newname =~ s/ OP / - Opening /;
269 $newname =~ s/(\(|\[) *(10-?bit|10bit 480p H264|640x360|640x360 H264 AAC|h264\.aac|hi10p|10bit|\d+th Release|x264\.aac|xvid|divx5\.2\.1|divx5\.1|divx5\.05|divx5\.1\.1|h\.?264 AC3|848x480|H264 848x480|h264-480p AAC|h\.264-480p) *(\)|\])//i; 272 $newname =~ s/(\(|\[) *(10-?bit|10bit 480p H264|640x360|640x360 H264 AAC|h264\.aac|hi10p|10bit|\d+th Release|x264\.aac|xvid|divx5\.2\.1|divx5\.1|divx5\.05|divx5\.1\.1|h\.?264 AC3|848x480|H264 848x480|h264-480p AAC|h\.264-480p) *(\)|\])//i;
270 $newname =~ s/\[(DVD 10bit)\]/[DVD]/i; 273 $newname =~ s/\[(DVD 10bit)\]/[DVD]/i;
271 $newname =~ s/(\(|\[) *(DVD H264 720x480 AAC|DVD 704x480 H264 AC3|DVD 704x480|DVDRip\.Xvid\.864x480\.Vorbis|DVD H264 848x480|DVD 720x480|DVD H264 720x480|DVD, wmv, mp3) *(\)|\])/[DVD]/i; 274 $newname =~ s/(\(|\[) *(DVD H264 720x480 AAC|DVD 704x480 H264 AC3|DVD 704x480|DVDRip\.Xvid\.864x480\.Vorbis|DVD H264 848x480|DVD 720x480|DVD H264 720x480|DVD, wmv, mp3) *(\)|\])/[DVD]/i;
272 $newname =~ s/(\(|\[) *(BD\]\[1080p-FLAC|1920x1080 Hi10p h264 AAC|BD 1920x1080 x264 AAC|BD 1080p Hi10P|BDRip 1080p x264 FLAC|BD-1080p-|BD-1080p-FLAC|1920x1038 Blu-Ray FLAC|1920x1080 Blu-Ray FLAC|1920x1080 h264 BD FLAC|1920x1080 BD|BD\.1080p\.FLAC|BD 1080p H\.264 AAC 5\.1|BD 1080p) *(\)|\])/[1080p BD]/i; 275 $newname =~ s/(\(|\[) *(BD\]\[1080p-FLAC|1920x1080 Hi10p h264 AAC|BD 1920x1080 x264 AAC|BD 1080p Hi10P|BDRip 1080p x264 FLAC|BD-1080p-|BD-1080p-FLAC|1920x1038 Blu-Ray FLAC|1920x1080 Blu-Ray FLAC|1920x1080 h264 BD FLAC|1920x1080 BD|BD\.1080p\.FLAC|BD 1080p H\.264 AAC 5\.1|BD 1080p) *(\)|\])/[1080p BD]/i;
273 $newname =~ s/(\(|\[) *(Hi10P 1280x720 H264|Hi10P 1280x720|1280x720 Hi10P|1280x720 5\.1|1280x720 x264 AAC|1280x720 H264 AAC|720p H264 AAC|1280x720|1280x720 H\.?264 AAC) *(\)|\])/[720p]/i; 276 $newname =~ s/(\(|\[) *(Hi10P 1280x720 H264|Hi10P 1280x720|1280x720 Hi10P|1280x720 5\.1|1280x720 x264 AAC|1280x720 H264 AAC|720p H264 AAC|1280x720|1280x720 H\.?264 AAC) *(\)|\])/[720p]/i;
274 $newname =~ s/(\(|\[) *(BD, 720p,|BD 720p H264-AAC|BDRip 720p|BD, 720p, ,|1280x720 BD|BD 1280x720 H264 AAC|BD 720p|BD 720p FLAC|BD 1280x720 H264 AAC) *(\)|\])/[720p BD]/i; 277 $newname =~ s/(\(|\[) *(BDrip 720p Vorbis|BD 720p Hi10P AAC|BD, 720p,|BD 720p H264-AAC|BDRip 720p|BD, 720p, ,|1280x720 BD|BD 1280x720 H264 AAC|BD 720p|BD 720p FLAC|BD 1280x720 H264 AAC) *(\)|\])/[720p BD]/i;
278 $newname =~ s/(\(|\[) *(BD 540p) *(\)|\])/[BD]/i;
275 $newname =~ s/(\(|\[) *(1024x576|H264 1024x576) *(\)|\])/[576p]/i; 279 $newname =~ s/(\(|\[) *(1024x576|H264 1024x576) *(\)|\])/[576p]/i;
276 $newname =~ s/(\(|\[) *(1920x1080) *(\)|\])/[1080p]/i; 280 $newname =~ s/(\(|\[) *(1920x1080) *(\)|\])/[1080p]/i;
277 ##SLICED BREAD pt.2 281 ##SLICED BREAD pt.2
278 $newname =~ s/(\d+)v(\d+)/$1 [v$2]/i; 282 $newname =~ s/(\d+)v(\d+)/$1 [v$2]/i;
279 $newname =~ s/\[BD\]\[1920x1080 H264-Flac\]/[1080p BD]/i; 283 $newname =~ s/\[BD\]\[1920x1080 H264-Flac\]/[1080p BD]/i;
420 $newname =~ s/ Ultraviolet Code - 044 - / Ultraviolet Code 044 - /; 424 $newname =~ s/ Ultraviolet Code - 044 - / Ultraviolet Code 044 - /;
421 $newname =~ s/ Persona - 3 Picture Drama - She Goes For A Walk / Persona 3 Picture Drama - She Goes For A Walk - /; 425 $newname =~ s/ Persona - 3 Picture Drama - She Goes For A Walk / Persona 3 Picture Drama - She Goes For A Walk - /;
422 $newname =~ s/ SP0/ - Special /; 426 $newname =~ s/ SP0/ - Special /;
423 $newname =~ s/ SP(\d+) / - Special $1 /; 427 $newname =~ s/ SP(\d+) / - Special $1 /;
424 $newname =~ s/ Special - / - Special /; 428 $newname =~ s/ Special - / - Special /;
429 $newname =~ s/ Animated Commentary - / - Animated Commentary /;
430 $newname =~ s/ Fullmetal Alchemist Brotherhood (- |)Skit - / Fullmetal Alchemist Brotherhood - Skit /i;
425 $newname =~ s/ - Picture Drama - / - Picture Drama /; 431 $newname =~ s/ - Picture Drama - / - Picture Drama /;
426 $newname =~ s/ (Mayoi Neko Overrun! - Theater) - / $1 /; 432 $newname =~ s/ (Mayoi Neko Overrun! - Theater) - / $1 /;
427 $newname =~ s/ Opening - / Opening /; 433 $newname =~ s/ Opening - / Opening /;
428 $newname =~ s/ Ending - / Ending /; 434 $newname =~ s/ Ending - / Ending /;
429 $newname =~ s/ Hidamari Sketch Hoshimittsu - Special / Hidamari Sketch Hoshimittsu Special - /; 435 $newname =~ s/ Hidamari Sketch Hoshimittsu - Special / Hidamari Sketch Hoshimittsu Special - /;