Mercurial > ec-dotfiles
comparison bin/ren @ 143:719b0687d974
Merge.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Thu, 03 Nov 2011 10:00:40 +0700 |
parents | f963d52c031a |
children | fbb03c862b63 |
comparison
equal
deleted
inserted
replaced
133:fcef92b3f37f | 143:719b0687d974 |
---|---|
11 my $newname = $_; | 11 my $newname = $_; |
12 #START HERE | 12 #START HERE |
13 $newname =~ s/_/ /g; | 13 $newname =~ s/_/ /g; |
14 # GROUP NAMES | 14 # GROUP NAMES |
15 $newname =~ s/\[UTW Mazui\]/[UTW-Mazui]/i; | 15 $newname =~ s/\[UTW Mazui\]/[UTW-Mazui]/i; |
16 $newname =~ s/\[t-n\]/[T-N]/i; | |
16 #TITLE AND NAMES | 17 #TITLE AND NAMES |
17 $newname =~ s/^(\(|\[)W B(\)|\])/[W_B]/; | 18 $newname =~ s/^(\(|\[)W B(\)|\])/[W_B]/; |
18 if ($newname =~ m/\[Doremi/) { | 19 if ($newname =~ m/\[(Doremi|Elysium)/) { |
19 $newname =~ s/\.([a-z0-9]+)$/,$1/i; | 20 $newname =~ s/\.([a-z0-9]+)$/,$1/i; |
20 $newname =~ s/\./ /g; | 21 $newname =~ s/\./ /g; |
21 $newname =~ s/,([a-z0-9]+)$/.$1/i; | 22 $newname =~ s/,([a-z0-9]+)$/.$1/i; |
22 } | 23 } |
23 $newname =~ s/^Genesis of Aquarion - (\d+) \[3xR\]\[Blu-ray.720p.H264.FLAC.AC3\](v2|)/[3xR] Genesis of Aquarion - $1 [$2 720p BD]/; | 24 $newname =~ s/^Genesis of Aquarion - (\d+) \[3xR\]\[Blu-ray.720p.H264.FLAC.AC3\](v2|)/[3xR] Genesis of Aquarion - $1 [$2 720p BD]/; |
24 $newname =~ s/^Otogi Zoshi Act\.(\d+)\[x264 AAC\]\[SSP-Corp\]/[SSP-Corp] Otogi Zoshi - $1 /; | 25 $newname =~ s/^Otogi Zoshi Act\.(\d+)\[x264 AAC\]\[SSP-Corp\]/[SSP-Corp] Otogi Zoshi - $1 /; |
25 $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 /; | 26 $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 /; |
27 $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; | |
28 $newname =~ s/^(Futari wa Precure Splash Star) - (C\d+)\[\d+\] - .*(\[DVD\])(\[[^]]+\])(\[[a-f0-9]{8}\]\.[^.]+)$/$4 $1 - $2 $3$5/i; | |
29 $newname =~ s/^(Air Master|Black Jack Special|Cinderella Boy|Damekko Doubutsu|Crystal Blaze) - (\d+)\[\d+\] - .*(\[[^]]+\])(\[[a-f0-9]{8}\]\.[^.]+)$/$3 $1 - $2 $4/i; | |
26 $newname =~ s/^cor\.extras\.infinite\.ryvius\.textless\.opening(\d+)\./[cor] Infinite Ryvius - Opening $1 (Clean) /; | 30 $newname =~ s/^cor\.extras\.infinite\.ryvius\.textless\.opening(\d+)\./[cor] Infinite Ryvius - Opening $1 (Clean) /; |
27 $newname =~ s/^cor\.extras\.infinite\.ryvius\.textless\.ending(\d+)\./[cor] Infinite Ryvius - Ending $1 (Clean) /; | 31 $newname =~ s/^cor\.extras\.infinite\.ryvius\.textless\.ending(\d+)\./[cor] Infinite Ryvius - Ending $1 (Clean) /; |
28 $newname =~ s/^cor\.extras\.infinite\.ryvius\.art\.gallery\.and\.audio\.drama(\d+)\./[cor] Infinite Ryvius - Picture Drama $1 /; | 32 $newname =~ s/^cor\.extras\.infinite\.ryvius\.art\.gallery\.and\.audio\.drama(\d+)\./[cor] Infinite Ryvius - Picture Drama $1 /; |
29 $newname =~ s/^cor\.extras\.infinite\.ryvius\.ryvius\.vj\.mix(\d+)\./[cor] Infinite Ryvius - Ryvius VJ Mix $1 /; | 33 $newname =~ s/^cor\.extras\.infinite\.ryvius\.ryvius\.vj\.mix(\d+)\./[cor] Infinite Ryvius - Ryvius VJ Mix $1 /; |
30 $newname =~ s/^cor\.extras\.infinite\.ryvius\.ryvius\.illusion(\d+)\.mini-episode(\d+)\./[cor] Infinite Ryvius - Ryvius Illusion $1 - Mini Episode $2 /; | 34 $newname =~ s/^cor\.extras\.infinite\.ryvius\.ryvius\.illusion(\d+)\.mini-episode(\d+)\./[cor] Infinite Ryvius - Ryvius Illusion $1 - Mini Episode $2 /; |
34 $newname =~ s/^Arigatou\.Tokyo\.Majin\.Ep(\d+)\./[Arigatou] Tokyo Majin - $1 /; | 38 $newname =~ s/^Arigatou\.Tokyo\.Majin\.Ep(\d+)\./[Arigatou] Tokyo Majin - $1 /; |
35 $newname =~ s/ (Inazuma Eleven - )(\d{2}) / $1 0$2 /; | 39 $newname =~ s/ (Inazuma Eleven - )(\d{2}) / $1 0$2 /; |
36 $newname =~ s/\] *Pocket Monsters - (\d+) - .*\[(H264 |)SUB\]/] Pokemon - $1 /i; | 40 $newname =~ s/\] *Pocket Monsters - (\d+) - .*\[(H264 |)SUB\]/] Pokemon - $1 /i; |
37 $newname =~ s/\] Fafner - /] Soukyuu no Fafner - /; | 41 $newname =~ s/\] Fafner - /] Soukyuu no Fafner - /; |
38 $newname =~ s/\] Mashiro iro symphony - /] Mashiro-iro Symphony - /i; | 42 $newname =~ s/\] Mashiro iro symphony - /] Mashiro-iro Symphony - /i; |
43 $newname =~ s/\] To Aru Kagaku no Railgun /] Toaru Kagaku no Railgun /i; | |
44 $newname =~ s/\] To Aru Majutsu no Index /] Toaru Majutsu no Index /i; | |
39 $newname =~ s/\] Shakugan no Shana III /] Shakugan no Shana Final /i; | 45 $newname =~ s/\] Shakugan no Shana III /] Shakugan no Shana Final /i; |
40 $newname =~ s/\] Boku Ha Tomodachi Ga Sukunai - /] Boku wa Tomodachi ga Sukunai - /i; | 46 $newname =~ s/\] Boku Ha Tomodachi Ga Sukunai - /] Boku wa Tomodachi ga Sukunai - /i; |
41 $newname =~ s/\] Seikon no Qwaser II BD - (\d+) \[720p\]/] Seikon no Qwaser II - $1 [720p BD]/i; | 47 $newname =~ s/\] Seikon no Qwaser II BD - (\d+) \[720p\]/] Seikon no Qwaser II - $1 [720p BD]/i; |
42 $newname =~ s/\] Seikon no Qwaser Picture Drama - (\d+) /] Seikon no Qwaser - Picture Drama $1 /i; | 48 $newname =~ s/\] Seikon no Qwaser Picture Drama - (\d+) /] Seikon no Qwaser - Picture Drama $1 /i; |
43 $newname =~ s/\] Fortune Arterial Akai Yakusoku - /] Fortune Arterial - /; | 49 $newname =~ s/\] Fortune Arterial Akai Yakusoku - /] Fortune Arterial - /; |
50 $newname =~ s/\[HorribleSubs\] Hunter X Hunter - /[HorribleSubs] Hunter x Hunter (2011) - /i; | |
44 $newname =~ s/\] Ookami to Koushinryou - /] Spice and Wolf - /; | 51 $newname =~ s/\] Ookami to Koushinryou - /] Spice and Wolf - /; |
52 $newname =~ s/\] Kamen Rider Blade /] Kamen Rider Blade /i; | |
45 $newname =~ s/\] Mobile Suit Gundam AGE - /] Gundam AGE - /i; | 53 $newname =~ s/\] Mobile Suit Gundam AGE - /] Gundam AGE - /i; |
46 $newname =~ s/\] Soredemo Machi wa Mawatte Iru - /] Soredemo Machi wa Mawatteiru - /; | 54 $newname =~ s/\] Soredemo Machi wa Mawatte Iru - /] Soredemo Machi wa Mawatteiru - /; |
47 $newname =~ s/\] Spiral - (\d+) .* \[640 x 480\]\[H\.264\]/] Spiral - $1 /; | 55 $newname =~ s/\] Spiral - (\d+) .* \[640 x 480\]\[H\.264\]/] Spiral - $1 /; |
48 $newname =~ s/\] Mayo Chiki - / ] Mayo Chiki! - /i; | 56 $newname =~ s/\] Mayo Chiki - / ] Mayo Chiki! - /i; |
49 $newname =~ s/\] Naruto Shippuden - /] Naruto Shippuuden - /i; | 57 $newname =~ s/\] Naruto Shippuden - /] Naruto Shippuuden - /i; |
50 $newname =~ s/\] Maji de Watashi ni Koi Shinasai!! /] Maji de Watashi ni Koi Shinasai! /i; | 58 $newname =~ s/\] Maji de Watashi ni Koi Shinasai!! /] Maji de Watashi ni Koi Shinasai! /i; |
51 $newname =~ s/\] Sei Juushi Bismarck /] Sei Juushi Bismark /i; | 59 $newname =~ s/\] Sei Juushi Bismarck /] Sei Juushi Bismark /i; |
52 $newname =~ s/\] Tamayura - hitotose - /] Tamayura ~hitotose~ - /i; | 60 $newname =~ s/\] Tamayura - hitotose - /] Tamayura ~hitotose~ - /i; |
61 $newname =~ s/\] Yumekui Merry /] Dream Eater Merry /i; | |
53 $newname =~ s/^Arigatou\.Tsubasa\.Chronicles\.(|2\.)(\d{2})(|v2)\./[Arigatou] Tsubasa Chronicles $1 - $2$3/; | 62 $newname =~ s/^Arigatou\.Tsubasa\.Chronicles\.(|2\.)(\d{2})(|v2)\./[Arigatou] Tsubasa Chronicles $1 - $2$3/; |
54 $newname =~ s/^Niea\.Under\.Seven\.(\d+)\.\(Dual\.Audio\)\.XVID\.\[AM\]/[AM] Niea Under Seven - $1/; | 63 $newname =~ s/^Niea\.Under\.Seven\.(\d+)\.\(Dual\.Audio\)\.XVID\.\[AM\]/[AM] Niea Under Seven - $1/; |
55 $newname =~ s/ Tsubasa Chronicles 2\. - / Tsubasa Chronicles 2 /; | 64 $newname =~ s/ Tsubasa Chronicles 2\. - / Tsubasa Chronicles 2 /; |
56 $newname =~ s/ *Moritasan wa Mukuchi */ Morita-san wa Mukuchi /i; | 65 $newname =~ s/ *Moritasan wa Mukuchi */ Morita-san wa Mukuchi /i; |
57 $newname =~ s/ Hanasakeru Seishonen / Hanasakeru Seishounen /i; | 66 $newname =~ s/ Hanasakeru Seishonen / Hanasakeru Seishounen /i; |
63 $newname =~ s/\[TSuNDeRe\]Tsuyokiss\.(\d+)\./[Tsundere] Tsuyokiss - $1 /i; | 72 $newname =~ s/\[TSuNDeRe\]Tsuyokiss\.(\d+)\./[Tsundere] Tsuyokiss - $1 /i; |
64 $newname =~ s/\[RANDOMFAGGOTS\]/[Randomfaggots]/i; | 73 $newname =~ s/\[RANDOMFAGGOTS\]/[Randomfaggots]/i; |
65 $newname =~ s/\[Keroro\]\.(\d+)\.\[Xvid\.mp3\]\./[Keroro] Keroro Gunsou - $1 /i; | 74 $newname =~ s/\[Keroro\]\.(\d+)\.\[Xvid\.mp3\]\./[Keroro] Keroro Gunsou - $1 /i; |
66 $newname =~ s/\[Keroro\] \.(\d+)\. \[\.mp3\] \. /[Keroro] Keroro Gunsou - $1 /i; | 75 $newname =~ s/\[Keroro\] \.(\d+)\. \[\.mp3\] \. /[Keroro] Keroro Gunsou - $1 /i; |
67 $newname =~ s/\[WPP & T-N\]/[WPP T-N]/; | 76 $newname =~ s/\[WPP & T-N\]/[WPP T-N]/; |
68 $newname =~ s/(\[Jumonji-Giri\]) *\[[A-Z0-9- ]+\]/$1/i; | 77 $newname =~ s/(\[Jumonji-Giri\]) *\[[^]]+\]/$1/i; |
69 $newname =~ s/ Yuru Yuri / YuruYuri /i; | 78 $newname =~ s/ Yuru Yuri / YuruYuri /i; |
70 $newname =~ s/ Clannad - After Story / Clannad After Story /i; | 79 $newname =~ s/ Clannad - After Story / Clannad After Story /i; |
71 $newname =~ s/ Manyuu Hikenchou - (\d+) ~DC~ / Manyuu Hikenchou - $1 [Uncut]/; | 80 $newname =~ s/ Manyuu Hikenchou - (\d+) ~DC~ / Manyuu Hikenchou - $1 [Uncut]/; |
72 $newname =~ s/\[Elysium\]K-ON!!\.EP(\d+)\(BD\.1080p\.FLAC\)/[Elysium] K-ON!! - $1 [1080p BD]/i; | 81 $newname =~ s/\[Elysium\]K-ON!!\.EP(\d+)\(BD\.1080p\.FLAC\)/[Elysium] K-ON!! - $1 [1080p BD]/i; |
73 $newname =~ s/\[Elysium\]K-ON!!\.(ED|OP)(\d+)\(BD\.1080p\.FLAC\)/[Elysium] K-ON!! - $1 $2 [1080p BD]/i; | 82 $newname =~ s/\[Elysium\]K-ON!!\.(ED|OP)(\d+)\(BD\.1080p\.FLAC\)/[Elysium] K-ON!! - $1 $2 [1080p BD]/i; |
197 $newname =~ s/Natsu no Arashi - Akinai-chuu/Summer Storm! - Open for Business/; | 206 $newname =~ s/Natsu no Arashi - Akinai-chuu/Summer Storm! - Open for Business/; |
198 $newname =~ s/Natsu no Arashi/Summer Storm!/; | 207 $newname =~ s/Natsu no Arashi/Summer Storm!/; |
199 $newname =~ s/Naruto (\d+-\d+) /Naruto - $1 /; | 208 $newname =~ s/Naruto (\d+-\d+) /Naruto - $1 /; |
200 $newname =~ s/Lupin III Series 1 - (\d+) - .+ \[neo1024\]/[neo1024] Lupin III - $1 /; | 209 $newname =~ s/Lupin III Series 1 - (\d+) - .+ \[neo1024\]/[neo1024] Lupin III - $1 /; |
201 $newname =~ s/Mitsudomoe Picture Drama - 0/Mitsudomoe Picture Drama - /; | 210 $newname =~ s/Mitsudomoe Picture Drama - 0/Mitsudomoe Picture Drama - /; |
202 $newname =~ s/^(Star Driver .*)(\[AtsA\])/$2 $1 /i; | 211 $newname =~ s/^(Fullmetal Alchemist Brotherhood .*|Star Driver .*)(\[AtsA\])/$2 $1 /i; |
203 $newname =~ s/(Sora no Woto|Ichiban Ushiro no Daimaou|Mayoi Neko Overrun!) - ([^ ]+|OP Clean|ED Clean|Theater [a-z0-9]+) \[BD 1080p\]\[AtsA\]/[AtsA] $1 - $2 [1080p BD]/; | 212 $newname =~ s/(Sora no Woto|Ichiban Ushiro no Daimaou|Mayoi Neko Overrun!) - ([^ ]+|OP Clean|ED Clean|Theater [a-z0-9]+) \[BD 1080p\]\[AtsA\]/[AtsA] $1 - $2 [1080p BD]/; |
204 $newname =~ s/(Sora no Woto|Ichiban Ushiro no Daimaou|Mayoi Neko Overrun!) ([^ ]+|Opening Clean|Ending Clean|Theater - [a-z0-9]+) \[1080p BD\]\[AtsA\]/[AtsA] $1 - $2 [1080p BD]/; | 213 $newname =~ s/(Sora no Woto|Ichiban Ushiro no Daimaou|Mayoi Neko Overrun!) ([^ ]+|Opening Clean|Ending Clean|Theater - [a-z0-9]+) \[1080p BD\]\[AtsA\]/[AtsA] $1 - $2 [1080p BD]/; |
205 $newname =~ s/Battle\.Programmer\.Shirase\./Battle Programmer Shirase /; | 214 $newname =~ s/Battle\.Programmer\.Shirase\./Battle Programmer Shirase /; |
206 $newname =~ s/Battle Programmer Shirase - 0/Battle Programmer Shirase - /; | 215 $newname =~ s/Battle Programmer Shirase - 0/Battle Programmer Shirase - /; |
207 $newname =~ s/ Kuragehime / Princess Jellyfish /; | 216 $newname =~ s/ Kuragehime / Princess Jellyfish /; |
253 $newname =~ s/ TV Broadcast \[720p/ [LQ 720p/; | 262 $newname =~ s/ TV Broadcast \[720p/ [LQ 720p/; |
254 $newname =~ s/ ED(\d+[a-z]*)/ - Ending $1 /i; | 263 $newname =~ s/ ED(\d+[a-z]*)/ - Ending $1 /i; |
255 $newname =~ s/ OP(\d+[a-z]*)/ - Opening $1 /i; | 264 $newname =~ s/ OP(\d+[a-z]*)/ - Opening $1 /i; |
256 $newname =~ s/ ED / - Ending /; | 265 $newname =~ s/ ED / - Ending /; |
257 $newname =~ s/ Clean (Opening|Ending) v2/ - $1 (Clean) [v2]/i; | 266 $newname =~ s/ Clean (Opening|Ending) v2/ - $1 (Clean) [v2]/i; |
258 $newname =~ s/ Creditless Opening (\d+) / - Opening $1 (Clean) /i; | 267 $newname =~ s/ Creditless (Opening|Ending) (\d+) / - $1 $2 (Clean) /i; |
259 $newname =~ s/ Ep(\d+) Creditless Ending / - Ending $1 (Clean) /i; | 268 $newname =~ s/ Ep(\d+) Creditless Ending / - Ending $1 (Clean) /i; |
260 $newname =~ s/ (NCED|Ending Clean) / - Ending (Clean) /i; | 269 $newname =~ s/ (NCED|Ending Clean) / - Ending (Clean) /i; |
261 $newname =~ s/ NCED(\d+) / - Ending $1 (Clean) /i; | 270 $newname =~ s/ NCED(\d+) / - Ending $1 (Clean) /i; |
262 $newname =~ s/ (NCOP|Opening Clean) / - Opening (Clean)/i; | 271 $newname =~ s/ (NCOP|Opening Clean) / - Opening (Clean)/i; |
263 $newname =~ s/ OP / - Opening /; | 272 $newname =~ s/ OP / - Opening /; |
264 $newname =~ s/ (\d+-\d+) / - $1 /; | 273 $newname =~ s/ (\d+-\d+) / - $1 /; |
265 $newname =~ s/ - - / - /g; | 274 $newname =~ s/ - - / - /g; |
266 $newname =~ s/ Ep / /ig; | 275 $newname =~ s/ Ep / /ig; |
267 ##SLICED BREAD | 276 ##SLICED BREAD |
268 $newname =~ s/(\(|\[) *(10bit-v2) *(\)|\])/[v2]/i; | 277 $newname =~ s/(\(|\[) *(10bit-v2) *(\)|\])/[v2]/i; |
269 $newname =~ s/(\(|\[) *(10-?bit|10bit 480p H264|640x360|640x360 H264 AAC|h264\.aac|hi10p|10bit|\d+th Release|x264\.aac|xvid|divx5\.2\.1|divx5\.1|divx5\.05|divx5\.1\.1|h\.?264 AC3|848x480|H264 848x480|h264-480p AAC|h\.264-480p) *(\)|\])//i; | 278 $newname =~ s/(\(|\[) *(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; |
270 $newname =~ s/\[(DVD 10bit)\]/[DVD]/i; | 279 $newname =~ s/\[(DVD 10bit)\]/[DVD]/i; |
271 $newname =~ s/(\(|\[) *(DVD H264 720x480 AAC|DVD 704x480 H264 AC3|DVD 704x480|DVDRip\.Xvid\.864x480\.Vorbis|DVD H264 848x480|DVD 720x480|DVD H264 720x480|DVD, wmv, mp3) *(\)|\])/[DVD]/i; | 280 $newname =~ s/(\(|\[) *(DVD H264 720x480 AAC|DVD 704x480 H264 AC3|DVD 704x480|DVDRip\.Xvid\.864x480\.Vorbis|DVD H264 848x480|DVD 720x480|DVD H264 720x480|DVD, wmv, mp3) *(\)|\])/[DVD]/i; |
272 $newname =~ s/(\(|\[) *(BD\]\[1080p-FLAC|1920x1080 Hi10p h264 AAC|BD 1920x1080 x264 AAC|BD 1080p Hi10P|BDRip 1080p x264 FLAC|BD-1080p-|BD-1080p-FLAC|1920x1038 Blu-Ray FLAC|1920x1080 Blu-Ray FLAC|1920x1080 h264 BD FLAC|1920x1080 BD|BD\.1080p\.FLAC|BD 1080p H\.264 AAC 5\.1|BD 1080p) *(\)|\])/[1080p BD]/i; | 281 $newname =~ s/(\(|\[) *(BD\]\[1080p-FLAC|1920x1080 Hi10p h264 AAC|BD 1920x1080 x264 AAC|BD 1080p Hi10P|BDRip 1080p x264 FLAC|BD-1080p-|BD-1080p-FLAC|1920x1038 Blu-Ray FLAC|1920x1080 Blu-Ray FLAC|1920x1080 h264 BD FLAC|1920x1080 BD|BD\.1080p\.FLAC|BD 1080p H\.264 AAC 5\.1|BD 1080p) *(\)|\])/[1080p BD]/i; |
273 $newname =~ s/(\(|\[) *(Hi10P 1280x720 H264|Hi10P 1280x720|1280x720 Hi10P|1280x720 5\.1|1280x720 x264 AAC|1280x720 H264 AAC|720p H264 AAC|1280x720|1280x720 H\.?264 AAC) *(\)|\])/[720p]/i; | 282 $newname =~ s/(\(|\[) *(Hi10P 1280x720 H264|Hi10P 1280x720|1280x720 Hi10P|1280x720 5\.1|1280x720 x264 AAC|1280x720 H264 AAC|720p H264 AAC|1280x720|1280x720 H\.?264 AAC) *(\)|\])/[720p]/i; |
274 $newname =~ s/(\(|\[) *(BD, 720p,|BD 720p H264-AAC|BDRip 720p|BD, 720p, ,|1280x720 BD|BD 1280x720 H264 AAC|BD 720p|BD 720p FLAC|BD 1280x720 H264 AAC) *(\)|\])/[720p BD]/i; | 283 $newname =~ s/(\(|\[) *(BDrip 720p Vorbis|BD 720p Hi10P AAC|BD, 720p,|BD 720p H264-AAC|BDRip 720p|BD, 720p, ,|1280x720 BD|BD 1280x720 H264 AAC|BD 720p|BD 720p FLAC|BD 1280x720 H264 AAC) *(\)|\])/[720p BD]/i; |
284 $newname =~ s/(\(|\[) *(BD 540p) *(\)|\])/[BD]/i; | |
275 $newname =~ s/(\(|\[) *(1024x576|H264 1024x576) *(\)|\])/[576p]/i; | 285 $newname =~ s/(\(|\[) *(1024x576|H264 1024x576) *(\)|\])/[576p]/i; |
276 $newname =~ s/(\(|\[) *(1920x1080) *(\)|\])/[1080p]/i; | 286 $newname =~ s/(\(|\[) *(1920x1080) *(\)|\])/[1080p]/i; |
277 ##SLICED BREAD pt.2 | 287 ##SLICED BREAD pt.2 |
278 $newname =~ s/(\d+)v(\d+)/$1 [v$2]/i; | 288 $newname =~ s/(\d+)v(\d+)/$1 [v$2]/i; |
279 $newname =~ s/\[BD\]\[1920x1080 H264-Flac\]/[1080p BD]/i; | 289 $newname =~ s/\[BD\]\[1920x1080 H264-Flac\]/[1080p BD]/i; |
420 $newname =~ s/ Ultraviolet Code - 044 - / Ultraviolet Code 044 - /; | 430 $newname =~ s/ Ultraviolet Code - 044 - / Ultraviolet Code 044 - /; |
421 $newname =~ s/ Persona - 3 Picture Drama - She Goes For A Walk / Persona 3 Picture Drama - She Goes For A Walk - /; | 431 $newname =~ s/ Persona - 3 Picture Drama - She Goes For A Walk / Persona 3 Picture Drama - She Goes For A Walk - /; |
422 $newname =~ s/ SP0/ - Special /; | 432 $newname =~ s/ SP0/ - Special /; |
423 $newname =~ s/ SP(\d+) / - Special $1 /; | 433 $newname =~ s/ SP(\d+) / - Special $1 /; |
424 $newname =~ s/ Special - / - Special /; | 434 $newname =~ s/ Special - / - Special /; |
435 $newname =~ s/ Animated Commentary - / - Animated Commentary /; | |
436 $newname =~ s/ Fullmetal Alchemist Brotherhood (- |)Skit - / Fullmetal Alchemist Brotherhood - Skit /i; | |
425 $newname =~ s/ - Picture Drama - / - Picture Drama /; | 437 $newname =~ s/ - Picture Drama - / - Picture Drama /; |
426 $newname =~ s/ (Mayoi Neko Overrun! - Theater) - / $1 /; | 438 $newname =~ s/ (Mayoi Neko Overrun! - Theater) - / $1 /; |
427 $newname =~ s/ Opening - / Opening /; | 439 $newname =~ s/ Opening - / Opening /; |
428 $newname =~ s/ Ending - / Ending /; | 440 $newname =~ s/ Ending - / Ending /; |
429 $newname =~ s/ Hidamari Sketch Hoshimittsu - Special / Hidamari Sketch Hoshimittsu Special - /; | 441 $newname =~ s/ Hidamari Sketch Hoshimittsu - Special / Hidamari Sketch Hoshimittsu Special - /; |
430 $newname =~ s/ Spice and Wolf S2 - BD Menu - 0/ Spice and Wolf S2 - BD Menu /; | 442 $newname =~ s/ Spice and Wolf S2 - BD Menu - 0/ Spice and Wolf S2 - BD Menu /; |
431 $newname =~ s/ Canvas - 2 - / Canvas 2 - /; | 443 $newname =~ s/ Canvas - 2 - / Canvas 2 - /; |
444 $newname =~ s/ To Heart - 2 / To Heart 2 /; | |
432 $newname =~ s/ Tsubasa Chronicles - 2 (\d{2}) / Tsubasa Chronicles 2 - $1 /; | 445 $newname =~ s/ Tsubasa Chronicles - 2 (\d{2}) / Tsubasa Chronicles 2 - $1 /; |
433 $newname =~ s/ Mitsudomoe - 2 - / Mitsudomoe 2 - /; | 446 $newname =~ s/ Mitsudomoe - 2 - / Mitsudomoe 2 - /; |
434 $newname =~ s/ Morita-san wa Mukuchi - 2 / Morita-san wa Mukuchi 2 /i; | 447 $newname =~ s/ Morita-san wa Mukuchi - 2 / Morita-san wa Mukuchi 2 /i; |
435 $newname =~ s/ Eyeshield - 21 - / Eyeshield 21 - /; | 448 $newname =~ s/ Eyeshield - 21 - / Eyeshield 21 - /; |
436 $newname =~ s/ - opening - (\d+) / - Opening $1 /i; | 449 $newname =~ s/ - opening - (\d+) / - Opening $1 /i; |
447 $newname =~ s/ +/ /g; | 460 $newname =~ s/ +/ /g; |
448 $newname =~ s/^ +//; | 461 $newname =~ s/^ +//; |
449 $newname =~ s/(- )+/- /; | 462 $newname =~ s/(- )+/- /; |
450 $newname =~ s/^\[N - F\]/[N-F]/; | 463 $newname =~ s/^\[N - F\]/[N-F]/; |
451 $newname =~ s/^\[K-F & AKUPX\]/[K-F AKUPX]/; | 464 $newname =~ s/^\[K-F & AKUPX\]/[K-F AKUPX]/; |
452 $newname =~ s/^\[([\.\s\w\- ]+)\] (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]/; | 465 $newname =~ s/^\[([&!\.\s\w\- ]+)\] (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]/; |
453 $newname =~ s/^Naruto - (\d{2}) /Naruto - 0$1 /; | 466 $newname =~ s/^Naruto - (\d{2}) /Naruto - 0$1 /; |
454 $newname =~ s/^Fairy Tail - (\d{2}) /Fairy Tail - 0$1 /; | 467 $newname =~ s/^Fairy Tail - (\d{2}) /Fairy Tail - 0$1 /; |
455 $newname =~ s/^Naruto - (\d{2})-(\d{2}) /Naruto - 0$1-0$2 /; | 468 $newname =~ s/^Naruto - (\d{2})-(\d{2}) /Naruto - 0$1-0$2 /; |
469 if ($^O eq "MSWin32") { $newname =~ s/ *\\ */\\/g; } | |
456 print(qq($_: $newname already exists, skipping\n)) and next() if -e $newname and $_ ne $newname; | 470 print(qq($_: $newname already exists, skipping\n)) and next() if -e $newname and $_ ne $newname; |
457 if ($_ eq $newname) { | 471 if ($_ eq $newname) { |
458 print("$_: no need to rename, skipping\n"); | 472 print("$_: no need to rename, skipping\n"); |
459 } else { | 473 } else { |
460 if($skip==1) { print("Result: $_ --> $newname\n"); } | 474 if($skip==1) { print("Result: $_ --> $newname\n"); } |