annotate bin/ren @ 584:4130d41c6acb

Support for msys' USERNAME variable
author nanaya <me@myconan.net>
date Wed, 09 Mar 2016 15:37:53 +0900
parents 0d928126fcf6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
94ee419ad047 Added bin-ec - a collection of scripts.
Edho Prima Arief <me@myconan.net>
parents:
diff changeset
1 #!/usr/bin/env perl
94ee419ad047 Added bin-ec - a collection of scripts.
Edho Prima Arief <me@myconan.net>
parents:
diff changeset
2
94ee419ad047 Added bin-ec - a collection of scripts.
Edho Prima Arief <me@myconan.net>
parents:
diff changeset
3 use warnings;
94ee419ad047 Added bin-ec - a collection of scripts.
Edho Prima Arief <me@myconan.net>
parents:
diff changeset
4 use strict;
94ee419ad047 Added bin-ec - a collection of scripts.
Edho Prima Arief <me@myconan.net>
parents:
diff changeset
5 use File::Basename;
94ee419ad047 Added bin-ec - a collection of scripts.
Edho Prima Arief <me@myconan.net>
parents:
diff changeset
6
94ee419ad047 Added bin-ec - a collection of scripts.
Edho Prima Arief <me@myconan.net>
parents:
diff changeset
7 my @files = @ARGV or print("Usage: ",basename($0)," file1 ... fileN\n") && exit(1);
94ee419ad047 Added bin-ec - a collection of scripts.
Edho Prima Arief <me@myconan.net>
parents:
diff changeset
8 my $skip=0;
94ee419ad047 Added bin-ec - a collection of scripts.
Edho Prima Arief <me@myconan.net>
parents:
diff changeset
9 foreach (@files) {
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
10 print(qq(Could not find file "$_", skipping\n)) and next() unless -e $_;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
11 my $newname = $_;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
12 #START HERE
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
13 $newname =~ s/_/ /g;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
14 # GROUP NAMES
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
15 $newname =~ s/\[UTW Mazui\]/[UTW-Mazui]/i;
420
4b12d4c1be51 [bin/ren] More rules.
Edho Arief <edho@myconan.net>
parents: 409
diff changeset
16 $newname =~ s/\[tsundere\]/[Tsundere]/i;
120
6d5ee629cd0b More rules!
Edho Prima Arief <edho@myconan.net>
parents: 119
diff changeset
17 $newname =~ s/\[t-n\]/[T-N]/i;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
18 #TITLE AND NAMES
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
19 $newname =~ s/^(\(|\[)W B(\)|\])/[W_B]/;
137
983beb13c736 Even more rules.
Edho Prima Arief <edho@myconan.net>
parents: 114
diff changeset
20 if ($newname =~ m/\[(Doremi|Elysium)/) {
114
eb4dddd48f29 Crapload new rules.
Edho Prima Arief <edho@myconan.net>
parents: 87
diff changeset
21 $newname =~ s/\.([a-z0-9]+)$/,$1/i;
eb4dddd48f29 Crapload new rules.
Edho Prima Arief <edho@myconan.net>
parents: 87
diff changeset
22 $newname =~ s/\./ /g;
eb4dddd48f29 Crapload new rules.
Edho Prima Arief <edho@myconan.net>
parents: 87
diff changeset
23 $newname =~ s/,([a-z0-9]+)$/.$1/i;
eb4dddd48f29 Crapload new rules.
Edho Prima Arief <edho@myconan.net>
parents: 87
diff changeset
24 }
483
ee4ce7e78d2d Update rules.
edogawaconan <me@myconan.net>
parents: 450
diff changeset
25 $newname =~ s/Pocket Monsters Best Wishes Season 2 Decolora Adventure (\d+) .+\[H264 720P\]/ Pokemon Best Wishes S2 Decolora Adventure - $1 [720p]/i;
284
5ef99c47e636 More rules.
Edho Arief <edho@myconan.net>
parents: 259
diff changeset
26 $newname =~ s/^Gundam Seed (\d+|\d+\[v2\])\.DVD\(H264\.AAC\)\[KAA\]/[KAA] Gundam SEED - $1 [DVD]/i;
132
53b39ca5a6ea [bin/ren] Even more rules.
Edho Prima Arief <edho@myconan.net>
parents: 131
diff changeset
27 $newname =~ s/(\[ACX\])(Spiral)( - \d+) - .* (\[[a-f0-9]{8}\]\.mkv)$/$1 $2$3 $4/i;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
28 $newname =~ s/^Genesis of Aquarion - (\d+) \[3xR\]\[Blu-ray.720p.H264.FLAC.AC3\](v2|)/[3xR] Genesis of Aquarion - $1 [$2 720p BD]/;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
29 $newname =~ s/^Otogi Zoshi Act\.(\d+)\[x264 AAC\]\[SSP-Corp\]/[SSP-Corp] Otogi Zoshi - $1 /;
259
1e214a53237d Even more rules.
Edho Arief <edho@myconan.net>
parents: 248
diff changeset
30 $newname =~ s/(Ending) (\(Clean\)) - 0(\d+)/$1 $3 $2/;
1e214a53237d Even more rules.
Edho Arief <edho@myconan.net>
parents: 248
diff changeset
31 $newname =~ s/(Opening) (\(Clean\))0(\d+)/$1 $3 $2/;
1e214a53237d Even more rules.
Edho Arief <edho@myconan.net>
parents: 248
diff changeset
32 $newname =~ s/ A\+Channel / A Channel - Special /;
382
Edho Arief <edho@myconan.net>
parents: 373
diff changeset
33 $newname =~ s/ Arcana✴Famiglia / Arcana Famiglia /i;
Edho Arief <edho@myconan.net>
parents: 373
diff changeset
34 $newname =~ s/ Yuru Yuri♪♪ / Yuru Yuri S2 /i;
483
ee4ce7e78d2d Update rules.
edogawaconan <me@myconan.net>
parents: 450
diff changeset
35 $newname =~ s/\[Retrofit\] *\[AI A-F&Ishin\] Kanon 2002 /[Retrofit] Kanon (2002) /i;
409
fcb116fc12f9 [ren] More rules.
Edho Arief <edho@myconan.net>
parents: 399
diff changeset
36 $newname =~ s/ The Story of Perrine / Perrine /i;
fcb116fc12f9 [ren] More rules.
Edho Arief <edho@myconan.net>
parents: 399
diff changeset
37 $newname =~ s/\] Chitose Get you!!? - /] Chitose Get You!! - /i;
392
e385db8cd360 [bin/ren] More rules.
Edho Arief <edho@myconan.net>
parents: 389
diff changeset
38 $newname =~ s/ Dog Days' / Dog Days S2 /i;
348
477443d4e357 [bin/ren] Even more rules.
Edho Arief <edho@myconan.net>
parents: 346
diff changeset
39 $newname =~ s/\[commie\]/[Commie]/i;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
40 $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 /;
131
2c94b1e14592 Even more rules.
Edho Prima Arief <edho@myconan.net>
parents: 121
diff changeset
41 $newname =~ s/^(Ayashi no Ceres|Chikyuu Shoujo Arjuna|Futari wa Precure Splash Star) - (\d+)\[\d+\] - .*(\[DVD\])(\[[^]]+\])(\[[a-f0-9]{8}\]\.[^.]+)$/$4 $1 - $2 $3$5/i;
2c94b1e14592 Even more rules.
Edho Prima Arief <edho@myconan.net>
parents: 121
diff changeset
42 $newname =~ s/^(Futari wa Precure Splash Star) - (C\d+)\[\d+\] - .*(\[DVD\])(\[[^]]+\])(\[[a-f0-9]{8}\]\.[^.]+)$/$4 $1 - $2 $3$5/i;
2c94b1e14592 Even more rules.
Edho Prima Arief <edho@myconan.net>
parents: 121
diff changeset
43 $newname =~ s/^(Air Master|Black Jack Special|Cinderella Boy|Damekko Doubutsu|Crystal Blaze) - (\d+)\[\d+\] - .*(\[[^]]+\])(\[[a-f0-9]{8}\]\.[^.]+)$/$3 $1 - $2 $4/i;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
44 $newname =~ s/^cor\.extras\.infinite\.ryvius\.textless\.opening(\d+)\./[cor] Infinite Ryvius - Opening $1 (Clean) /;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
45 $newname =~ s/^cor\.extras\.infinite\.ryvius\.textless\.ending(\d+)\./[cor] Infinite Ryvius - Ending $1 (Clean) /;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
46 $newname =~ s/^cor\.extras\.infinite\.ryvius\.art\.gallery\.and\.audio\.drama(\d+)\./[cor] Infinite Ryvius - Picture Drama $1 /;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
47 $newname =~ s/^cor\.extras\.infinite\.ryvius\.ryvius\.vj\.mix(\d+)\./[cor] Infinite Ryvius - Ryvius VJ Mix $1 /;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
48 $newname =~ s/^cor\.extras\.infinite\.ryvius\.ryvius\.illusion(\d+)\.mini-episode(\d+)\./[cor] Infinite Ryvius - Ryvius Illusion $1 - Mini Episode $2 /;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
49 $newname =~ s/^cor\.extras\.infinite\.ryvius\.ryvius\.illusion(\d+)\.(introduction|ending)\./[cor] Infinite Ryvius - Ryvius Illusion $1 - $2 /;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
50 $newname =~ s/ (Ryvius Illusion \d+) - ending / $1 - Ending /;
259
1e214a53237d Even more rules.
Edho Arief <edho@myconan.net>
parents: 248
diff changeset
51 $newname =~ s/ (Mitsudomoe Zouryouchuu\! - )0/ $1/;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
52 $newname =~ s/ (Ryvius Illusion \d+) - introduction / $1 - Introduction /;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
53 $newname =~ s/^Arigatou\.Tokyo\.Majin\.Ep(\d+)\./[Arigatou] Tokyo Majin - $1 /;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
54 $newname =~ s/ (Inazuma Eleven - )(\d{2}) / $1 0$2 /;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
55 $newname =~ s/\] *Pocket Monsters - (\d+) - .*\[(H264 |)SUB\]/] Pokemon - $1 /i;
409
fcb116fc12f9 [ren] More rules.
Edho Arief <edho@myconan.net>
parents: 399
diff changeset
56 $newname =~ s/\] Ebiten - Koritsu Ebisugawa Koukou Tenmon-Bu - /] Ebiten - /i;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
57 $newname =~ s/\] Fafner - /] Soukyuu no Fafner - /;
445
b6ff64346e71 [bin/ren] More rules.
Edho Arief <edho@myconan.net>
parents: 444
diff changeset
58 $newname =~ s/\] Senyuu\. - /] Senyuu - /i;
442
f1aaf5045975 [bin/ren] Updated rules.
Edho Arief <edho@myconan.net>
parents: 441
diff changeset
59 $newname =~ s/\] Amnesia - /] Amnesia - /i;
483
ee4ce7e78d2d Update rules.
edogawaconan <me@myconan.net>
parents: 450
diff changeset
60 $newname =~ s/\] Date A Live - /] Date A Live - /i;
ee4ce7e78d2d Update rules.
edogawaconan <me@myconan.net>
parents: 450
diff changeset
61 $newname =~ s/\] Yahari Ore no Seishun Love Comedy wa Machigatteiru - My Teenage RomCom SNAFU - /] Yahari Ore no Seishun Love Comedy wa Machigatteiru - /i;
ee4ce7e78d2d Update rules.
edogawaconan <me@myconan.net>
parents: 450
diff changeset
62 $newname =~ s/\] Ore no Imouto ga Konnani Kawaii Wake ga Nai. - My Little Sister Can't Be This Cute. - /] Ore no Imouto ga Konnani Kawaii Wake ga Nai S2 - /i;
444
963117a9a6d7 [bin/ren] More rules.
Edho Arief <edho@myconan.net>
parents: 443
diff changeset
63 $newname =~ s/\] Kotoura-san - /] Kotoura - /i;
450
27c5847dfe36 More rules.
Edho Arief <edho@myconan.net>
parents: 445
diff changeset
64 $newname =~ s/\] Sasami-san\@Ganbaranai - /] Sasami\@Ganbaranai - /i;
420
4b12d4c1be51 [bin/ren] More rules.
Edho Arief <edho@myconan.net>
parents: 409
diff changeset
65 $newname =~ s/\] Major OVA - World Series - /] Major World Series OVA - /i;
442
f1aaf5045975 [bin/ren] Updated rules.
Edho Arief <edho@myconan.net>
parents: 441
diff changeset
66 $newname =~ s/\] D\.C\.( )?III ~Da Capo III~ /] Da Capo III /i;
441
a7a4142d0114 [bin/rename] Added more rules.
Edho Arief <edho@myconan.net>
parents: 421
diff changeset
67 $newname =~ s/\] Ore no Kanojo to Osananajimi ga Shuraba( )?Sugiru( - My Girlfriend and Childhood Friend Fight Too Much)? /] Ore no Kanojo to Osananajimi ga Shuraba Sugiru /i;
409
fcb116fc12f9 [ren] More rules.
Edho Arief <edho@myconan.net>
parents: 399
diff changeset
68 $newname =~ s/\] Sukitte Ii na yo\. - /] Sukitte Iinayo - /i;
420
4b12d4c1be51 [bin/ren] More rules.
Edho Arief <edho@myconan.net>
parents: 409
diff changeset
69 $newname =~ s/\] .+80%8CK.+80%8D - /] K - /i;
409
fcb116fc12f9 [ren] More rules.
Edho Arief <edho@myconan.net>
parents: 399
diff changeset
70 $newname =~ s/\] Kono Naka ni Hitori Imouto ga Iru - /] Kono Naka ni Hitori Imouto ga Iru - /i;
363
4635b9d2de68 Update to latest ren (more rules).
Edho Arief <edho@myconan.net>
parents: 349
diff changeset
71 $newname =~ s/\] Yakitate Japan (- |Ep)/] Yakitate!! Japan - /i;
291
9fbebccde4e3 More rules!
Edho Arief <edho@myconan.net>
parents: 287
diff changeset
72 $newname =~ s/\] Inu × Boku SS - /] Inu x Boku SS - /i;
450
27c5847dfe36 More rules.
Edho Arief <edho@myconan.net>
parents: 445
diff changeset
73 $newname =~ s/\] Onii-chan Dakedo Ai Sae Areba Kankeinai Yo Ne - /] Onii-chan Dakedo Ai Sae Areba Kankeinai yo ne - /i;
409
fcb116fc12f9 [ren] More rules.
Edho Arief <edho@myconan.net>
parents: 399
diff changeset
74 $newname =~ s/\] 「K」 - /] K - /i;
fcb116fc12f9 [ren] More rules.
Edho Arief <edho@myconan.net>
parents: 399
diff changeset
75 $newname =~ s/\] Hidamari Sketch(×|×)Honeycomb - /] Hidamari Sketch x Honeycomb - /i;
349
2aa08f309ada [bin/ren] More rules.
Edho Arief <edho@myconan.net>
parents: 348
diff changeset
76 $newname =~ s/\] Tasogare Otome × Amnesia - /] Tasogare Otome x Amnesia - /i;
2aa08f309ada [bin/ren] More rules.
Edho Arief <edho@myconan.net>
parents: 348
diff changeset
77 $newname =~ s/\] Haiyore! Nyarlko-san - /] Haiyore! Nyarlko - /i;
291
9fbebccde4e3 More rules!
Edho Arief <edho@myconan.net>
parents: 287
diff changeset
78 $newname =~ s/\] Inu x Boku Secret Service - /] Inu x Boku SS - /i;
343
32897d383f97 [bin/ren] Even more rules.
Edho Arief <edho@myconan.net>
parents: 337
diff changeset
79 $newname =~ s/\] Black Rock Shooter - 0/] Black Rock Shooter - /i;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
80 $newname =~ s/\] Mashiro iro symphony - /] Mashiro-iro Symphony - /i;
137
983beb13c736 Even more rules.
Edho Prima Arief <edho@myconan.net>
parents: 114
diff changeset
81 $newname =~ s/\] To Aru Kagaku no Railgun /] Toaru Kagaku no Railgun /i;
983beb13c736 Even more rules.
Edho Prima Arief <edho@myconan.net>
parents: 114
diff changeset
82 $newname =~ s/\] To Aru Majutsu no Index /] Toaru Majutsu no Index /i;
114
eb4dddd48f29 Crapload new rules.
Edho Prima Arief <edho@myconan.net>
parents: 87
diff changeset
83 $newname =~ s/\] Shakugan no Shana III /] Shakugan no Shana Final /i;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
84 $newname =~ s/\] Boku Ha Tomodachi Ga Sukunai - /] Boku wa Tomodachi ga Sukunai - /i;
442
f1aaf5045975 [bin/ren] Updated rules.
Edho Arief <edho@myconan.net>
parents: 441
diff changeset
85 $newname =~ s/\] Boku Ha Tomodachi Ga Sukunai next - /] Boku wa Tomodachi ga Sukunai NEXT - /i;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
86 $newname =~ s/\] Seikon no Qwaser II BD - (\d+) \[720p\]/] Seikon no Qwaser II - $1 [720p BD]/i;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
87 $newname =~ s/\] Seikon no Qwaser Picture Drama - (\d+) /] Seikon no Qwaser - Picture Drama $1 /i;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
88 $newname =~ s/\] Fortune Arterial Akai Yakusoku - /] Fortune Arterial - /;
291
9fbebccde4e3 More rules!
Edho Arief <edho@myconan.net>
parents: 287
diff changeset
89 $newname =~ s/\] Full Metal Panic Fumoffu - /] Full Metal Panic Fumoffu - /i;
120
6d5ee629cd0b More rules!
Edho Prima Arief <edho@myconan.net>
parents: 119
diff changeset
90 $newname =~ s/\[HorribleSubs\] Hunter X Hunter - /[HorribleSubs] Hunter x Hunter (2011) - /i;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
91 $newname =~ s/\] Ookami to Koushinryou - /] Spice and Wolf - /;
284
5ef99c47e636 More rules.
Edho Arief <edho@myconan.net>
parents: 259
diff changeset
92 $newname =~ s/\] Saint Seiya The Lost Canvas - /] Saint Seiya - The Lost Canvas - /;
287
d55ff9c0158a More ren rules.
Edho Arief <edho@myconan.net>
parents: 284
diff changeset
93 $newname =~ s/\] Love GetChu - /] Love Get Chu - /i;
120
6d5ee629cd0b More rules!
Edho Prima Arief <edho@myconan.net>
parents: 119
diff changeset
94 $newname =~ s/\] Kamen Rider Blade /] Kamen Rider Blade /i;
399
0051e1fccb40 [bin/ren] More rules.
Edho Arief <edho@myconan.net>
parents: 392
diff changeset
95 $newname =~ s/\] Lovedol ~ Lovely Idol - /] Lovedol ~Lovely Idol~ - /i;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
96 $newname =~ s/\] Mobile Suit Gundam AGE - /] Gundam AGE - /i;
348
477443d4e357 [bin/ren] Even more rules.
Edho Arief <edho@myconan.net>
parents: 346
diff changeset
97 $newname =~ s/\] Kore wa Zombie Desu ka? of the Dead - /] Kore wa Zombie desu ka - of the Dead - /i;
477443d4e357 [bin/ren] Even more rules.
Edho Arief <edho@myconan.net>
parents: 346
diff changeset
98 $newname =~ s/\] Kore wa Zombie Desu ka- of the Dead - /] Kore wa Zombie desu ka - of the Dead - /i;
443
8d96292f6c0b Even more rules.
Edho Arief <edho@myconan.net>
parents: 442
diff changeset
99 $newname =~ s/\] BAKUMATSU GIJINDEN ROMAN - /] Bakumatsu Gijinden Roman - /i;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
100 $newname =~ s/\] Soredemo Machi wa Mawatte Iru - /] Soredemo Machi wa Mawatteiru - /;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
101 $newname =~ s/\] Spiral - (\d+) .* \[640 x 480\]\[H\.264\]/] Spiral - $1 /;
287
d55ff9c0158a More ren rules.
Edho Arief <edho@myconan.net>
parents: 284
diff changeset
102 $newname =~ s/\] Mayo Chiki - /] Mayo Chiki! - /i;
337
e8b10a42ab54 More rules.
Edho Arief <edho@myconan.net>
parents: 327
diff changeset
103 $newname =~ s/\] Kaitou Tenshi Twin Angel Kyun Kyun Tokimeki Paradise - /] Twin Angel - Twinkle Paradise - /i;
287
d55ff9c0158a More ren rules.
Edho Arief <edho@myconan.net>
parents: 284
diff changeset
104 $newname =~ s/\] Mai Hime - /] My-HiME - /i;
349
2aa08f309ada [bin/ren] More rules.
Edho Arief <edho@myconan.net>
parents: 348
diff changeset
105 $newname =~ s/\] EUREKA SEVEN AO - /] Eureka Seven AO - /;
483
ee4ce7e78d2d Update rules.
edogawaconan <me@myconan.net>
parents: 450
diff changeset
106 $newname =~ s/\] kill la kill - /] Kill la Kill - /;
409
fcb116fc12f9 [ren] More rules.
Edho Arief <edho@myconan.net>
parents: 399
diff changeset
107 $newname =~ s/\] CØDE:BREAKER - /] Code Breaker - /i;
349
2aa08f309ada [bin/ren] More rules.
Edho Arief <edho@myconan.net>
parents: 348
diff changeset
108 $newname =~ s/\] Nazo no Kanojo X - /] Mysterious Girlfriend X - /i;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
109 $newname =~ s/\] Naruto Shippuden - /] Naruto Shippuuden - /i;
295
ce17ed77a7fa more rules~
Edho Arief <edho@myconan.net>
parents: 293
diff changeset
110 $newname =~ s/\] -* *Ef - a Tale of Me(l|m)o(d|r)ies - /] ef - a tale of me$1o$2ies /i;
114
eb4dddd48f29 Crapload new rules.
Edho Prima Arief <edho@myconan.net>
parents: 87
diff changeset
111 $newname =~ s/\] Maji de Watashi ni Koi Shinasai!! /] Maji de Watashi ni Koi Shinasai! /i;
eb4dddd48f29 Crapload new rules.
Edho Prima Arief <edho@myconan.net>
parents: 87
diff changeset
112 $newname =~ s/\] Sei Juushi Bismarck /] Sei Juushi Bismark /i;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
113 $newname =~ s/\] Tamayura - hitotose - /] Tamayura ~hitotose~ - /i;
137
983beb13c736 Even more rules.
Edho Prima Arief <edho@myconan.net>
parents: 114
diff changeset
114 $newname =~ s/\] Yumekui Merry /] Dream Eater Merry /i;
292
c57427d178ec Even more rules.
Edho Arief <edho@myconan.net>
parents: 291
diff changeset
115 $newname =~ s/\] Zero no Tsukaima Final /] Zero no Tsukaima F /i;
291
9fbebccde4e3 More rules!
Edho Arief <edho@myconan.net>
parents: 287
diff changeset
116 $newname =~ s/\] Papa no Iukoto wo Kikinasai! /] Papa no Iu Koto wo Kikinasai! /i;
9fbebccde4e3 More rules!
Edho Arief <edho@myconan.net>
parents: 287
diff changeset
117 $newname =~ s/\] Black★Rock Shooter /] Black Rock Shooter /i;
9fbebccde4e3 More rules!
Edho Arief <edho@myconan.net>
parents: 287
diff changeset
118 $newname =~ s/\] Mobile Suit Gundam SEED HD Remaster /] Gundam SEED (Remaster) /i;
287
d55ff9c0158a More ren rules.
Edho Arief <edho@myconan.net>
parents: 284
diff changeset
119 $newname =~ s/\] *rockman exe axess /] Rockman.EXE Axess /i;
420
4b12d4c1be51 [bin/ren] More rules.
Edho Arief <edho@myconan.net>
parents: 409
diff changeset
120 $newname =~ s/\] *Jojo's Bizarre Adventure /] JoJo's Bizarre Adventure /i;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
121 $newname =~ s/^Arigatou\.Tsubasa\.Chronicles\.(|2\.)(\d{2})(|v2)\./[Arigatou] Tsubasa Chronicles $1 - $2$3/;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
122 $newname =~ s/^Niea\.Under\.Seven\.(\d+)\.\(Dual\.Audio\)\.XVID\.\[AM\]/[AM] Niea Under Seven - $1/;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
123 $newname =~ s/ Tsubasa Chronicles 2\. - / Tsubasa Chronicles 2 /;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
124 $newname =~ s/ *Moritasan wa Mukuchi */ Morita-san wa Mukuchi /i;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
125 $newname =~ s/ Hanasakeru Seishonen / Hanasakeru Seishounen /i;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
126 $newname =~ s/^YAMATO 3x(\d+).*/Yamato S3 - $1.mkv/i;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
127 $newname =~ s/ - (Ending|Opening) (\d+ *[a-z]*) (Clean) / - $1 $2 ($3) /i;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
128 $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/;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
129 $newname =~ s/^Yamato (\d+) - remaster \(Central Anime\)/[Central Anime] Yamato - $1 /i;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
130 $newname =~ s/^Yamato S2 (\d+) - remaster \(Central Anime\)/[Central Anime] Yamato S2 - $1 /i;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
131 $newname =~ s/\[TSuNDeRe\]Tsuyokiss\.(\d+)\./[Tsundere] Tsuyokiss - $1 /i;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
132 $newname =~ s/\[RANDOMFAGGOTS\]/[Randomfaggots]/i;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
133 $newname =~ s/\[Keroro\]\.(\d+)\.\[Xvid\.mp3\]\./[Keroro] Keroro Gunsou - $1 /i;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
134 $newname =~ s/\[Keroro\] \.(\d+)\. \[\.mp3\] \. /[Keroro] Keroro Gunsou - $1 /i;
84
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
135 $newname =~ s/\[WPP & T-N\]/[WPP T-N]/;
131
2c94b1e14592 Even more rules.
Edho Prima Arief <edho@myconan.net>
parents: 121
diff changeset
136 $newname =~ s/(\[Jumonji-Giri\]) *\[[^]]+\]/$1/i;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
137 $newname =~ s/ Yuru Yuri / YuruYuri /i;
295
ce17ed77a7fa more rules~
Edho Arief <edho@myconan.net>
parents: 293
diff changeset
138 $newname =~ s/ Creditless Ending (\d+) ver\. (\d+) / Ending $1.$2 (Clean) /i;
ce17ed77a7fa more rules~
Edho Arief <edho@myconan.net>
parents: 293
diff changeset
139 $newname =~ s/ (ef - a tale of me[lm]o[dr]ies) (Ending|Opening) / $1 - $2 /i;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
140 $newname =~ s/ Clannad - After Story / Clannad After Story /i;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
141 $newname =~ s/ Manyuu Hikenchou - (\d+) ~DC~ / Manyuu Hikenchou - $1 [Uncut]/;
84
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
142 $newname =~ s/\[Elysium\]K-ON!!\.EP(\d+)\(BD\.1080p\.FLAC\)/[Elysium] K-ON!! - $1 [1080p BD]/i;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
143 $newname =~ s/\[Elysium\]K-ON!!\.(ED|OP)(\d+)\(BD\.1080p\.FLAC\)/[Elysium] K-ON!! - $1 $2 [1080p BD]/i;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
144 $newname =~ s/\[Elysium\]K-ON!!\.SP\d+\[EP(\d+)\]\(BD\.1080p\.FLAC\)/[Elysium] K-ON!! - $1 [1080p BD]/i;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
145 $newname =~ s/^\[wpp\]digimon frontier /[wpp] Digimon Frontier /i;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
146 $newname =~ s/^\[ACX\]Fantastic Children - (\d+) .*/[ACX] Fantastic Children - $1.mkv/i;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
147 $newname =~ s/\[a-s\] sakigake!! cromartie high school - (\d+) - .* /[a-S] Sakigake!! Cromartie High School - $1 /;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
148 $newname =~ s/zx\.tenchi-universe\./[zx] Tenchi Universe - /;
85
14435bd3f01c Various rules.
Edho Prima Arief <me@myconan.net>
parents: 84
diff changeset
149 $newname =~ s/\[Saizen & Shinsen-Subs\]/[Saizen-SHS]/i;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
150 $newname =~ s/ ro-kyu-bu(!)? / Ro-Kyu-Bu! /i;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
151 $newname =~ s/^cor\.tv\.infinite\.ryvius\.(\d+)\./[cor] Infinite Ryvius - $1 /i;
85
14435bd3f01c Various rules.
Edho Prima Arief <me@myconan.net>
parents: 84
diff changeset
152 $newname =~ s/ Ore no Imouto ga Konna ni Kawaii Wake ga Nai / Ore no Imouto /i;
14435bd3f01c Various rules.
Edho Prima Arief <me@myconan.net>
parents: 84
diff changeset
153 $newname =~ s/ no 6 / No. 6 /i;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
154 $newname =~ s/\[ACX\]Gantz - (\d+) .* \[SaintDeath\] /[ACX] Gantz - $1 /i;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
155 $newname =~ s/ THE iDOLM\@STER / The Idolm\@ster /i;
85
14435bd3f01c Various rules.
Edho Prima Arief <me@myconan.net>
parents: 84
diff changeset
156 $newname =~ s/^- (\d+) - (\[neo1024\])/$2 Luping III S3 - $2/i;
14435bd3f01c Various rules.
Edho Prima Arief <me@myconan.net>
parents: 84
diff changeset
157 $newname =~ s/ Luping III S3 / Lupin III S3 /i;
483
ee4ce7e78d2d Update rules.
edogawaconan <me@myconan.net>
parents: 450
diff changeset
158 $newname =~ s/\] GARO - The One Who Shines in the Darkness - /] Garo - The One Who Shines in the Darkness - /i;
84
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
159 $newname =~ s/( Transformers Headmasters - \d+) - .*\[/$1 [/i;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
160 $newname =~ s/^cor\.tv\.getbackers\.(\d+)\./[cor] GetBackers - $1 /;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
161 $newname =~ s/^cor\.extras\.getbackers\.(opening|ending)(\d+)\./[cor] GetBackers - $1 $2 /;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
162 $newname =~ s/^Revolutionary Girl Utena /[Henshin] Revolutionary Girl Utena /;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
163 $newname =~ s/His and Her Circumstances/His and Her Circumstances/i;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
164 $newname =~ s/ Lime-iro Senkitan / Lime-Colored War Tales /i;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
165 $newname =~ s/(Ninja Scroll) TV Ep\.(\d+)\[.*(\[SSP-Corp\])/$3 $1 - $2 /i;
85
14435bd3f01c Various rules.
Edho Prima Arief <me@myconan.net>
parents: 84
diff changeset
166 $newname =~ s/Magical Girl Madoka Magica/Puella Magi Madoka Magica/i;
14435bd3f01c Various rules.
Edho Prima Arief <me@myconan.net>
parents: 84
diff changeset
167 $newname =~ s/ Pretty Rhythm Aurora Dream / Pretty Rhythm - Aurora Dream /i;
84
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
168 $newname =~ s/(\[dvdrip\] Transformers \(1984\) -) E(\d+) .*(\.avi)/$1 $2 $3/;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
169 $newname =~ s/ Highschool of the Dead / High School of the Dead /i;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
170 $newname =~ s/LOGH Gaiden 2 E(\d+) .*(\.avi|\.mkv)/Legend of Galactic Heroes Gaiden 2 - $1$2/i;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
171 $newname =~ s/^\[RaX\] *Kiba - (\d+) - .* (\[v2\] \[|\[)/[RaX] Kiba - $1 $2/;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
172 $newname =~ s/ (Gosick - \d+) \(Batch\) / $1 /;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
173 $newname =~ s/ Clannad - After Story - / Clannad After Story - /;
483
ee4ce7e78d2d Update rules.
edogawaconan <me@myconan.net>
parents: 450
diff changeset
174 $newname =~ s/ Uta no Prince Sama 2 - / Uta no Prince-sama 2 - /;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
175 $newname =~ s/ Ikoku Meiro no Croisée / Ikoku Meiro no Kurowaaze /i;
84
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
176 $newname =~ s/^Mahoujin Guruguru TV2 - Doki Doki Densetsu Ep(\d+) \((Chamelenia)\)/[Chamelenia] Mahoujin Guruguru 2 - Doki Doki Densetsu - $1/i;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
177 $newname =~ s/\.divx5\.ogm$/.ogm/;
85
14435bd3f01c Various rules.
Edho Prima Arief <me@myconan.net>
parents: 84
diff changeset
178 #$newname =~ s/\[(neo1024)\] Lupin III - (\d+) - .+ \[/[$1] Lupin III S2 - $2 [/;
84
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
179 $newname =~ s/ Lupin S2 - / Lupin III S2 - /;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
180 $newname =~ s/ Prince of Tennis (\d+)/ Prince of Tennis - $1/i;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
181 $newname =~ s/ Boogiepop - / Boogiepop Phantom - /i;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
182 $newname =~ s/ Aika Zero OVA / Aika Zero /i;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
183 $newname =~ s/^\[A-BT&Pakapuka\]PopoloCrois 2003 Ep/[A-BT Pakapuka] PopoloCrois (2003) - /;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
184 $newname =~ s/^\[A-BT&Pakapuka\] PopoloCrois Story 1998 /[A-BT Pakapuka] PopoloCrois (1998) - /;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
185 $newname =~ s/ (Pollyanna|Happy Kappi) Episode (\d+) / $1 - $2 /;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
186 $newname =~ s/\(G P\) Now and Then Here and There \(R2J\)/[G P] Now and Then Here and There - /;
41
9a0cbfe1195b [ren] More rules
Edho Prima Arief <me@myconan.net>
parents: 36
diff changeset
187 $newname =~ s/^\[Jumonji-Giri\]\[Soldats\]\[AonE&HQA\] D\.C\. Da Capo /[Jumonji-Giri] Da Capo /i;
84
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
188 $newname =~ s/\[A-Flux&Lunar\]/[A-Flux Lunar]/i;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
189 $newname =~ s/^(Mushishi) - (\d+) - .* - (\[niizk\])/$3 $1 - $1/;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
190 $newname =~ s/^(Saikano) (\d+)\[h\.264-AAC\](\[SSP-Corp\])/$3 $1 - $2 /;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
191 $newname =~ s/^PitaTen.* Ep (\d+) .*\.avi/[Hnk] Pita Ten - $1.avi/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
192 $newname =~ s/^\[a-S\] Inuyasha - (\d+|\d+-\d+) /Inuyasha - $1 [a-S]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
193 $newname =~ s/\[DVD\]\[AHQ\]/[AHQ][DVD]/;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
194 $newname =~ s/\[THORA\]/[Thora]/i;
70
babf62f1bba7 [ren] subdesu desu~
Edho Prima Arief <me@myconan.net>
parents: 41
diff changeset
195 $newname =~ s/\[subdesu\]/[SubDesu]/i;
babf62f1bba7 [ren] subdesu desu~
Edho Prima Arief <me@myconan.net>
parents: 41
diff changeset
196 $newname =~ s/ Zettai Shougeki - Platonic Heart / Zettai Shougeki /i;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
197 $newname =~ s/^ef a tale of memories (prologue|- Opening \d+|- Ending \d+|- \d+) .*THORA/[Thora] ef - a tale of memories - $1 [1080p BD]/i;
81
428c308e609d [ren] A-Channel.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
198 $newname =~ s/ A-Channel / A Channel /i;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
199 $newname =~ s/^mars daybreak /[V-A] Mars Daybreak - /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
200 $newname =~ s/ Shuffle! Episode / Shuffle! /;
84
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
201 $newname =~ s/ A-Channel / A Channel /;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
202 $newname =~ s/ Moshidora \(Moshi Koko Yakyu no Joshi Manager ga Drucker no Management o Yondara\) / Moshidora /;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
203 $newname =~ s/^\[ZA\]\.Saint\.Seiya\.Episode\.(\d+)\.DVDrip\.\[X264\.AAC\(Jpn-Fre\)\.Sub\(Fre-Eng\)\.Chap\]\.mkv$/[D-YFI] Saint Seiya - $1 [DVD].mkv/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
204 $newname =~ s/^HajimeNoIppo.*Round(\d+)-.*\(anime-mx\)/[Anime-MX] Fighting Spirit - $1 /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
205 $newname =~ s/^(\[ACX\])(Final Fantasy Unlimited) - (\d+) .*\[ALI\] /$1 $2 - $3 /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
206 $newname =~ s/^\[a-s\] inuyasha - (\d+-\d+) rs2 /[a-S] Inuyasha - $1 /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
207 $newname =~ s/^(\[Kira-Fansub\]) Uchuu no (Stellvia) /$1 $2 /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
208 $newname =~ s/^(\[RaX\])(Chobits) - (\d+`\d) .*\(x264 aac\) /$1 $2 - $3 /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
209 $newname =~ s/ Maria( |†)Holic / Maria+Holic /i;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
210 $newname =~ s/ C³ / C3 - Cube x Cursed x Curious /i;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
211 $newname =~ s/ C3 Cube x Cursed x Curious / C3 - Cube x Cursed x Curious /i;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
212 $newname =~ s/ Fate( ⁄ | )Zero / Fate-Zero /i;
483
ee4ce7e78d2d Update rules.
edogawaconan <me@myconan.net>
parents: 450
diff changeset
213 $newname =~ s/ Fate( ⁄ | )Kaleid / Fate-Kaleid /i;
ee4ce7e78d2d Update rules.
edogawaconan <me@myconan.net>
parents: 450
diff changeset
214 $newname =~ s/ Rozen Maiden Zurückspulen / Rozen Maiden (2013) /i;
ee4ce7e78d2d Update rules.
edogawaconan <me@myconan.net>
parents: 450
diff changeset
215 $newname =~ s/ Watashi ga Motenai no wa Dou Kangaete ?mo Omaera ga Warui!? / Watashi ga Motenai no wa Dou Kangaete mo Omaera ga Warui! /i;
84
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
216 $newname =~ s/ Pollyanna Episode / Pollyanna /;
287
d55ff9c0158a More ren rules.
Edho Arief <edho@myconan.net>
parents: 284
diff changeset
217 $newname =~ s/ Ef - A Fairy Tale of the Two / ef - A Fairy Tale of the Two /i;
d55ff9c0158a More ren rules.
Edho Arief <edho@myconan.net>
parents: 284
diff changeset
218 $newname =~ s/ Ef - A Fairy Tale of the Two-/ ef - A Fairy Tale of the Two -/i;
483
ee4ce7e78d2d Update rules.
edogawaconan <me@myconan.net>
parents: 450
diff changeset
219 $newname =~ s/ -Momoiro Paradox- / - Momoiro Paradox - /i;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
220 $newname =~ s/^Legend of Galactic Heroes - (\d+) \(([A-F0-9]{8})\) \[Central Anime\]/[Central Anime] Legend of Galactic Heroes - $1 [$2]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
221 $newname =~ s/\[Hnk\]/[HnK]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
222 $newname =~ s/^Inuyasha - (\d+|\d+-\d+)\[167\] - .*(\[DVD\]\[AHQ\])/Inuyasha - $1 $2/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
223 $newname =~ s/^Saint Seiya Hades OVA - (\d+) \[(AonE-SpA|SpA)\]/[$2] Saint Seiya Hades OVA - $1/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
224 $newname =~ s/\[\d+\] Saint Seiya Hades OVA - (\d+)/[SpA] Saint Seiya Hades OVA - $1/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
225 $newname =~ s/ Digimon Tamers - (\d)\./ Digimon Tamers - 0$1./;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
226 $newname =~ s/ Kore wa Zombie Desu ka / Kore wa Zombie desu ka /i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
227 $newname =~ s/ Infinite Stratos - IS - / Infinite Stratos - /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
228 $newname =~ s/Shadow\.Star\.Narutaru\.(\d+)\.\(Dual\.Audio\)\.XVID\.\[AM\]/[AM] Narutaru - $1 /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
229 $newname =~ s/Outlaw Star Remastered E(\d+) .*'/ Outlaw Star - $1 /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
230 $newname =~ s/Ground Defense Force Mao-chan (\d+)\[h\.264-AAC\]\[SSP-Corp\]/[SSP-Corp] Mao-chan - $1 /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
231 $newname =~ s/Koi Kaze (\d+) \[NAG&anime fin\]/[NAG anime-fin] Koi Kaze - $1 /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
232 $newname =~ s/ Toradora - / Toradora! - /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
233 $newname =~ s/ Dragon Crisis / Dragon Crisis! /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
234 $newname =~ s/ Mao Chan / Mao-chan /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
235 $newname =~ s/^Arigatou\.Bleach\.(\d+)\.\[h264\.AAC\]/Bleach - $1 [Arigatou]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
236 $newname =~ s/^Arigatou\.Bleach\.(\d+)\.\[x264\.AAC\]/Bleach - $1 [Arigatou]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
237 $newname =~ s/^Arigatou\.Bleach\.(\d+)\. \[\.AAC\]/Bleach - $1 [Arigatou]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
238 $newname =~ s/^Arigatou\.Bleach\.(\d+)v2\. \[\.AAC\]/Bleach - $1 [Arigatou][v2]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
239 $newname =~ s/ Ep(\d+)v3 \[R2 Video\]/ - $1 [v3]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
240 $newname =~ s/ Brighter Than The Dawning Blue - Crescent Love Ep(\d+) Subbed / Brigher Than The Dawning Blue - Crescent Love - $1 /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
241 $newname =~ s/ Brighter Than The Dawning Blue - Crescent Love - (\d+) Subbed / Brigher Than The Dawning Blue - Crescent Love - $1 /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
242 $newname =~ s/ Character Monologue 0/ Character Monologue /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
243 $newname =~ s/Ookami-san\.to\.Shichinin\.no\.Nakama-tachi\.EP(\d+)\(BD\.1080p\.AAC\)/Ookami-san - $1 [1080p BD]/;
84
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
244 $newname =~ s/Ore.?tachi ni tsubasa wa nai /Oretachi ni Tsubasa wa Nai /i;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
245 $newname =~ s/\[anime-rg . ray=out\]/[anime-rg ray=out]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
246 $newname =~ s/^Arigatou\.Soul\.Eater\.Ep(\d+)\. \[x264\.AAC\]/[Arigatou] Soul Eater - $1 /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
247 $newname =~ s/^\[Doremi\]\.HeartCatch\.PreCure!\.(\d+)\.\[1280x720\]\./[Doremi] HeartCatch PreCure! - $1 [720p]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
248 $newname =~ s/^\[Doremi-CureCom\]\.Suite\.PreCure!\.(\d+)\.\[1280x720\]\./[Doremi-CureCom] Suite PreCure! - $1 [720p]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
249 $newname =~ s/^\[Doremi\]\.Motto\.Ojamajo\.Doremi\.(\d+)\./[Doremi] Motto Ojamajo Doremi - $1 /;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
250 $newname =~ s/^\[Doremi\] *\.Ojamajo\.Doremi\.Dokkaan!\.(\d+)\./[Doremi] Ojamajo Doremi Dokkaan! - $1 /;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
251 $newname =~ s/^\[HorribleSubs\] Lilpri /[HorribleSubs] Hime Chen! Otogi Chikku Idol Lilpri - /i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
252 $newname =~ s/^\[Jumonji-Giri\] \[AnY\]/[Jumonji-Giri]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
253 $newname =~ s/\[(BWS|PM)\]Pocket Monsters Best Wishes (\d+) .+\[H264 /[$1] Pokemon Best Wishes - $2 [/;
373
e4e89f69453a Added rules.
Edho Arief <edho@myconan.net>
parents: 363
diff changeset
254 $newname =~ s/\[(BWS|PM)\] *Pocket Monsters Best Wishes Season (- )?2 (\d+) .+\ \[/[$1] Pokemon Best Wishes 2 - $3 [/;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
255 $newname =~ s/ Ookiku Furikabutte - The Summer Tournament Chapter / Ookiku Furikabutte S2 /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
256 $newname =~ s/Les Miserables Shoujo Cosette /Les Miserables /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
257 $newname =~ s/\[Elysium\]Baka\.to\.Test\.to\.Shoukanjuu\.(EP)?/[Elysium] Baka to Test to Shokanju/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
258 $newname =~ s/\[Elysium\] Baka to Test to Shokanju/[Elysium] Baka to Test to Shokanju /;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
259 $newname =~ s/ Baka to Test to Shou?kanjuu? / Baka to Test to Shokanju /;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
260 $newname =~ s/\(BD\.1080p\.FLAC\)/[1080p BD]/;
583
0d928126fcf6 Update renames
nanaya <me@myconan.net>
parents: 483
diff changeset
261 $newname =~ s/\(1920x1080\) \[BD\]/[1080p BD]/i;
0d928126fcf6 Update renames
nanaya <me@myconan.net>
parents: 483
diff changeset
262 $newname =~ s/\[1080p\]\[BD\]/[1080p BD]/i;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
263 $newname =~ s/Saizen & SD/Saizen-SD/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
264 $newname =~ s/Bleach - (\d{2}) /Bleach - 0$1 /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
265 $newname =~ s/Omamori Himari - ED \(Clean\) - 0(\d) / Omamori Himari - Ending $1 (Clean) /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
266 $newname =~ s/Omamori Himari - Opening \(Clean\) - (\d{2}) / Omamori Himari - Opening $1 (Clean) /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
267 $newname =~ s/\(B-A\)Great Teacher Onizuka - Lesson /[B-A] Great Teacher Onizuka - /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
268 $newname =~ s/Xam'd Lost Memories - (\d+) .* \[1080p,BluRay,,DTS\] - THORA\.mkv/[THORA] Xam'd Lost Memories - $1 [1080p BD].mkv/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
269 $newname =~ s/\(G P\) Escaflowne \(Remastered\)/[G_P] Escaflowne/;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
270 $newname =~ s/^\(G P\) /[G_P] /;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
271 $newname =~ s/SD&Taka/SD-Taka/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
272 $newname =~ s/Seikai no Senki/Banner of the Stars/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
273 $newname =~ s/Onii-chan no Koto \.\.\. /Onii-chan no Koto Nanka Zenzen Suki Janain Dakara ne /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
274 $newname =~ s/Onii-chan no Koto Nanka Zenzen Suki Janain Dakara ne /Onii-chan no Koto Nanka Zenzen Suki Janain Dakara ne!! /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
275 $newname =~ s/^Strawberry 100% - (\d+\.?\d*) \[ReDone-MDC\]/[ReDone-MDC] Strawberry 100% - $1 /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
276 $newname =~ s/^Strawberry 100% - OVA 0(\d+\.?\d*) \[ReDone-MDC\]/[ReDone-MDC] Strawberry 100% OVA - $1 /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
277 $newname =~ s/Dragonball Kai/Dragon Ball Kai/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
278 $newname =~ s/Natsu no Arashi - Akinai-chuu/Summer Storm! - Open for Business/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
279 $newname =~ s/Natsu no Arashi/Summer Storm!/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
280 $newname =~ s/Naruto (\d+-\d+) /Naruto - $1 /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
281 $newname =~ s/Lupin III Series 1 - (\d+) - .+ \[neo1024\]/[neo1024] Lupin III - $1 /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
282 $newname =~ s/Mitsudomoe Picture Drama - 0/Mitsudomoe Picture Drama - /;
137
983beb13c736 Even more rules.
Edho Prima Arief <edho@myconan.net>
parents: 114
diff changeset
283 $newname =~ s/^(Fullmetal Alchemist Brotherhood .*|Star Driver .*)(\[AtsA\])/$2 $1 /i;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
284 $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]/;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
285 $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]/;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
286 $newname =~ s/Battle\.Programmer\.Shirase\./Battle Programmer Shirase /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
287 $newname =~ s/Battle Programmer Shirase - 0/Battle Programmer Shirase - /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
288 $newname =~ s/ Kuragehime / Princess Jellyfish /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
289 $newname =~ s/^\[OZC\]Code Geass Lelouch of the Rebellion R2 E(\d+) .*/[OZC] Code Geass R2 - $1.mkv/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
290 $newname =~ s/ Panty and Stocking with Garterbelt / Panty & Stocking with Garterbelt /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
291 $newname =~ s/ Spice and Wolf S2 / Spice and Wolf II /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
292 $newname =~ s/\[A-E & Saizen\]/[A-E Saizen]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
293 $newname =~ s/\[Flomp\]\[SD\]/[Flomp]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
294 $newname =~ s/\[Jumonji-Giri\]\[Ishin\]/[Jumonji-Giri]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
295 $newname =~ s/\[Jumonji-Giri\]\[F-B&A-E\]/[Jumonji-Giri]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
296 $newname =~ s/\[Jumonji-Giri\] \[Lunar\]/[Jumonji-Giri]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
297 $newname =~ s/\[A-Kraze & Diffusion\]/[A-Kraze Diffusion]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
298 $newname =~ s/ The Story Of Saiunkoku / Saiunkoku Monogatari /i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
299 $newname =~ s/Code Geass Lelouch of the Rebellion Episode (\d+) .*(\.mkv)$/ Code Geass - $1$2/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
300 $newname =~ s/ To LOVE-Ru / To Love-Ru /i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
301 $newname =~ s/ Inuyasha Kanketsuhen / Inuyasha Kanketsu-hen /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
302 $newname =~ s/ AIR / Air /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
303 $newname =~ s/ Sister Princess Re Pure / Sister Princess Repure /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
304 $newname =~ s/C:\\Users\\Gad\\Desktop\\yankee-megane\\Release\\//;
114
eb4dddd48f29 Crapload new rules.
Edho Prima Arief <edho@myconan.net>
parents: 87
diff changeset
305 $newname =~ s/ Ep(\d+)/ $1/i;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
306 $newname =~ s/\(END\)/[End]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
307 $newname =~ s/\(BD 1280x720 h264 JP.EN AAC\)/[720p BD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
308 $newname =~ s/\[Final\]//i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
309 $newname =~ s/DB&L-E/DB L-E/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
310 $newname =~ s/IY-F&Oki/IY-F Oki/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
311 $newname =~ s/L-E&AonE/AonE L-E/;
4
94ee419ad047 Added bin-ec - a collection of scripts.
Edho Prima Arief <me@myconan.net>
parents:
diff changeset
312 $newname =~ s/^(Detective Conan - [[:digit:]]+-?[[:digit:]]*) (\[DCTP[^]]*\])(.+)$/$2 $1 $3/;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
313 $newname =~ s/^(Detective Conan - [[:digit:]]+-?[[:digit:]]*) (\[AZFS[^]]*\])(.+)$/$2 $1 $3/;
443
8d96292f6c0b Even more rules.
Edho Arief <edho@myconan.net>
parents: 442
diff changeset
314 $newname =~ s/^(Detective Conan - \d+) - .* (\[M-L\])/$1 $2/;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
315 $newname =~ s/^\[Derp\] Legend of the Legendary Heroes /[Derp] The Legend of the Legendary Heroes /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
316 $newname =~ s/ Sengoku BASARA Two / Sengoku Basara Two /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
317 $newname =~ s/ Asobi ni Ikuyo! / Asobi ni Iku Yo! /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
318 $newname =~ s/ Shinrei Tantei Yakumo / Psychic Detective Yakumo /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
319 $newname =~ s/ Ikkitousen Xtreme Xecutor OVA - 0/ Ikkitousen Xtreme Xecutor OVA - /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
320 $newname =~ s/ Megane na Kanojo OVA - 0/ Megane na Kanojo OVA - /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
321 $newname =~ s/\.Strange\.Dawn\.(\d+)\./ Strange Dawn - $1 /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
322 $newname =~ s/ (Tegami Bachi|Letter Bee) REVERSE / Letter Bee Reverse /i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
323 $newname =~ s/ Sora No Otoshimono / Sora no Otoshimono /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
324 $newname =~ s/ Kidou Tenshi Angelic Layer (ep)?/ Angelic Layer /i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
325 $newname =~ s/ Sora No Otoshimono - Forte / Sora no Otoshimono Forte /i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
326 $newname =~ s/ Shinryaku! Ika Musume / Squid Girl /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
327 #$newname =~ s/ Squid Girl / Shinryaku! Ika Musume /;
11
8a0391d8e8d0 More ren evilry
Edho Prima Arief <me@myconan.net>
parents: 4
diff changeset
328 $newname =~ s/ Seikimatsu Occult Gakuin / Occult Academy /;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
329 $newname =~ s/ Arakawa Under the Bridge ×2 / Arakawa Under the Bridge x2 /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
330 $newname =~ s/ K-ON!! S2 / K-ON!! /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
331 $newname =~ s/ Ookami-san To Shichinin No Nakama-tachi / Ookami-san /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
332 $newname =~ s/ K-On!! / K-ON!! /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
333 $newname =~ s/ Ore No Imouto / Ore no Imouto /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
334 $newname =~ s/ A Certain Magical Index II / Toaru Majutsu no Index II /i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
335 $newname =~ s/ TV Broadcast \[720p/ [LQ 720p/;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
336 $newname =~ s/ ED(\d+[a-z]*)/ - Ending $1 /i;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
337 $newname =~ s/ OP(\d+[a-z]*)/ - Opening $1 /i;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
338 $newname =~ s/ ED / - Ending /;
114
eb4dddd48f29 Crapload new rules.
Edho Prima Arief <edho@myconan.net>
parents: 87
diff changeset
339 $newname =~ s/ Clean (Opening|Ending) v2/ - $1 (Clean) [v2]/i;
137
983beb13c736 Even more rules.
Edho Prima Arief <edho@myconan.net>
parents: 114
diff changeset
340 $newname =~ s/ Creditless (Opening|Ending) (\d+) / - $1 $2 (Clean) /i;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
341 $newname =~ s/ Ep(\d+) Creditless Ending / - Ending $1 (Clean) /i;
450
27c5847dfe36 More rules.
Edho Arief <edho@myconan.net>
parents: 445
diff changeset
342 $newname =~ s/ NC-?ED *(\d+) / - Ending $1 (Clean) /i;
27c5847dfe36 More rules.
Edho Arief <edho@myconan.net>
parents: 445
diff changeset
343 $newname =~ s/ NC-?OP *(\d+) / - Opening $1 (Clean) /i;
284
5ef99c47e636 More rules.
Edho Arief <edho@myconan.net>
parents: 259
diff changeset
344 $newname =~ s/ (NC-?ED|Ending Clean) / - Ending (Clean) /i;
5ef99c47e636 More rules.
Edho Arief <edho@myconan.net>
parents: 259
diff changeset
345 $newname =~ s/ (NC-?OP|Opening Clean) / - Opening (Clean)/i;
11
8a0391d8e8d0 More ren evilry
Edho Prima Arief <me@myconan.net>
parents: 4
diff changeset
346 $newname =~ s/ OP / - Opening /;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
347 $newname =~ s/ (\d+-\d+) / - $1 /;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
348 $newname =~ s/ - - / - /g;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
349 $newname =~ s/ Ep / /ig;
84
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
350 ##SLICED BREAD
284
5ef99c47e636 More rules.
Edho Arief <edho@myconan.net>
parents: 259
diff changeset
351 #v2
114
eb4dddd48f29 Crapload new rules.
Edho Prima Arief <edho@myconan.net>
parents: 87
diff changeset
352 $newname =~ s/(\(|\[) *(10bit-v2) *(\)|\])/[v2]/i;
287
d55ff9c0158a More ren rules.
Edho Arief <edho@myconan.net>
parents: 284
diff changeset
353 #dvd v2
d55ff9c0158a More ren rules.
Edho Arief <edho@myconan.net>
parents: 284
diff changeset
354 $newname =~ s/ \[DVD\] v2/ [v2 DVD]/i;
284
5ef99c47e636 More rules.
Edho Arief <edho@myconan.net>
parents: 259
diff changeset
355 #nothing
420
4b12d4c1be51 [bin/ren] More rules.
Edho Arief <edho@myconan.net>
parents: 409
diff changeset
356 $newname =~ s/(\(|\[) *(AVC|480p-AC3|10bit-&MP3|h264-10bit-&MP3|divx5\.2|H264 704x400|640x480 DivX511 120fps mp3|640x480 DivX511 mp3|h\.264-Hi10P|720x480|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;
284
5ef99c47e636 More rules.
Edho Arief <edho@myconan.net>
parents: 259
diff changeset
357 #dvd
420
4b12d4c1be51 [bin/ren] More rules.
Edho Arief <edho@myconan.net>
parents: 409
diff changeset
358 $newname =~ s/(\(|\[) *(DVDRip Xvid 864x480 AC3|DVDRip 864x480|DVDRip 640x480|DVDRip h264 640x480 AAC|DVD, 480p|DVD\]\[1024x576 -|DVD H264 Hi10P 640x480|DVD Hi10P 640x480|DVD-480p-AAC|DVD x264 10-bit AC3|DVD 10bit) *(\)|\])/[DVD]/i;
284
5ef99c47e636 More rules.
Edho Arief <edho@myconan.net>
parents: 259
diff changeset
359 #dvd again
450
27c5847dfe36 More rules.
Edho Arief <edho@myconan.net>
parents: 445
diff changeset
360 $newname =~ s/(\(|\[) *(DVD 712x480|R2 DVD\.H264\.AC3|DVD H264 720x480|DVD 720x480 x264 FLAC|R1DVD 720x480 x264 AC-3|DVD 712x480 AC-3|DVD 720x480 AC-3|R\d DVD\.H264\.AC3|DVD 1024x576 x264 FLAC|DVD H264 640x480|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;
284
5ef99c47e636 More rules.
Edho Arief <edho@myconan.net>
parents: 259
diff changeset
361 #1080p BD
421
6e682757a5f7 Even more rules.
Edho Arief <edho@myconan.net>
parents: 420
diff changeset
362 $newname =~ s/(\(|\[) *(BD\]\[1080p-AAC|1080p BD|1080p -Hi10P|1080p x264-Hi10P FLAC|BD\]\[10bit-1080p-AAC|BDRip 1080p x264 FLAC|BD Hi10P 1920x1080|BD Hi10P 1920x1080 H264 FLAC|BD 1920x1080 x264 Hi10P FLAC|BD 1920x1080 Hi10P|1920x1080 BD AAC|BD\]\[h264-1080p FLAC|BD-h264-10bit-1080p|BD\]\[1080p-FLAC|BD 1080|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;
284
5ef99c47e636 More rules.
Edho Arief <edho@myconan.net>
parents: 259
diff changeset
363 #720p
483
ee4ce7e78d2d Update rules.
edogawaconan <me@myconan.net>
parents: 450
diff changeset
364 $newname =~ s/(\(|\[) *(720p 10bit|10-bit 720p( AAC)?|720|Hi10P 720p-FLAC|1280x720 10bit|1280x720 10bit h264 AAC|1280x720 8bit|1280x720 x264-Hi10P AAC|AT-X Hi10P 1280x720 H264|AT-X Hi10P 1280x720|1280x720 Hi10p|AT-X Hi10P 1280x720|1280x720 Hi10p AAC|AT-X 1280x720 H264|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;
284
5ef99c47e636 More rules.
Edho Arief <edho@myconan.net>
parents: 259
diff changeset
365 #720p BD
483
ee4ce7e78d2d Update rules.
edogawaconan <me@myconan.net>
parents: 450
diff changeset
366 $newname =~ s/(\(|\[) *(BD 720p AAC|BD 720p|BD, 720p|BD 1280x720|BDRip 1280x720 10bit|BDRip 720p H\.264 AACx2|BDRip 720p H\.264 AAC|BDRip 720i H\.264 AAC|BDRip 720i|BD 10-bit 1280x720 x264 AAC|BD\]\[720p-|BD, 720p, 10bit, AAC|BDRip 720p x264 FLAC|BDRip 720p|BD 720p DA|Blu-Ray 960x720 Dual Audio FLAC|BD, 720p|BD\]\[h264-720p\]\[FLAC|BD Hi10P 1280x720|BD, 720p, 10bit,|BD, 720, 10bit, AAC|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;
284
5ef99c47e636 More rules.
Edho Arief <edho@myconan.net>
parents: 259
diff changeset
367 #BD
5ef99c47e636 More rules.
Edho Arief <edho@myconan.net>
parents: 259
diff changeset
368 $newname =~ s/(\(|\[) *(Blu-Ray|BD 540p) *(\)|\])/[BD]/i;
5ef99c47e636 More rules.
Edho Arief <edho@myconan.net>
parents: 259
diff changeset
369 #576p
409
fcb116fc12f9 [ren] More rules.
Edho Arief <edho@myconan.net>
parents: 399
diff changeset
370 $newname =~ s/(\(|\[) *(576p hi10|1024x576|H264 1024x576) *(\)|\])/[576p]/i;
284
5ef99c47e636 More rules.
Edho Arief <edho@myconan.net>
parents: 259
diff changeset
371 #1080p
420
4b12d4c1be51 [bin/ren] More rules.
Edho Arief <edho@myconan.net>
parents: 409
diff changeset
372 $newname =~ s/(\(|\[) *(1080p Hi10p DTS|1920x1080) *(\)|\])/[1080p]/i;
84
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
373 ##SLICED BREAD pt.2
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
374 $newname =~ s/(\d+)v(\d+)/$1 [v$2]/i;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
375 $newname =~ s/\[BD\]\[1920x1080 H264-Flac\]/[1080p BD]/i;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
376 $newname =~ s/\[BD\]\[720p-AAC\]/[720p BD]/i;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
377 $newname =~ s/\.DVD/[DVD]/;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
378 #$newname =~ s/ ~(.+)~ / - $1 /;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
379 $newname =~ s/v2 \(BD-1080p\) / [v2 1080p BD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
380 $newname =~ s/v2 \(BD H264 1280x960 24fps AAC\) / [v2 960p BD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
381 $newname =~ s/BD 1280x720 FLAC\]/ 720p BD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
382 $newname =~ s/\[HD\]\.mp4/.mp4/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
383 $newname =~ s/\[\.?AC3\]//i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
384 $newname =~ s/\[720p H264 AAC5\.1\]/[720p]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
385 $newname =~ s/\[BD 720p\]/[720p BD]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
386 $newname =~ s/ \(BD H264 1280x960 24fps AAC\) / [960p BD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
387 $newname =~ s/ \(h\.264\) //i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
388 $newname =~ s/\(xvid-mp3\)//i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
389 $newname =~ s/\(BD 1920x1080 *\)/[1080p BD]/i;
84
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
390 $newname =~ s/\[BD 1080p\]/[1080p BD]/i;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
391 $newname =~ s/v3 \(BD-1080p\) / [v3 1080p BD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
392 $newname =~ s/v0 \[720p\]/ [v0 720p]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
393 $newname =~ s/v0 \[/ [v0 /i;
84
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
394 $newname =~ s/\[BD 1920x1080\]/[1080p BD]/;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
395 $newname =~ s/\[1080p - Bluray\]/[1080p BD]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
396 $newname =~ s/\[Bluray - 1080p\]/[1080p BD]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
397 $newname =~ s/\[BD 1080p AAC\]/[1080p BD]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
398 $newname =~ s/ \(BD-1080p\) / [1080p BD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
399 $newname =~ s/ \(720p, BD\) / [720p BD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
400 $newname =~ s/ \(BD 1280x960 24fps 5\.1ch\) / [960p BD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
401 $newname =~ s/ \(Bluray, 720p, AAC\) / [720p BD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
402 $newname =~ s/ \(720p,BluRay\) / [720p BD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
403 $newname =~ s/ \(BD, 720p, FLAC\) / [720p BD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
404 $newname =~ s/\[END\]/[End]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
405 $newname =~ s/\[BD\]\[720p FLAC\]/[720p BD]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
406 $newname =~ s/\[BD\]\[720p\]/[720p BD]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
407 $newname =~ s/\[BD\]\[1080p\]/[1080p BD]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
408 $newname =~ s/\[h264-480p AAC\]//;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
409 $newname =~ s/\[h.264-480p\]//i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
410 $newname =~ s/ v3 \[720p\]/[v3 720p]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
411 $newname =~ s/1280x720 H264 OGG/720p/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
412 $newname =~ s/ \[BD 1080p FLAC\]/ [1080p BD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
413 $newname =~ s/ \[720p BD FLAC\]/ [720p BD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
414 $newname =~ s/ \[720p Blu-ray AAC\]/ [720p BD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
415 $newname =~ s/ \[BD\]\[h264-1080p FLAC\]/ [1080p BD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
416 $newname =~ s/ \(1920x1080\) \[BD\]/ [1080p BD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
417 $newname =~ s/ \(960x720 Blu-Ray FLAC\) / [720p BD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
418 $newname =~ s/ \(1920x1080 Blu-Ray FLAC\) / [1080p BD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
419 $newname =~ s/ \(1280x720 Blu-Ray FLAC\) / [720p BD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
420 $newname =~ s/ \(1280x720 h264 BD FLAC\) / [720p BD]/i;
84
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
421 $newname =~ s/\((704|720)x480 DVD (AC3|AAC)\)/ [DVD]/i;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
422 $newname =~ s/ \(960x720\) \[BD\]/ [720p BD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
423 $newname =~ s/\(704x396\)//;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
424 $newname =~ s/\(1280x720\)/ [720p]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
425 $newname =~ s/\(1920x1080\)/ [1080p]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
426 $newname =~ s/\(1024x576\)/ [576p]/i;
85
14435bd3f01c Various rules.
Edho Prima Arief <me@myconan.net>
parents: 84
diff changeset
427 $newname =~ s/\[v(\d+) 1024x576\]/[v$1 576p]/i;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
428 $newname =~ s/\(1280x720 h264\)/ [720p]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
429 $newname =~ s/\(1280x720 ?(h264|x264)?( aac)?\)/ [720p]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
430 $newname =~ s/\(720p\)/[720p]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
431 $newname =~ s/\(1080p\)/[1080p]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
432 $newname =~ s/\(1080p,BD\)/[1080p BD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
433 $newname =~ s/\(BD,1080p\)/[1080p BD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
434 $newname =~ s/\((BD 720p)\)/ [720p BD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
435 $newname =~ s/\(DVD\)/ [DVD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
436 $newname =~ s/\[h264-480p\]//i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
437 $newname =~ s/\[H264\]//i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
438 $newname =~ s/\[DVD\]\[v2\]/[v2 DVD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
439 $newname =~ s/xvid//i;
84
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
440 $newname =~ s/\[(AC3|AAC|H264|X264)\]//i;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
441 $newname =~ s/\[H264&MP3\]//i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
442 $newname =~ s/\[H264-AAC\]//i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
443 $newname =~ s/\+AAC//i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
444 $newname =~ s/\[720x480 H264-Vorbis\]//i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
445 $newname =~ s/\[BD\]\[1280x720 H264-Flac\]/[720p BD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
446 $newname =~ s/\[h264 Vorbis\]//i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
447 $newname =~ s/\[640x480 h\.264 AAC\]//i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
448 $newname =~ s/\[720x480 AR h\.264 AAC\]//i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
449 $newname =~ s/\[DVD H264 640x476\]/[DVD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
450 $newname =~ s/\[720p\]/[720p]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
451 $newname =~ s/\[720p\]\[BD\]/[720p BD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
452 $newname =~ s/\[H264 1280x720\]/[720p]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
453 $newname =~ s/\[H264 1280x720 OGG\]/[720p]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
454 $newname =~ s/\[1280x720\]/[720p]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
455 $newname =~ s/\[1280x720 BD\]/[720p BD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
456 $newname =~ s/\[h264-720p\]/[720p]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
457 $newname =~ s/\[h264-1080p FLAC\]/[1080p]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
458 $newname =~ s/\[BD\]\[h264-1080p AC3\]/[1080p BD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
459 $newname =~ s/\[-/[/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
460 $newname =~ s/ \(1280x720 x264 AAC\)/ [720p]/i;
84
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
461 $newname =~ s/ *\( *\d+x(1080|960|720|576) *Blu-Ray *(FLAC|) *\) */[$1p BD]/i;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
462 $newname =~ s/\[720p\]\[v2\]/[v2 720p]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
463 $newname =~ s/\[480p\]//i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
464 $newname =~ s/\[v2\]\[720p\]/[v2 720p]/i;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
465 $newname =~ s/\[(v\d)\]\[(\d+p)(| BD)\]/[$1 $2$3]/i;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
466 $newname =~ s/\[H264 - AAC\]//i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
467 $newname =~ s/\[H264 1280x720 AAC\] /[720p]/i;
84
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
468 $newname =~ s/\[DVD 480p\]/[DVD]/i;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
469 $newname =~ s/\[704x480 DVD\]/[DVD]/i;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
470 $newname =~ s/\[720p\]\[End\]/[End 720p]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
471 $newname =~ s/ R2 DVD\(H264\.AC3\)/ [DVD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
472 $newname =~ s/ - Ep / - /i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
473 $newname =~ s/(h|x)\.?264//i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
474 $newname =~ s/\[BD\]\[1080p-?\]/[1080p BD]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
475 $newname =~ s/AAC5\.1//;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
476 $newname =~ s/FLAC//;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
477 $newname =~ s/ aac//i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
478 $newname =~ s/ ac3//i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
479 $newname =~ s/\.DVD/ [DVD]/i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
480 $newname =~ s/ DVD / [DVD] /i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
481 $newname =~ s/\(DVD ?\)/ [DVD] /i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
482 $newname =~ s/ Ep(\d+) / - $1 /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
483 $newname =~ s/ Ep(\d+)v2 / - $1 [v2]/;
583
0d928126fcf6 Update renames
nanaya <me@myconan.net>
parents: 483
diff changeset
484 #$newname =~ s/ (\d+) / - $1 /;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
485 $newname =~ s/ (\d+)v(2|3) / $1 [v${2}]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
486 $newname =~ s/\[720x480 AR FLAC\]//i;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
487 $newname =~ s/\[DVD 640x480\]/[DVD]/;
84
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
488 $newname =~ s/\[BD 1280x720\]/[720p BD]/i;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
489 $newname =~ s/\[v(\d+) (1280x)(720)\]/[v$1 $3p]/i;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
490 $newname =~ s/ Episode (- )+(\d+) / - $2 /;
84
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
491 $newname =~ s/ - (\d+) *v(\d) / - $1 [v$2]/i;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
492 $newname =~ s/\[V(\d)\]/[v$1]/;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
493 #DANGEROUS CLEANUPS
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
494 $newname =~ s/ \[v(2|3)\]\[(.+)\]\[([0-9A-Fa-f]{8})\]/ [v$1 $2][$3]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
495 $newname =~ s/\]/] /g;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
496 $newname =~ s/\[/ [/g;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
497 $newname =~ s/\] +\[/][/g;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
498 $newname =~ s/(\[|\() +/$1/g;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
499 $newname =~ s/ +(\]|\))/$1/g;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
500 $newname =~ s/( -)+ / - /g;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
501 $newname =~ s/(\[|\()([0-9a-fA-F]{8})(\]|\))/[\U$2]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
502 $newname =~ s/ +(\.\w{3})$/$1/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
503 $newname =~ s/\[\]//g;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
504 $newname =~ s/\(\)//g;
583
0d928126fcf6 Update renames
nanaya <me@myconan.net>
parents: 483
diff changeset
505 #$newname =~ s/ - (\d+) - (\d+) / $1 - $2 /;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
506 #EXCEPTIONS
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
507 $newname =~ s/^\[DB&L-E\]/[DB L-E]/;
11
8a0391d8e8d0 More ren evilry
Edho Prima Arief <me@myconan.net>
parents: 4
diff changeset
508 $newname =~ s/ VS Knight Lamune & - 40 fire / VS Knight Lamune & 40 fire /;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
509 $newname =~ s/ RAINBOW / Rainbow /;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
510 $newname =~ s/ (Infinite Ryvius - Ryvius Illusion|Infinite Ryvius - Ryvius VJ Mix|Kara no Kyoukai - Cinema Intro) - / $1 /;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
511 $newname =~ s/ Golgo - 13 / Golgo 13 /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
512 $newname =~ s/ Strike Witches - 2 / Strike Witches 2 - /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
513 $newname =~ s/ 07-GHOST / 07-Ghost /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
514 $newname =~ s/ K-ON!! B-Side Theater - Uraon!! - / K-ON!! B-Side Theater - Uraon!! /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
515 $newname =~ s/ Captain Tsubasa Road to - 2002 / Captain Tsubasa Road to 2002 /;
84
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
516 $newname =~ s/ Ultraviolet Code - 044 - / Ultraviolet Code 044 - /;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
517 $newname =~ s/ Persona - 3 Picture Drama - She Goes For A Walk / Persona 3 Picture Drama - She Goes For A Walk - /;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
518 $newname =~ s/ SP0/ - Special /;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
519 $newname =~ s/ SP(\d+) / - Special $1 /;
382
Edho Arief <edho@myconan.net>
parents: 373
diff changeset
520 $newname =~ s/ (Menu|Special) - / - $1 /;
137
983beb13c736 Even more rules.
Edho Prima Arief <edho@myconan.net>
parents: 114
diff changeset
521 $newname =~ s/ Animated Commentary - / - Animated Commentary /;
983beb13c736 Even more rules.
Edho Prima Arief <edho@myconan.net>
parents: 114
diff changeset
522 $newname =~ s/ Fullmetal Alchemist Brotherhood (- |)Skit - / Fullmetal Alchemist Brotherhood - Skit /i;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
523 $newname =~ s/ - Picture Drama - / - Picture Drama /;
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
524 $newname =~ s/ (Mayoi Neko Overrun! - Theater) - / $1 /;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
525 $newname =~ s/ Opening - / Opening /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
526 $newname =~ s/ Ending - / Ending /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
527 $newname =~ s/ Hidamari Sketch Hoshimittsu - Special / Hidamari Sketch Hoshimittsu Special - /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
528 $newname =~ s/ Spice and Wolf S2 - BD Menu - 0/ Spice and Wolf S2 - BD Menu /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
529 $newname =~ s/ Canvas - 2 - / Canvas 2 - /;
483
ee4ce7e78d2d Update rules.
edogawaconan <me@myconan.net>
parents: 450
diff changeset
530 $newname =~ s/ Devil Survivor - 2 The Animation - / Devil Survivor 2 The Animation - /;
ee4ce7e78d2d Update rules.
edogawaconan <me@myconan.net>
parents: 450
diff changeset
531 $newname =~ s/ Hentai Ouji to Warawanai Neko\. - / Hentai Ouji to Warawanai Neko - /i;
ee4ce7e78d2d Update rules.
edogawaconan <me@myconan.net>
parents: 450
diff changeset
532 $newname =~ s/\] *Photokano *- /] Photo Kano - /i;
131
2c94b1e14592 Even more rules.
Edho Prima Arief <edho@myconan.net>
parents: 121
diff changeset
533 $newname =~ s/ To Heart - 2 / To Heart 2 /;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
534 $newname =~ s/ Tsubasa Chronicles - 2 (\d{2}) / Tsubasa Chronicles 2 - $1 /;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
535 $newname =~ s/ Mitsudomoe - 2 - / Mitsudomoe 2 - /;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
536 $newname =~ s/ Morita-san wa Mukuchi - 2 / Morita-san wa Mukuchi 2 /i;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
537 $newname =~ s/ Eyeshield - 21 - / Eyeshield 21 - /;
84
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
538 $newname =~ s/ - opening - (\d+) / - Opening $1 /i;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
539 $newname =~ s/ - ending - (\d+) / - Ending $1 /i;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
540 $newname =~ s/ Eyeshield 21 - (\d{2}) / Eyeshield 21 - 0$1 /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
541 $newname =~ s/ Eyeshield 21 - (\d{2})-(\d{2}) / Eyeshield 21 - 0$1-0$2 /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
542 $newname =~ s/ - 2010 Young Animator / 2010 Young Animator /;
84
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
543 $newname =~ s/ Mahoujin Guruguru - 2 - Doki Doki Densetsu - / Mahoujin Guruguru 2 - Doki Doki Densetsu - /;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
544 $newname =~ s/ The World God Only Knows - 2 - / The World God Only Knows 2 - /;
34f193d5e7cd Added some rules.
Edho Prima Arief <me@myconan.net>
parents: 70
diff changeset
545 $newname =~ s/ Legend of Galactic Heroes Gaiden - 2 - / Legend of Galactic Heroes Gaiden 2 - /;
363
4635b9d2de68 Update to latest ren (more rules).
Edho Arief <edho@myconan.net>
parents: 349
diff changeset
546 $newname =~ s/ Yes!* Pretty Cure - 5 Go Go! / Yes! Pretty Cure 5 Go Go! - /i;
87
c884853b25d1 Latestest ren.
Genshiken Admin <admin@genshiken-itb.org>
parents: 86
diff changeset
547 $newname =~ s/ Kara no Kyoukai - (\d+) / Kara no Kyoukai - Chapter $1/;
295
ce17ed77a7fa more rules~
Edho Arief <edho@myconan.net>
parents: 293
diff changeset
548 $newname =~ s/ Persona - 4 The Animation / Persona 4 - /;
ce17ed77a7fa more rules~
Edho Arief <edho@myconan.net>
parents: 293
diff changeset
549 $newname =~ s/ Persona - 4 / Persona 4 - /;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
550 $newname =~ s/\[G P\]/[G_P]/i;
291
9fbebccde4e3 More rules!
Edho Arief <edho@myconan.net>
parents: 287
diff changeset
551 $newname =~ s/\[-'\]/[-__-']/;
9fbebccde4e3 More rules!
Edho Arief <edho@myconan.net>
parents: 287
diff changeset
552 $newname =~ s/\['\]/[-__-']/;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
553 #SAFE CLEANUPS
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
554 $newname =~ s/ +/ /g;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
555 $newname =~ s/^ +//;
259
1e214a53237d Even more rules.
Edho Arief <edho@myconan.net>
parents: 248
diff changeset
556 $newname =~ s/ *(\.[^ ]+$)/$1/;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
557 $newname =~ s/(- )+/- /;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
558 $newname =~ s/^\[N - F\]/[N-F]/;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
559 $newname =~ s/^\[K-F & AKUPX\]/[K-F AKUPX]/;
348
477443d4e357 [bin/ren] Even more rules.
Edho Arief <edho@myconan.net>
parents: 346
diff changeset
560 $newname =~ s/^\[([&!\.\s\w\- ]+)\] (Love Get Chu|Air Master|Crystal Blaze|Fairy Tail|Yawara|Ultraviolet Code 044|Gintama|Prince of Tennis|Lupin III S2|Kyou Kara Maou|Bleach|Naruto|One Piece|Detective Conan) - (Ending \d+|Opening \d+|Special \d+|\d+|\d+-\d+) /$2 - $3 [$1]/;
583
0d928126fcf6 Update renames
nanaya <me@myconan.net>
parents: 483
diff changeset
561 $newname =~ s/ (Senran Kagura|Aquarion EVOL|Amagami SS Plus) - (Opening|Ending) 0/ $1 - $2 /;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
562 $newname =~ s/^Naruto - (\d{2}) /Naruto - 0$1 /;
119
6a7305364793 Even more rules.
Edho Prima Arief <edho@myconan.net>
parents: 114
diff changeset
563 $newname =~ s/^Fairy Tail - (\d{2}) /Fairy Tail - 0$1 /;
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
564 $newname =~ s/^Naruto - (\d{2})-(\d{2}) /Naruto - 0$1-0$2 /;
284
5ef99c47e636 More rules.
Edho Arief <edho@myconan.net>
parents: 259
diff changeset
565 $newname =~ s/\[(v\d+)\]\[(DVD)\]/[$1 $2]/i;
134
cf328bd06078 Special check for windows. What the hell.
edogawaconan <edho@myconan.net>
parents: 131
diff changeset
566 if ($^O eq "MSWin32") { $newname =~ s/ *\\ */\\/g; }
36
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
567 print(qq($_: $newname already exists, skipping\n)) and next() if -e $newname and $_ ne $newname;
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
568 if ($_ eq $newname) {
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
569 print("$_: no need to rename, skipping\n");
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
570 } else {
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
571 if($skip==1) { print("Result: $_ --> $newname\n"); }
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
572 else {
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
573 if(rename($_, $newname)) { print("$_ -> $newname\n"); }
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
574 else { print("$_: rename failed\n"); }
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
575 }
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
576 }
3bcef95c376c Revamped ren!
Edho Prima Arief <me@myconan.net>
parents: 19
diff changeset
577 next();
4
94ee419ad047 Added bin-ec - a collection of scripts.
Edho Prima Arief <me@myconan.net>
parents:
diff changeset
578 }
94ee419ad047 Added bin-ec - a collection of scripts.
Edho Prima Arief <me@myconan.net>
parents:
diff changeset
579
94ee419ad047 Added bin-ec - a collection of scripts.
Edho Prima Arief <me@myconan.net>
parents:
diff changeset
580 exit(0);