comparison bin/ren @ 291:9fbebccde4e3

More rules!
author Edho Arief <edho@myconan.net>
date Wed, 08 Feb 2012 21:33:03 +0700
parents d55ff9c0158a
children c57427d178ec
comparison
equal deleted inserted replaced
290:889bd8475ca5 291:9fbebccde4e3
43 $newname =~ s/ (Ryvius Illusion \d+) - introduction / $1 - Introduction /; 43 $newname =~ s/ (Ryvius Illusion \d+) - introduction / $1 - Introduction /;
44 $newname =~ s/^Arigatou\.Tokyo\.Majin\.Ep(\d+)\./[Arigatou] Tokyo Majin - $1 /; 44 $newname =~ s/^Arigatou\.Tokyo\.Majin\.Ep(\d+)\./[Arigatou] Tokyo Majin - $1 /;
45 $newname =~ s/ (Inazuma Eleven - )(\d{2}) / $1 0$2 /; 45 $newname =~ s/ (Inazuma Eleven - )(\d{2}) / $1 0$2 /;
46 $newname =~ s/\] *Pocket Monsters - (\d+) - .*\[(H264 |)SUB\]/] Pokemon - $1 /i; 46 $newname =~ s/\] *Pocket Monsters - (\d+) - .*\[(H264 |)SUB\]/] Pokemon - $1 /i;
47 $newname =~ s/\] Fafner - /] Soukyuu no Fafner - /; 47 $newname =~ s/\] Fafner - /] Soukyuu no Fafner - /;
48 $newname =~ s/\] Inu × Boku SS - /] Inu x Boku SS - /i;
49 $newname =~ s/\] Inu x Boku Secret Service - /] Inu x Boku SS - /i;
48 $newname =~ s/\] Mashiro iro symphony - /] Mashiro-iro Symphony - /i; 50 $newname =~ s/\] Mashiro iro symphony - /] Mashiro-iro Symphony - /i;
49 $newname =~ s/\] To Aru Kagaku no Railgun /] Toaru Kagaku no Railgun /i; 51 $newname =~ s/\] To Aru Kagaku no Railgun /] Toaru Kagaku no Railgun /i;
50 $newname =~ s/\] To Aru Majutsu no Index /] Toaru Majutsu no Index /i; 52 $newname =~ s/\] To Aru Majutsu no Index /] Toaru Majutsu no Index /i;
51 $newname =~ s/\] Shakugan no Shana III /] Shakugan no Shana Final /i; 53 $newname =~ s/\] Shakugan no Shana III /] Shakugan no Shana Final /i;
52 $newname =~ s/\] Boku Ha Tomodachi Ga Sukunai - /] Boku wa Tomodachi ga Sukunai - /i; 54 $newname =~ s/\] Boku Ha Tomodachi Ga Sukunai - /] Boku wa Tomodachi ga Sukunai - /i;
53 $newname =~ s/\] Seikon no Qwaser II BD - (\d+) \[720p\]/] Seikon no Qwaser II - $1 [720p BD]/i; 55 $newname =~ s/\] Seikon no Qwaser II BD - (\d+) \[720p\]/] Seikon no Qwaser II - $1 [720p BD]/i;
54 $newname =~ s/\] Seikon no Qwaser Picture Drama - (\d+) /] Seikon no Qwaser - Picture Drama $1 /i; 56 $newname =~ s/\] Seikon no Qwaser Picture Drama - (\d+) /] Seikon no Qwaser - Picture Drama $1 /i;
55 $newname =~ s/\] Fortune Arterial Akai Yakusoku - /] Fortune Arterial - /; 57 $newname =~ s/\] Fortune Arterial Akai Yakusoku - /] Fortune Arterial - /;
58 $newname =~ s/\] Full Metal Panic Fumoffu - /] Full Metal Panic Fumoffu - /i;
56 $newname =~ s/\[HorribleSubs\] Hunter X Hunter - /[HorribleSubs] Hunter x Hunter (2011) - /i; 59 $newname =~ s/\[HorribleSubs\] Hunter X Hunter - /[HorribleSubs] Hunter x Hunter (2011) - /i;
57 $newname =~ s/\] Ookami to Koushinryou - /] Spice and Wolf - /; 60 $newname =~ s/\] Ookami to Koushinryou - /] Spice and Wolf - /;
58 $newname =~ s/\] Saint Seiya The Lost Canvas - /] Saint Seiya - The Lost Canvas - /; 61 $newname =~ s/\] Saint Seiya The Lost Canvas - /] Saint Seiya - The Lost Canvas - /;
59 $newname =~ s/\] Love GetChu - /] Love Get Chu - /i; 62 $newname =~ s/\] Love GetChu - /] Love Get Chu - /i;
60 $newname =~ s/\] Kamen Rider Blade /] Kamen Rider Blade /i; 63 $newname =~ s/\] Kamen Rider Blade /] Kamen Rider Blade /i;
66 $newname =~ s/\] Naruto Shippuden - /] Naruto Shippuuden - /i; 69 $newname =~ s/\] Naruto Shippuden - /] Naruto Shippuuden - /i;
67 $newname =~ s/\] Maji de Watashi ni Koi Shinasai!! /] Maji de Watashi ni Koi Shinasai! /i; 70 $newname =~ s/\] Maji de Watashi ni Koi Shinasai!! /] Maji de Watashi ni Koi Shinasai! /i;
68 $newname =~ s/\] Sei Juushi Bismarck /] Sei Juushi Bismark /i; 71 $newname =~ s/\] Sei Juushi Bismarck /] Sei Juushi Bismark /i;
69 $newname =~ s/\] Tamayura - hitotose - /] Tamayura ~hitotose~ - /i; 72 $newname =~ s/\] Tamayura - hitotose - /] Tamayura ~hitotose~ - /i;
70 $newname =~ s/\] Yumekui Merry /] Dream Eater Merry /i; 73 $newname =~ s/\] Yumekui Merry /] Dream Eater Merry /i;
74 $newname =~ s/\] Papa no Iukoto wo Kikinasai! /] Papa no Iu Koto wo Kikinasai! /i;
75 $newname =~ s/\] Black★Rock Shooter /] Black Rock Shooter /i;
76 $newname =~ s/\] Mobile Suit Gundam SEED HD Remaster /] Gundam SEED (Remaster) /i;
71 $newname =~ s/\] *rockman exe axess /] Rockman.EXE Axess /i; 77 $newname =~ s/\] *rockman exe axess /] Rockman.EXE Axess /i;
72 $newname =~ s/^Arigatou\.Tsubasa\.Chronicles\.(|2\.)(\d{2})(|v2)\./[Arigatou] Tsubasa Chronicles $1 - $2$3/; 78 $newname =~ s/^Arigatou\.Tsubasa\.Chronicles\.(|2\.)(\d{2})(|v2)\./[Arigatou] Tsubasa Chronicles $1 - $2$3/;
73 $newname =~ s/^Niea\.Under\.Seven\.(\d+)\.\(Dual\.Audio\)\.XVID\.\[AM\]/[AM] Niea Under Seven - $1/; 79 $newname =~ s/^Niea\.Under\.Seven\.(\d+)\.\(Dual\.Audio\)\.XVID\.\[AM\]/[AM] Niea Under Seven - $1/;
74 $newname =~ s/ Tsubasa Chronicles 2\. - / Tsubasa Chronicles 2 /; 80 $newname =~ s/ Tsubasa Chronicles 2\. - / Tsubasa Chronicles 2 /;
75 $newname =~ s/ *Moritasan wa Mukuchi */ Morita-san wa Mukuchi /i; 81 $newname =~ s/ *Moritasan wa Mukuchi */ Morita-san wa Mukuchi /i;
292 #dvd v2 298 #dvd v2
293 $newname =~ s/ \[DVD\] v2/ [v2 DVD]/i; 299 $newname =~ s/ \[DVD\] v2/ [v2 DVD]/i;
294 #nothing 300 #nothing
295 $newname =~ s/(\(|\[) *(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; 301 $newname =~ s/(\(|\[) *(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;
296 #dvd 302 #dvd
297 $newname =~ s/\[(DVD 10bit)\]/[DVD]/i; 303 $newname =~ s/(\(|\[) *(DVD x264 10-bit AC3|DVD 10bit) *(\)|\])/[DVD]/i;
298 #dvd again 304 #dvd again
299 $newname =~ s/(\(|\[) *(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; 305 $newname =~ s/(\(|\[) *(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;
300 #1080p BD 306 #1080p BD
301 $newname =~ s/(\(|\[) *(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; 307 $newname =~ s/(\(|\[) *(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;
302 #720p 308 #720p
303 $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; 309 $newname =~ s/(\(|\[) *(1280x720 Hi10p|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;
304 #720p BD 310 #720p BD
305 $newname =~ s/(\(|\[) *(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; 311 $newname =~ s/(\(|\[) *(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;
306 #BD 312 #BD
307 $newname =~ s/(\(|\[) *(Blu-Ray|BD 540p) *(\)|\])/[BD]/i; 313 $newname =~ s/(\(|\[) *(Blu-Ray|BD 540p) *(\)|\])/[BD]/i;
308 #576p 314 #576p
309 $newname =~ s/(\(|\[) *(1024x576|H264 1024x576) *(\)|\])/[576p]/i; 315 $newname =~ s/(\(|\[) *(1024x576|H264 1024x576) *(\)|\])/[576p]/i;
310 #1080p 316 #1080p
479 $newname =~ s/ Mahoujin Guruguru - 2 - Doki Doki Densetsu - / Mahoujin Guruguru 2 - Doki Doki Densetsu - /; 485 $newname =~ s/ Mahoujin Guruguru - 2 - Doki Doki Densetsu - / Mahoujin Guruguru 2 - Doki Doki Densetsu - /;
480 $newname =~ s/ The World God Only Knows - 2 - / The World God Only Knows 2 - /; 486 $newname =~ s/ The World God Only Knows - 2 - / The World God Only Knows 2 - /;
481 $newname =~ s/ Legend of Galactic Heroes Gaiden - 2 - / Legend of Galactic Heroes Gaiden 2 - /; 487 $newname =~ s/ Legend of Galactic Heroes Gaiden - 2 - / Legend of Galactic Heroes Gaiden 2 - /;
482 $newname =~ s/ Kara no Kyoukai - (\d+) / Kara no Kyoukai - Chapter $1/; 488 $newname =~ s/ Kara no Kyoukai - (\d+) / Kara no Kyoukai - Chapter $1/;
483 $newname =~ s/\[G P\]/[G_P]/i; 489 $newname =~ s/\[G P\]/[G_P]/i;
490 $newname =~ s/\[-'\]/[-__-']/;
491 $newname =~ s/\['\]/[-__-']/;
484 #SAFE CLEANUPS 492 #SAFE CLEANUPS
485 $newname =~ s/ +/ /g; 493 $newname =~ s/ +/ /g;
486 $newname =~ s/^ +//; 494 $newname =~ s/^ +//;
487 $newname =~ s/ *(\.[^ ]+$)/$1/; 495 $newname =~ s/ *(\.[^ ]+$)/$1/;
488 $newname =~ s/(- )+/- /; 496 $newname =~ s/(- )+/- /;