comparison bin/ren @ 87:c884853b25d1

Latestest ren.
author Genshiken Admin <admin@genshiken-itb.org>
date Wed, 19 Oct 2011 06:49:55 +0000
parents 4a22703b183c
children eb4dddd48f29
comparison
equal deleted inserted replaced
86:4a22703b183c 87:c884853b25d1
9 foreach (@files) { 9 foreach (@files) {
10 print(qq(Could not find file "$_", skipping\n)) and next() unless -e $_; 10 print(qq(Could not find file "$_", skipping\n)) and next() unless -e $_;
11 my $newname = $_; 11 my $newname = $_;
12 #START HERE 12 #START HERE
13 $newname =~ s/_/ /g; 13 $newname =~ s/_/ /g;
14 # GROUP NAMES
15 $newname =~ s/\[UTW Mazui\]/[UTW-Mazui]/i;
14 #TITLE AND NAMES 16 #TITLE AND NAMES
17 $newname =~ s/^(\(|\[)W B(\)|\])/[W_B]/;
18 $newname =~ s/^Genesis of Aquarion - (\d+) \[3xR\]\[Blu-ray.720p.H264.FLAC.AC3\](v2|)/[3xR] Genesis of Aquarion - $1 [$2 720p BD]/;
19 $newname =~ s/^Otogi Zoshi Act\.(\d+)\[x264 AAC\]\[SSP-Corp\]/[SSP-Corp] Otogi Zoshi - $1 /;
20 $newname =~ s/Onii-chan no Koto Nanka Zenzen Suki Janain Dakara ne!! - (\d+) \[Uncut\]/Onii-chan no Koto Nanka Zenzen Suki Janain Dakara ne!! - $1 /;
21 $newname =~ s/^cor\.extras\.infinite\.ryvius\.textless\.opening(\d+)\./[cor] Infinite Ryvius - Opening $1 (Clean) /;
22 $newname =~ s/^cor\.extras\.infinite\.ryvius\.textless\.ending(\d+)\./[cor] Infinite Ryvius - Ending $1 (Clean) /;
23 $newname =~ s/^cor\.extras\.infinite\.ryvius\.art\.gallery\.and\.audio\.drama(\d+)\./[cor] Infinite Ryvius - Picture Drama $1 /;
24 $newname =~ s/^cor\.extras\.infinite\.ryvius\.ryvius\.vj\.mix(\d+)\./[cor] Infinite Ryvius - Ryvius VJ Mix $1 /;
25 $newname =~ s/^cor\.extras\.infinite\.ryvius\.ryvius\.illusion(\d+)\.mini-episode(\d+)\./[cor] Infinite Ryvius - Ryvius Illusion $1 - Mini Episode $2 /;
26 $newname =~ s/^cor\.extras\.infinite\.ryvius\.ryvius\.illusion(\d+)\.(introduction|ending)\./[cor] Infinite Ryvius - Ryvius Illusion $1 - $2 /;
27 $newname =~ s/ (Ryvius Illusion \d+) - ending / $1 - Ending /;
28 $newname =~ s/ (Ryvius Illusion \d+) - introduction / $1 - Introduction /;
29 $newname =~ s/^Arigatou\.Tokyo\.Majin\.Ep(\d+)\./[Arigatou] Tokyo Majin - $1 /;
30 $newname =~ s/ (Inazuma Eleven - )(\d{2}) / $1 0$2 /;
31 $newname =~ s/\] *Pocket Monsters - (\d+) - .*\[(H264 |)SUB\]/] Pokemon - $1 /i;
32 $newname =~ s/\] Fafner - /] Soukyuu no Fafner - /;
33 $newname =~ s/\] Mashiro iro symphony - /] Mashiro-iro Symphony - /i;
34 $newname =~ s/\] Boku Ha Tomodachi Ga Sukunai - /] Boku wa Tomodachi ga Sukunai - /i;
35 $newname =~ s/\] Seikon no Qwaser II BD - (\d+) \[720p\]/] Seikon no Qwaser II - $1 [720p BD]/i;
36 $newname =~ s/\] Seikon no Qwaser Picture Drama - (\d+) /] Seikon no Qwaser - Picture Drama $1 /i;
37 $newname =~ s/\] Fortune Arterial Akai Yakusoku - /] Fortune Arterial - /;
38 $newname =~ s/\] Ookami to Koushinryou - /] Spice and Wolf - /;
39 $newname =~ s/\] Mobile Suit Gundam AGE - /] Gundam AGE - /i;
40 $newname =~ s/\] Soredemo Machi wa Mawatte Iru - /] Soredemo Machi wa Mawatteiru - /;
41 $newname =~ s/\] Spiral - (\d+) .* \[640 x 480\]\[H\.264\]/] Spiral - $1 /;
42 $newname =~ s/\] Mayo Chiki - / ] Mayo Chiki! - /i;
43 $newname =~ s/\] Naruto Shippuden - /] Naruto Shippuuden - /i;
44 $newname =~ s/\] Tamayura - hitotose - /] Tamayura ~hitotose~ - /i;
45 $newname =~ s/^Arigatou\.Tsubasa\.Chronicles\.(|2\.)(\d{2})(|v2)\./[Arigatou] Tsubasa Chronicles $1 - $2$3/;
46 $newname =~ s/^Niea\.Under\.Seven\.(\d+)\.\(Dual\.Audio\)\.XVID\.\[AM\]/[AM] Niea Under Seven - $1/;
47 $newname =~ s/ Tsubasa Chronicles 2\. - / Tsubasa Chronicles 2 /;
48 $newname =~ s/ *Moritasan wa Mukuchi */ Morita-san wa Mukuchi /i;
49 $newname =~ s/ Hanasakeru Seishonen / Hanasakeru Seishounen /i;
50 $newname =~ s/^YAMATO 3x(\d+).*/Yamato S3 - $1.mkv/i;
51 $newname =~ s/ - (Ending|Opening) (\d+ *[a-z]*) (Clean) / - $1 $2 ($3) /i;
52 $newname =~ s/^\[T-N\]Mirai Sentai TimeRanger (\d+)(\[[A-F0-9]{8}\])DVD(|ver2|ver3)(\.avi)$/[T-N] Mirai Sentai Time Ranger - $1 $3 [DVD]$2$4/;
53 $newname =~ s/^Yamato (\d+) - remaster \(Central Anime\)/[Central Anime] Yamato - $1 /i;
54 $newname =~ s/^Yamato S2 (\d+) - remaster \(Central Anime\)/[Central Anime] Yamato S2 - $1 /i;
55 $newname =~ s/\[TSuNDeRe\]Tsuyokiss\.(\d+)\./[Tsundere] Tsuyokiss - $1 /i;
56 $newname =~ s/\[RANDOMFAGGOTS\]/[Randomfaggots]/i;
57 $newname =~ s/\[Keroro\]\.(\d+)\.\[Xvid\.mp3\]\./[Keroro] Keroro Gunsou - $1 /i;
58 $newname =~ s/\[Keroro\] \.(\d+)\. \[\.mp3\] \. /[Keroro] Keroro Gunsou - $1 /i;
15 $newname =~ s/\[WPP & T-N\]/[WPP T-N]/; 59 $newname =~ s/\[WPP & T-N\]/[WPP T-N]/;
60 $newname =~ s/ Yuru Yuri / YuruYuri /i;
61 $newname =~ s/ Clannad - After Story / Clannad After Story /i;
62 $newname =~ s/ Manyuu Hikenchou - (\d+) ~DC~ / Manyuu Hikenchou - $1 [Uncut]/;
16 $newname =~ s/\[Elysium\]K-ON!!\.EP(\d+)\(BD\.1080p\.FLAC\)/[Elysium] K-ON!! - $1 [1080p BD]/i; 63 $newname =~ s/\[Elysium\]K-ON!!\.EP(\d+)\(BD\.1080p\.FLAC\)/[Elysium] K-ON!! - $1 [1080p BD]/i;
17 $newname =~ s/\[Elysium\]K-ON!!\.(ED|OP)(\d+)\(BD\.1080p\.FLAC\)/[Elysium] K-ON!! - $1 $2 [1080p BD]/i; 64 $newname =~ s/\[Elysium\]K-ON!!\.(ED|OP)(\d+)\(BD\.1080p\.FLAC\)/[Elysium] K-ON!! - $1 $2 [1080p BD]/i;
18 $newname =~ s/\[Elysium\]K-ON!!\.SP\d+\[EP(\d+)\]\(BD\.1080p\.FLAC\)/[Elysium] K-ON!! - $1 [1080p BD]/i; 65 $newname =~ s/\[Elysium\]K-ON!!\.SP\d+\[EP(\d+)\]\(BD\.1080p\.FLAC\)/[Elysium] K-ON!! - $1 [1080p BD]/i;
19 $newname =~ s/^\[wpp\]digimon frontier /[wpp] Digimon Frontier /i; 66 $newname =~ s/^\[wpp\]digimon frontier /[wpp] Digimon Frontier /i;
20 $newname =~ s/^\[ACX\]Fantastic Children - (\d+) .*/[ACX] Fantastic Children - $1.mkv/i; 67 $newname =~ s/^\[ACX\]Fantastic Children - (\d+) .*/[ACX] Fantastic Children - $1.mkv/i;
21 $newname =~ s/\[a-s\] sakigake!! cromartie high school - (\d+) - .* /[a-S] Sakigake!! Cromartie High School - $1 /; 68 $newname =~ s/\[a-s\] sakigake!! cromartie high school - (\d+) - .* /[a-S] Sakigake!! Cromartie High School - $1 /;
22 $newname =~ s/zx\.tenchi-universe\./[zx] Tenchi Universe - /; 69 $newname =~ s/zx\.tenchi-universe\./[zx] Tenchi Universe - /;
23 $newname =~ s/\[Saizen & Shinsen-Subs\]/[Saizen-SHS]/i; 70 $newname =~ s/\[Saizen & Shinsen-Subs\]/[Saizen-SHS]/i;
24 $newname =~ s/ ro-kyu-bu! / Ro-Kyu-Bu! /i; 71 $newname =~ s/ ro-kyu-bu(!)? / Ro-Kyu-Bu! /i;
72 $newname =~ s/^cor\.tv\.infinite\.ryvius\.(\d+)\./[cor] Infinite Ryvius - $1 /i;
25 $newname =~ s/ Ore no Imouto ga Konna ni Kawaii Wake ga Nai / Ore no Imouto /i; 73 $newname =~ s/ Ore no Imouto ga Konna ni Kawaii Wake ga Nai / Ore no Imouto /i;
26 $newname =~ s/ no 6 / No. 6 /i; 74 $newname =~ s/ no 6 / No. 6 /i;
27 $newname =~ s/ THE iDOLM\@STER / The iDOLM\@STER /i; 75 $newname =~ s/\[ACX\]Gantz - (\d+) .* \[SaintDeath\] /[ACX] Gantz - $1 /i;
76 $newname =~ s/ THE iDOLM\@STER / The Idolm\@ster /i;
28 $newname =~ s/^- (\d+) - (\[neo1024\])/$2 Luping III S3 - $2/i; 77 $newname =~ s/^- (\d+) - (\[neo1024\])/$2 Luping III S3 - $2/i;
29 $newname =~ s/ Luping III S3 / Lupin III S3 /i; 78 $newname =~ s/ Luping III S3 / Lupin III S3 /i;
30 $newname =~ s/( Transformers Headmasters - \d+) - .*\[/$1 [/i; 79 $newname =~ s/( Transformers Headmasters - \d+) - .*\[/$1 [/i;
31 $newname =~ s/^cor\.tv\.getbackers\.(\d+)\./[cor] GetBackers - $1 /; 80 $newname =~ s/^cor\.tv\.getbackers\.(\d+)\./[cor] GetBackers - $1 /;
32 $newname =~ s/^cor\.extras\.getbackers\.(opening|ending)(\d+)\./[cor] GetBackers - $1 $2 /; 81 $newname =~ s/^cor\.extras\.getbackers\.(opening|ending)(\d+)\./[cor] GetBackers - $1 $2 /;
33 $newname =~ s/^Revolutionary Girl Utena /[Henshin] Revolutionary Girl Utena /; 82 $newname =~ s/^Revolutionary Girl Utena /[Henshin] Revolutionary Girl Utena /;
34 $newname =~ s/His and Her Circumstances/His and Her Circumstances/i; 83 $newname =~ s/His and Her Circumstances/His and Her Circumstances/i;
84 $newname =~ s/ Lime-iro Senkitan / Lime-Colored War Tales /i;
85 $newname =~ s/(Ninja Scroll) TV Ep\.(\d+)\[.*(\[SSP-Corp\])/$3 $1 - $2 /i;
35 $newname =~ s/Magical Girl Madoka Magica/Puella Magi Madoka Magica/i; 86 $newname =~ s/Magical Girl Madoka Magica/Puella Magi Madoka Magica/i;
36 $newname =~ s/ Pretty Rhythm Aurora Dream / Pretty Rhythm - Aurora Dream /i; 87 $newname =~ s/ Pretty Rhythm Aurora Dream / Pretty Rhythm - Aurora Dream /i;
37 $newname =~ s/(\[dvdrip\] Transformers \(1984\) -) E(\d+) .*(\.avi)/$1 $2 $3/; 88 $newname =~ s/(\[dvdrip\] Transformers \(1984\) -) E(\d+) .*(\.avi)/$1 $2 $3/;
38 $newname =~ s/ Highschool of the Dead / High School of the Dead /i; 89 $newname =~ s/ Highschool of the Dead / High School of the Dead /i;
39 $newname =~ s/LOGH Gaiden 2 E(\d+) .*(\.avi|\.mkv)/Legend of Galactic Heroes Gaiden 2 - $1$2/i; 90 $newname =~ s/LOGH Gaiden 2 E(\d+) .*(\.avi|\.mkv)/Legend of Galactic Heroes Gaiden 2 - $1$2/i;
40 $newname =~ s/^\[RaX\] *Kiba - (\d+) - .* (\[v2\] \[|\[)/[RaX] Kiba - $1 $2/; 91 $newname =~ s/^\[RaX\] *Kiba - (\d+) - .* (\[v2\] \[|\[)/[RaX] Kiba - $1 $2/;
41 $newname =~ s/ (Gosick - \d+) \(Batch\) / $1 /; 92 $newname =~ s/ (Gosick - \d+) \(Batch\) / $1 /;
42 $newname =~ s/ Clannad - After Story - / Clannad After Story - /; 93 $newname =~ s/ Clannad - After Story - / Clannad After Story - /;
94 $newname =~ s/ Ikoku Meiro no Croisée / Ikoku Meiro no Kurowaaze /i;
43 $newname =~ s/^Mahoujin Guruguru TV2 - Doki Doki Densetsu Ep(\d+) \((Chamelenia)\)/[Chamelenia] Mahoujin Guruguru 2 - Doki Doki Densetsu - $1/i; 95 $newname =~ s/^Mahoujin Guruguru TV2 - Doki Doki Densetsu Ep(\d+) \((Chamelenia)\)/[Chamelenia] Mahoujin Guruguru 2 - Doki Doki Densetsu - $1/i;
44 $newname =~ s/\.divx5\.ogm$/.ogm/; 96 $newname =~ s/\.divx5\.ogm$/.ogm/;
45 #$newname =~ s/\[(neo1024)\] Lupin III - (\d+) - .+ \[/[$1] Lupin III S2 - $2 [/; 97 #$newname =~ s/\[(neo1024)\] Lupin III - (\d+) - .+ \[/[$1] Lupin III S2 - $2 [/;
46 $newname =~ s/ Lupin S2 - / Lupin III S2 - /; 98 $newname =~ s/ Lupin S2 - / Lupin III S2 - /;
47 $newname =~ s/ Prince of Tennis (\d+)/ Prince of Tennis - $1/i; 99 $newname =~ s/ Prince of Tennis (\d+)/ Prince of Tennis - $1/i;
56 $newname =~ s/^(Mushishi) - (\d+) - .* - (\[niizk\])/$3 $1 - $1/; 108 $newname =~ s/^(Mushishi) - (\d+) - .* - (\[niizk\])/$3 $1 - $1/;
57 $newname =~ s/^(Saikano) (\d+)\[h\.264-AAC\](\[SSP-Corp\])/$3 $1 - $2 /; 109 $newname =~ s/^(Saikano) (\d+)\[h\.264-AAC\](\[SSP-Corp\])/$3 $1 - $2 /;
58 $newname =~ s/^PitaTen.* Ep (\d+) .*\.avi/[Hnk] Pita Ten - $1.avi/; 110 $newname =~ s/^PitaTen.* Ep (\d+) .*\.avi/[Hnk] Pita Ten - $1.avi/;
59 $newname =~ s/^\[a-S\] Inuyasha - (\d+|\d+-\d+) /Inuyasha - $1 [a-S]/; 111 $newname =~ s/^\[a-S\] Inuyasha - (\d+|\d+-\d+) /Inuyasha - $1 [a-S]/;
60 $newname =~ s/\[DVD\]\[AHQ\]/[AHQ][DVD]/; 112 $newname =~ s/\[DVD\]\[AHQ\]/[AHQ][DVD]/;
113 $newname =~ s/\[THORA\]/[Thora]/i;
61 $newname =~ s/\[subdesu\]/[SubDesu]/i; 114 $newname =~ s/\[subdesu\]/[SubDesu]/i;
62 $newname =~ s/ Zettai Shougeki - Platonic Heart / Zettai Shougeki /i; 115 $newname =~ s/ Zettai Shougeki - Platonic Heart / Zettai Shougeki /i;
116 $newname =~ s/^ef a tale of memories (prologue|- Opening \d+|- Ending \d+|- \d+) .*THORA/[Thora] ef - a tale of memories - $1 [1080p BD]/i;
63 $newname =~ s/ A-Channel / A Channel /i; 117 $newname =~ s/ A-Channel / A Channel /i;
64 $newname =~ s/^mars daybreak /[V-A] Mars Daybreak - /; 118 $newname =~ s/^mars daybreak /[V-A] Mars Daybreak - /;
65 $newname =~ s/ Shuffle! Episode / Shuffle! /; 119 $newname =~ s/ Shuffle! Episode / Shuffle! /;
66 $newname =~ s/ A-Channel / A Channel /; 120 $newname =~ s/ A-Channel / A Channel /;
67 $newname =~ s/ Moshidora \(Moshi Koko Yakyu no Joshi Manager ga Drucker no Management o Yondara\) / Moshidora /; 121 $newname =~ s/ Moshidora \(Moshi Koko Yakyu no Joshi Manager ga Drucker no Management o Yondara\) / Moshidora /;
70 $newname =~ s/^(\[ACX\])(Final Fantasy Unlimited) - (\d+) .*\[ALI\] /$1 $2 - $3 /; 124 $newname =~ s/^(\[ACX\])(Final Fantasy Unlimited) - (\d+) .*\[ALI\] /$1 $2 - $3 /;
71 $newname =~ s/^\[a-s\] inuyasha - (\d+-\d+) rs2 /[a-S] Inuyasha - $1 /; 125 $newname =~ s/^\[a-s\] inuyasha - (\d+-\d+) rs2 /[a-S] Inuyasha - $1 /;
72 $newname =~ s/^(\[Kira-Fansub\]) Uchuu no (Stellvia) /$1 $2 /; 126 $newname =~ s/^(\[Kira-Fansub\]) Uchuu no (Stellvia) /$1 $2 /;
73 $newname =~ s/^(\[RaX\])(Chobits) - (\d+`\d) .*\(x264 aac\) /$1 $2 - $3 /; 127 $newname =~ s/^(\[RaX\])(Chobits) - (\d+`\d) .*\(x264 aac\) /$1 $2 - $3 /;
74 $newname =~ s/ Maria( |†)Holic / Maria+Holic /i; 128 $newname =~ s/ Maria( |†)Holic / Maria+Holic /i;
129 $newname =~ s/ C³ / C3 - Cube x Cursed x Curious /i;
130 $newname =~ s/ C3 Cube x Cursed x Curious / C3 - Cube x Cursed x Curious /i;
131 $newname =~ s/ Fate( ⁄ | )Zero / Fate-Zero /i;
75 $newname =~ s/ Pollyanna Episode / Pollyanna /; 132 $newname =~ s/ Pollyanna Episode / Pollyanna /;
76 $newname =~ s/^Legend of Galactic Heroes - (\d+) \(([A-F0-9]{8})\) \[Central Anime\]/[Central Anime] Legend of Galactic Heroes - $1 [$2]/; 133 $newname =~ s/^Legend of Galactic Heroes - (\d+) \(([A-F0-9]{8})\) \[Central Anime\]/[Central Anime] Legend of Galactic Heroes - $1 [$2]/;
77 $newname =~ s/\[Hnk\]/[HnK]/; 134 $newname =~ s/\[Hnk\]/[HnK]/;
78 $newname =~ s/^Inuyasha - (\d+|\d+-\d+)\[167\] - .*(\[DVD\]\[AHQ\])/Inuyasha - $1 $2/; 135 $newname =~ s/^Inuyasha - (\d+|\d+-\d+)\[167\] - .*(\[DVD\]\[AHQ\])/Inuyasha - $1 $2/;
79 $newname =~ s/^Saint Seiya Hades OVA - (\d+) \[(AonE-SpA|SpA)\]/[$2] Saint Seiya Hades OVA - $1/; 136 $newname =~ s/^Saint Seiya Hades OVA - (\d+) \[(AonE-SpA|SpA)\]/[$2] Saint Seiya Hades OVA - $1/;
80 $newname =~ s/\[\d+\] Saint Seiya Hades OVA - (\d+)/[SpA] Saint Seiya Hades OVA - $1/; 137 $newname =~ s/\[\d+\] Saint Seiya Hades OVA - (\d+)/[SpA] Saint Seiya Hades OVA - $1/;
81 $newname =~ s/ Digimon Tamers - (\d)\./ Digimon Tamers - 0$1./; 138 $newname =~ s/ Digimon Tamers - (\d)\./ Digimon Tamers - 0$1./;
82 $newname =~ s/ Kore wa Zombie Desu ka / Kore wa Zombie desu ka /i; 139 $newname =~ s/ Kore wa Zombie Desu ka / Kore wa Zombie desu ka /i;
83 $newname =~ s/ Infinite Stratos - IS - / Infinite Stratos - /; 140 $newname =~ s/ Infinite Stratos - IS - / Infinite Stratos - /;
84 $newname =~ s/\[Keroro\]\.(\d+)\.\[Xvid\.mp3\]\./[Keroro] Keroro Gunsou - $1 /i;
85 $newname =~ s/\[Keroro\] \.(\d+)\. \[\.mp3\] \. /[Keroro] Keroro Gunsou - $1 /i;
86 $newname =~ s/Shadow\.Star\.Narutaru\.(\d+)\.\(Dual\.Audio\)\.XVID\.\[AM\]/[AM] Narutaru - $1 /; 141 $newname =~ s/Shadow\.Star\.Narutaru\.(\d+)\.\(Dual\.Audio\)\.XVID\.\[AM\]/[AM] Narutaru - $1 /;
87 $newname =~ s/Outlaw Star Remastered E(\d+) .*'/ Outlaw Star - $1 /; 142 $newname =~ s/Outlaw Star Remastered E(\d+) .*'/ Outlaw Star - $1 /;
88 $newname =~ s/Ground Defense Force Mao-chan (\d+)\[h\.264-AAC\]\[SSP-Corp\]/[SSP-Corp] Mao-chan - $1 /; 143 $newname =~ s/Ground Defense Force Mao-chan (\d+)\[h\.264-AAC\]\[SSP-Corp\]/[SSP-Corp] Mao-chan - $1 /;
89 $newname =~ s/Koi Kaze (\d+) \[NAG&anime fin\]/[NAG anime-fin] Koi Kaze - $1 /; 144 $newname =~ s/Koi Kaze (\d+) \[NAG&anime fin\]/[NAG anime-fin] Koi Kaze - $1 /;
90 $newname =~ s/ Toradora - / Toradora! - /; 145 $newname =~ s/ Toradora - / Toradora! - /;
103 $newname =~ s/\[anime-rg . ray=out\]/[anime-rg ray=out]/; 158 $newname =~ s/\[anime-rg . ray=out\]/[anime-rg ray=out]/;
104 $newname =~ s/^Arigatou\.Soul\.Eater\.Ep(\d+)\. \[x264\.AAC\]/[Arigatou] Soul Eater - $1 /; 159 $newname =~ s/^Arigatou\.Soul\.Eater\.Ep(\d+)\. \[x264\.AAC\]/[Arigatou] Soul Eater - $1 /;
105 $newname =~ s/^\[Doremi\]\.HeartCatch\.PreCure!\.(\d+)\.\[1280x720\]\./[Doremi] HeartCatch PreCure! - $1 [720p]/; 160 $newname =~ s/^\[Doremi\]\.HeartCatch\.PreCure!\.(\d+)\.\[1280x720\]\./[Doremi] HeartCatch PreCure! - $1 [720p]/;
106 $newname =~ s/^\[Doremi-CureCom\]\.Suite\.PreCure!\.(\d+)\.\[1280x720\]\./[Doremi-CureCom] Suite PreCure! - $1 [720p]/; 161 $newname =~ s/^\[Doremi-CureCom\]\.Suite\.PreCure!\.(\d+)\.\[1280x720\]\./[Doremi-CureCom] Suite PreCure! - $1 [720p]/;
107 $newname =~ s/^\[Doremi\]\.Motto\.Ojamajo\.Doremi\.(\d+)\./[Doremi] Motto Ojamajo Doremi - $1 /; 162 $newname =~ s/^\[Doremi\]\.Motto\.Ojamajo\.Doremi\.(\d+)\./[Doremi] Motto Ojamajo Doremi - $1 /;
163 $newname =~ s/^\[Doremi\] *\.Ojamajo\.Doremi\.Dokkaan!\.(\d+)\./[Doremi] Ojamajo Doremi Dokkaan! - $1 /;
108 $newname =~ s/^\[HorribleSubs\] Lilpri /[HorribleSubs] Hime Chen! Otogi Chikku Idol Lilpri - /i; 164 $newname =~ s/^\[HorribleSubs\] Lilpri /[HorribleSubs] Hime Chen! Otogi Chikku Idol Lilpri - /i;
109 $newname =~ s/^\[Jumonji-Giri\] \[AnY\]/[Jumonji-Giri]/; 165 $newname =~ s/^\[Jumonji-Giri\] \[AnY\]/[Jumonji-Giri]/;
110 $newname =~ s/\[(BWS|PM)\]Pocket Monsters Best Wishes (\d+) .+\[H264 /[$1] Pokemon Best Wishes - $2 [/; 166 $newname =~ s/\[(BWS|PM)\]Pocket Monsters Best Wishes (\d+) .+\[H264 /[$1] Pokemon Best Wishes - $2 [/;
111 $newname =~ s/ Ookiku Furikabutte - The Summer Tournament Chapter / Ookiku Furikabutte S2 /; 167 $newname =~ s/ Ookiku Furikabutte - The Summer Tournament Chapter / Ookiku Furikabutte S2 /;
112 $newname =~ s/Les Miserables Shoujo Cosette /Les Miserables /; 168 $newname =~ s/Les Miserables Shoujo Cosette /Les Miserables /;
113 $newname =~ s/\[Elysium\]Baka\.to\.Test\.to\.Shoukanjuu\.(EP)?/[Elysium] Baka to Test to Shokanju/; 169 $newname =~ s/\[Elysium\]Baka\.to\.Test\.to\.Shoukanjuu\.(EP)?/[Elysium] Baka to Test to Shokanju/;
114 $newname =~ s/\[Elysium\] Baka to Test to Shokanju/[Elysium] Baka to Test to Shokanju /; 170 $newname =~ s/\[Elysium\] Baka to Test to Shokanju/[Elysium] Baka to Test to Shokanju /;
171 $newname =~ s/ Baka to Test to Shou?kanjuu? / Baka to Test to Shokanju /;
115 $newname =~ s/\(BD\.1080p\.FLAC\)/[1080p BD]/; 172 $newname =~ s/\(BD\.1080p\.FLAC\)/[1080p BD]/;
116 $newname =~ s/Saizen & SD/Saizen-SD/; 173 $newname =~ s/Saizen & SD/Saizen-SD/;
117 $newname =~ s/Bleach - (\d{2}) /Bleach - 0$1 /; 174 $newname =~ s/Bleach - (\d{2}) /Bleach - 0$1 /;
118 $newname =~ s/Omamori Himari - ED \(Clean\) - 0(\d) / Omamori Himari - Ending $1 (Clean) /; 175 $newname =~ s/Omamori Himari - ED \(Clean\) - 0(\d) / Omamori Himari - Ending $1 (Clean) /;
119 $newname =~ s/Omamori Himari - Opening \(Clean\) - (\d{2}) / Omamori Himari - Opening $1 (Clean) /; 176 $newname =~ s/Omamori Himari - Opening \(Clean\) - (\d{2}) / Omamori Himari - Opening $1 (Clean) /;
120 $newname =~ s/\(B-A\)Great Teacher Onizuka - Lesson /[B-A] Great Teacher Onizuka - /; 177 $newname =~ s/\(B-A\)Great Teacher Onizuka - Lesson /[B-A] Great Teacher Onizuka - /;
121 $newname =~ s/Xam'd Lost Memories - (\d+) .* \[1080p,BluRay,,DTS\] - THORA\.mkv/[THORA] Xam'd Lost Memories - $1 [1080p BD].mkv/; 178 $newname =~ s/Xam'd Lost Memories - (\d+) .* \[1080p,BluRay,,DTS\] - THORA\.mkv/[THORA] Xam'd Lost Memories - $1 [1080p BD].mkv/;
122 $newname =~ s/\(G P\) Escaflowne \(Remastered\)/[G_P] Escaflowne/; 179 $newname =~ s/\(G P\) Escaflowne \(Remastered\)/[G_P] Escaflowne/;
180 $newname =~ s/^\(G P\) /[G_P] /;
123 $newname =~ s/SD&Taka/SD-Taka/; 181 $newname =~ s/SD&Taka/SD-Taka/;
124 $newname =~ s/Seikai no Senki/Banner of the Stars/; 182 $newname =~ s/Seikai no Senki/Banner of the Stars/;
125 $newname =~ s/Onii-chan no Koto \.\.\. /Onii-chan no Koto Nanka Zenzen Suki Janain Dakara ne /; 183 $newname =~ s/Onii-chan no Koto \.\.\. /Onii-chan no Koto Nanka Zenzen Suki Janain Dakara ne /;
126 $newname =~ s/Onii-chan no Koto Nanka Zenzen Suki Janain Dakara ne /Onii-chan no Koto Nanka Zenzen Suki Janain Dakara ne!! /; 184 $newname =~ s/Onii-chan no Koto Nanka Zenzen Suki Janain Dakara ne /Onii-chan no Koto Nanka Zenzen Suki Janain Dakara ne!! /;
127 $newname =~ s/^Strawberry 100% - (\d+\.?\d*) \[ReDone-MDC\]/[ReDone-MDC] Strawberry 100% - $1 /; 185 $newname =~ s/^Strawberry 100% - (\d+\.?\d*) \[ReDone-MDC\]/[ReDone-MDC] Strawberry 100% - $1 /;
130 $newname =~ s/Natsu no Arashi - Akinai-chuu/Summer Storm! - Open for Business/; 188 $newname =~ s/Natsu no Arashi - Akinai-chuu/Summer Storm! - Open for Business/;
131 $newname =~ s/Natsu no Arashi/Summer Storm!/; 189 $newname =~ s/Natsu no Arashi/Summer Storm!/;
132 $newname =~ s/Naruto (\d+-\d+) /Naruto - $1 /; 190 $newname =~ s/Naruto (\d+-\d+) /Naruto - $1 /;
133 $newname =~ s/Lupin III Series 1 - (\d+) - .+ \[neo1024\]/[neo1024] Lupin III - $1 /; 191 $newname =~ s/Lupin III Series 1 - (\d+) - .+ \[neo1024\]/[neo1024] Lupin III - $1 /;
134 $newname =~ s/Mitsudomoe Picture Drama - 0/Mitsudomoe Picture Drama - /; 192 $newname =~ s/Mitsudomoe Picture Drama - 0/Mitsudomoe Picture Drama - /;
135 $newname =~ s/Sora no Woto - ([^ ]+) \[BD 1080p\]\[AtsA\]/[AtsA] Sora no Woto - $1 [1080p BD]/; 193 $newname =~ s/^(Star Driver .*)(\[AtsA\])/$2 $1 /i;
194 $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]/;
195 $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]/;
136 $newname =~ s/Battle\.Programmer\.Shirase\./Battle Programmer Shirase /; 196 $newname =~ s/Battle\.Programmer\.Shirase\./Battle Programmer Shirase /;
137 $newname =~ s/Battle Programmer Shirase - 0/Battle Programmer Shirase - /; 197 $newname =~ s/Battle Programmer Shirase - 0/Battle Programmer Shirase - /;
138 $newname =~ s/ Kuragehime / Princess Jellyfish /; 198 $newname =~ s/ Kuragehime / Princess Jellyfish /;
139 $newname =~ s/^\[OZC\]Code Geass Lelouch of the Rebellion R2 E(\d+) .*/[OZC] Code Geass R2 - $1.mkv/; 199 $newname =~ s/^\[OZC\]Code Geass Lelouch of the Rebellion R2 E(\d+) .*/[OZC] Code Geass R2 - $1.mkv/;
140 $newname =~ s/ Panty and Stocking with Garterbelt / Panty & Stocking with Garterbelt /; 200 $newname =~ s/ Panty and Stocking with Garterbelt / Panty & Stocking with Garterbelt /;
179 $newname =~ s/ Ookami-san To Shichinin No Nakama-tachi / Ookami-san /; 239 $newname =~ s/ Ookami-san To Shichinin No Nakama-tachi / Ookami-san /;
180 $newname =~ s/ K-On!! / K-ON!! /; 240 $newname =~ s/ K-On!! / K-ON!! /;
181 $newname =~ s/ Ore No Imouto / Ore no Imouto /; 241 $newname =~ s/ Ore No Imouto / Ore no Imouto /;
182 $newname =~ s/ A Certain Magical Index II / Toaru Majutsu no Index II /i; 242 $newname =~ s/ A Certain Magical Index II / Toaru Majutsu no Index II /i;
183 $newname =~ s/ TV Broadcast \[720p/ [LQ 720p/; 243 $newname =~ s/ TV Broadcast \[720p/ [LQ 720p/;
184 $newname =~ s/ ED(\d)/ - Ending $1 /; 244 $newname =~ s/ ED(\d+[a-z]*)/ - Ending $1 /i;
185 $newname =~ s/ OP(\d)/ - Opening $1 /; 245 $newname =~ s/ OP(\d+[a-z]*)/ - Opening $1 /i;
186 $newname =~ s/ ED / - Ending /; 246 $newname =~ s/ ED / - Ending /;
187 $newname =~ s/ NCED / - Ending (Clean) /i; 247 $newname =~ s/ Creditless Opening (\d+) / - Opening $1 (Clean) /i;
248 $newname =~ s/ Ep(\d+) Creditless Ending / - Ending $1 (Clean) /i;
249 $newname =~ s/ (NCED|Ending Clean) / - Ending (Clean) /i;
188 $newname =~ s/ NCED(\d+) / - Ending $1 (Clean) /i; 250 $newname =~ s/ NCED(\d+) / - Ending $1 (Clean) /i;
189 $newname =~ s/ NCOP / - Opening (Clean)/i; 251 $newname =~ s/ (NCOP|Opening Clean) / - Opening (Clean)/i;
190 $newname =~ s/ OP / - Opening /; 252 $newname =~ s/ OP / - Opening /;
191 $newname =~ s/ - - / - /; 253 $newname =~ s/ (\d+-\d+) / - $1 /;
254 $newname =~ s/ - - / - /g;
192 $newname =~ s/ Ep / /ig; 255 $newname =~ s/ Ep / /ig;
193 #GENERAL RULES
194 $newname =~ s/\(1280x720 x264 AAC\)/[720p]/i;
195 $newname =~ s/\( *(1920x1038 Blu-Ray FLAC|1920x1080 h264 BD FLAC|1920x1080 BD) *\)/[1080p BD]/i;
196 $newname =~ s/\(BD\.1080p\.FLAC\)/[1080p BD]/;
197 ##SLICED BREAD 256 ##SLICED BREAD
198 $newname =~ s/\[(\d+th Release|xvid|divx5\.2\.1|divx5\.1|divx5\.05|divx5\.1\.1|h\.?264 AC3|848x480|H264 848x480|h264-480p AAC|h\.264-480p)\]//i; 257 $newname =~ s/(\(|\[) *(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;
199 $newname =~ s/\[(DVD 720x480|DVD H264 720x480)\]/[DVD]/i; 258 $newname =~ s/\[(DVD 10bit)\]/[DVD 10bit]/i;
200 $newname =~ s/\[(1280x720 H264 AAC)\]/[720p]/i; 259 $newname =~ s/(\(|\[) *(DVD 704x480 H264 AC3|DVD 704x480|DVDRip\.Xvid\.864x480\.Vorbis|DVD H264 848x480|DVD 720x480|DVD H264 720x480|DVD, wmv, mp3) *(\)|\])/[DVD]/i;
201 $newname =~ s/\[(BD 1280x720 H264 AAC)\]/[720p BD]/i; 260 $newname =~ s/(\(|\[) *(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;
202 $newname =~ s/\( *(BD 720p|BD 720p FLAC|BD 1280x720 H264 AAC) *\)/[720p BD]/i; 261 $newname =~ s/(\(|\[) *(1280x720 Hi10P|1280x720 5\.1|1280x720 x264 AAC|1280x720 H264 AAC|720p H264 AAC|1280x720|1280x720 H\.?264 AAC) *(\)|\])/[720p]/i;
203 $newname =~ s/\( *(1280x720|1280x720 H\.?264 AAC) *\)/[720p]/i; 262 $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;
263 $newname =~ s/(\(|\[) *(1024x576|H264 1024x576) *(\)|\])/[576p]/i;
264 $newname =~ s/(\(|\[) *(1920x1080) *(\)|\])/[1080p]/i;
204 ##SLICED BREAD pt.2 265 ##SLICED BREAD pt.2
205 $newname =~ s/(\d+)v(\d+)/$1 [v$2]/i; 266 $newname =~ s/(\d+)v(\d+)/$1 [v$2]/i;
206 $newname =~ s/\[BD\]\[1920x1080 H264-Flac\]/[1080p BD]/i; 267 $newname =~ s/\[BD\]\[1920x1080 H264-Flac\]/[1080p BD]/i;
268 $newname =~ s/\[BD\]\[720p-AAC\]/[720p BD]/i;
207 $newname =~ s/\.DVD/[DVD]/; 269 $newname =~ s/\.DVD/[DVD]/;
208 $newname =~ s/ ~(.+)~ / - $1 /; 270 #$newname =~ s/ ~(.+)~ / - $1 /;
209 $newname =~ s/v2 \(BD-1080p\) / [v2 1080p BD]/i; 271 $newname =~ s/v2 \(BD-1080p\) / [v2 1080p BD]/i;
210 $newname =~ s/v2 \(BD H264 1280x960 24fps AAC\) / [v2 960p BD]/i; 272 $newname =~ s/v2 \(BD H264 1280x960 24fps AAC\) / [v2 960p BD]/i;
211 $newname =~ s/BD 1280x720 FLAC\]/ 720p BD]/i; 273 $newname =~ s/BD 1280x720 FLAC\]/ 720p BD]/i;
212 $newname =~ s/\[HD\]\.mp4/.mp4/; 274 $newname =~ s/\[HD\]\.mp4/.mp4/;
213 $newname =~ s/\[\.?AC3\]//i; 275 $newname =~ s/\[\.?AC3\]//i;
252 $newname =~ s/ \(960x720\) \[BD\]/ [720p BD]/i; 314 $newname =~ s/ \(960x720\) \[BD\]/ [720p BD]/i;
253 $newname =~ s/\(704x396\)//; 315 $newname =~ s/\(704x396\)//;
254 $newname =~ s/\(1280x720\)/ [720p]/i; 316 $newname =~ s/\(1280x720\)/ [720p]/i;
255 $newname =~ s/\(1920x1080\)/ [1080p]/i; 317 $newname =~ s/\(1920x1080\)/ [1080p]/i;
256 $newname =~ s/\(1024x576\)/ [576p]/i; 318 $newname =~ s/\(1024x576\)/ [576p]/i;
257 $newname =~ s/\[1024x576\]/[576p]/i;
258 $newname =~ s/\[v(\d+) 1024x576\]/[v$1 576p]/i; 319 $newname =~ s/\[v(\d+) 1024x576\]/[v$1 576p]/i;
259 $newname =~ s/\(1280x720 h264\)/ [720p]/i; 320 $newname =~ s/\(1280x720 h264\)/ [720p]/i;
260 $newname =~ s/\(1280x720 ?(h264|x264)?( aac)?\)/ [720p]/i; 321 $newname =~ s/\(1280x720 ?(h264|x264)?( aac)?\)/ [720p]/i;
261 $newname =~ s/\(720p\)/[720p]/i; 322 $newname =~ s/\(720p\)/[720p]/i;
262 $newname =~ s/\(1080p\)/[1080p]/i; 323 $newname =~ s/\(1080p\)/[1080p]/i;
291 $newname =~ s/ \(1280x720 x264 AAC\)/ [720p]/i; 352 $newname =~ s/ \(1280x720 x264 AAC\)/ [720p]/i;
292 $newname =~ s/ *\( *\d+x(1080|960|720|576) *Blu-Ray *(FLAC|) *\) */[$1p BD]/i; 353 $newname =~ s/ *\( *\d+x(1080|960|720|576) *Blu-Ray *(FLAC|) *\) */[$1p BD]/i;
293 $newname =~ s/\[720p\]\[v2\]/[v2 720p]/i; 354 $newname =~ s/\[720p\]\[v2\]/[v2 720p]/i;
294 $newname =~ s/\[480p\]//i; 355 $newname =~ s/\[480p\]//i;
295 $newname =~ s/\[v2\]\[720p\]/[v2 720p]/i; 356 $newname =~ s/\[v2\]\[720p\]/[v2 720p]/i;
357 $newname =~ s/\[(v\d)\]\[(\d+p)(| BD)\]/[$1 $2$3]/i;
296 $newname =~ s/\[H264 - AAC\]//i; 358 $newname =~ s/\[H264 - AAC\]//i;
297 $newname =~ s/\[H264 1280x720 AAC\] /[720p]/i; 359 $newname =~ s/\[H264 1280x720 AAC\] /[720p]/i;
298 $newname =~ s/\[DVD 480p\]/[DVD]/i; 360 $newname =~ s/\[DVD 480p\]/[DVD]/i;
299 $newname =~ s/\[704x480 DVD\]/[DVD]/i; 361 $newname =~ s/\[704x480 DVD\]/[DVD]/i;
300 $newname =~ s/\[720p\]\[End\]/[End 720p]/i; 362 $newname =~ s/\[720p\]\[End\]/[End 720p]/i;
323 #DANGEROUS CLEANUPS 385 #DANGEROUS CLEANUPS
324 $newname =~ s/ \[v(2|3)\]\[(.+)\]\[([0-9A-Fa-f]{8})\]/ [v$1 $2][$3]/; 386 $newname =~ s/ \[v(2|3)\]\[(.+)\]\[([0-9A-Fa-f]{8})\]/ [v$1 $2][$3]/;
325 $newname =~ s/\]/] /g; 387 $newname =~ s/\]/] /g;
326 $newname =~ s/\[/ [/g; 388 $newname =~ s/\[/ [/g;
327 $newname =~ s/\] +\[/][/g; 389 $newname =~ s/\] +\[/][/g;
328 $newname =~ s/\[ +/[/g; 390 $newname =~ s/(\[|\() +/$1/g;
329 $newname =~ s/ +\]/]/g; 391 $newname =~ s/ +(\]|\))/$1/g;
330 $newname =~ s/( -)+ / - /g; 392 $newname =~ s/( -)+ / - /g;
331 $newname =~ s/(\[|\()([0-9a-fA-F]{8})(\]|\))/[\U$2]/; 393 $newname =~ s/(\[|\()([0-9a-fA-F]{8})(\]|\))/[\U$2]/;
332 $newname =~ s/ +(\.\w{3})$/$1/; 394 $newname =~ s/ +(\.\w{3})$/$1/;
333 $newname =~ s/\[\]//g; 395 $newname =~ s/\[\]//g;
334 $newname =~ s/\(\)//g; 396 $newname =~ s/\(\)//g;
335 $newname =~ s/ - (\d+) - (\d+) / $1 - $2 /; 397 $newname =~ s/ - (\d+) - (\d+) / $1 - $2 /;
336 #EXCEPTIONS 398 #EXCEPTIONS
337 $newname =~ s/^\[DB&L-E\]/[DB L-E]/; 399 $newname =~ s/^\[DB&L-E\]/[DB L-E]/;
338 $newname =~ s/ VS Knight Lamune & - 40 fire / VS Knight Lamune & 40 fire /; 400 $newname =~ s/ VS Knight Lamune & - 40 fire / VS Knight Lamune & 40 fire /;
339 $newname =~ s/ RAINBOW / Rainbow /; 401 $newname =~ s/ RAINBOW / Rainbow /;
402 $newname =~ s/ (Infinite Ryvius - Ryvius Illusion|Infinite Ryvius - Ryvius VJ Mix|Kara no Kyoukai - Cinema Intro) - / $1 /;
340 $newname =~ s/ Golgo - 13 / Golgo 13 /; 403 $newname =~ s/ Golgo - 13 / Golgo 13 /;
341 $newname =~ s/ Strike Witches - 2 / Strike Witches 2 - /; 404 $newname =~ s/ Strike Witches - 2 / Strike Witches 2 - /;
342 $newname =~ s/ 07-GHOST / 07-Ghost /; 405 $newname =~ s/ 07-GHOST / 07-Ghost /;
343 $newname =~ s/ K-ON!! B-Side Theater - Uraon!! - / K-ON!! B-Side Theater - Uraon!! /; 406 $newname =~ s/ K-ON!! B-Side Theater - Uraon!! - / K-ON!! B-Side Theater - Uraon!! /;
344 $newname =~ s/ Captain Tsubasa Road to - 2002 / Captain Tsubasa Road to 2002 /; 407 $newname =~ s/ Captain Tsubasa Road to - 2002 / Captain Tsubasa Road to 2002 /;
345 $newname =~ s/ Ultraviolet Code - 044 - / Ultraviolet Code 044 - /; 408 $newname =~ s/ Ultraviolet Code - 044 - / Ultraviolet Code 044 - /;
409 $newname =~ s/ Persona - 3 Picture Drama - She Goes For A Walk / Persona 3 Picture Drama - She Goes For A Walk - /;
346 $newname =~ s/ SP0/ - Special /; 410 $newname =~ s/ SP0/ - Special /;
411 $newname =~ s/ SP(\d+) / - Special $1 /;
347 $newname =~ s/ Special - / - Special /; 412 $newname =~ s/ Special - / - Special /;
413 $newname =~ s/ - Picture Drama - / - Picture Drama /;
414 $newname =~ s/ (Mayoi Neko Overrun! - Theater) - / $1 /;
348 $newname =~ s/ Opening - / Opening /; 415 $newname =~ s/ Opening - / Opening /;
349 $newname =~ s/ Ending - / Ending /; 416 $newname =~ s/ Ending - / Ending /;
350 $newname =~ s/ Hidamari Sketch Hoshimittsu - Special / Hidamari Sketch Hoshimittsu Special - /; 417 $newname =~ s/ Hidamari Sketch Hoshimittsu - Special / Hidamari Sketch Hoshimittsu Special - /;
351 $newname =~ s/ Spice and Wolf S2 - BD Menu - 0/ Spice and Wolf S2 - BD Menu /; 418 $newname =~ s/ Spice and Wolf S2 - BD Menu - 0/ Spice and Wolf S2 - BD Menu /;
352 $newname =~ s/ Canvas - 2 - / Canvas 2 - /; 419 $newname =~ s/ Canvas - 2 - / Canvas 2 - /;
420 $newname =~ s/ Tsubasa Chronicles - 2 (\d{2}) / Tsubasa Chronicles 2 - $1 /;
353 $newname =~ s/ Mitsudomoe - 2 - / Mitsudomoe 2 - /; 421 $newname =~ s/ Mitsudomoe - 2 - / Mitsudomoe 2 - /;
422 $newname =~ s/ Morita-san wa Mukuchi - 2 / Morita-san wa Mukuchi 2 /i;
354 $newname =~ s/ Eyeshield - 21 - / Eyeshield 21 - /; 423 $newname =~ s/ Eyeshield - 21 - / Eyeshield 21 - /;
355 $newname =~ s/ - opening - (\d+) / - Opening $1 /i; 424 $newname =~ s/ - opening - (\d+) / - Opening $1 /i;
356 $newname =~ s/ - ending - (\d+) / - Ending $1 /i; 425 $newname =~ s/ - ending - (\d+) / - Ending $1 /i;
357 $newname =~ s/ Eyeshield 21 - (\d{2}) / Eyeshield 21 - 0$1 /; 426 $newname =~ s/ Eyeshield 21 - (\d{2}) / Eyeshield 21 - 0$1 /;
358 $newname =~ s/ Eyeshield 21 - (\d{2})-(\d{2}) / Eyeshield 21 - 0$1-0$2 /; 427 $newname =~ s/ Eyeshield 21 - (\d{2})-(\d{2}) / Eyeshield 21 - 0$1-0$2 /;
359 $newname =~ s/ - 2010 Young Animator / 2010 Young Animator /; 428 $newname =~ s/ - 2010 Young Animator / 2010 Young Animator /;
360 $newname =~ s/ Mahoujin Guruguru - 2 - Doki Doki Densetsu - / Mahoujin Guruguru 2 - Doki Doki Densetsu - /; 429 $newname =~ s/ Mahoujin Guruguru - 2 - Doki Doki Densetsu - / Mahoujin Guruguru 2 - Doki Doki Densetsu - /;
361 $newname =~ s/ The World God Only Knows - 2 - / The World God Only Knows 2 - /; 430 $newname =~ s/ The World God Only Knows - 2 - / The World God Only Knows 2 - /;
362 $newname =~ s/ Legend of Galactic Heroes Gaiden - 2 - / Legend of Galactic Heroes Gaiden 2 - /; 431 $newname =~ s/ Legend of Galactic Heroes Gaiden - 2 - / Legend of Galactic Heroes Gaiden 2 - /;
432 $newname =~ s/ Kara no Kyoukai - (\d+) / Kara no Kyoukai - Chapter $1/;
363 $newname =~ s/\[G P\]/[G_P]/i; 433 $newname =~ s/\[G P\]/[G_P]/i;
364 #SAFE CLEANUPS 434 #SAFE CLEANUPS
365 $newname =~ s/ +/ /g; 435 $newname =~ s/ +/ /g;
366 $newname =~ s/^ +//; 436 $newname =~ s/^ +//;
367 $newname =~ s/(- )+/- /; 437 $newname =~ s/(- )+/- /;