Mercurial > ec-dotfiles
comparison bin/ren @ 420:4b12d4c1be51
[bin/ren] More rules.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Tue, 11 Dec 2012 23:31:18 +0700 |
parents | fcb116fc12f9 |
children | 6e682757a5f7 |
comparison
equal
deleted
inserted
replaced
419:587abe573053 | 420:4b12d4c1be51 |
---|---|
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/\[tsundere\]/[Tsundere]/i; | |
16 $newname =~ s/\[t-n\]/[T-N]/i; | 17 $newname =~ s/\[t-n\]/[T-N]/i; |
17 #TITLE AND NAMES | 18 #TITLE AND NAMES |
18 $newname =~ s/^(\(|\[)W B(\)|\])/[W_B]/; | 19 $newname =~ s/^(\(|\[)W B(\)|\])/[W_B]/; |
19 if ($newname =~ m/\[(Doremi|Elysium)/) { | 20 if ($newname =~ m/\[(Doremi|Elysium)/) { |
20 $newname =~ s/\.([a-z0-9]+)$/,$1/i; | 21 $newname =~ s/\.([a-z0-9]+)$/,$1/i; |
50 $newname =~ s/^Arigatou\.Tokyo\.Majin\.Ep(\d+)\./[Arigatou] Tokyo Majin - $1 /; | 51 $newname =~ s/^Arigatou\.Tokyo\.Majin\.Ep(\d+)\./[Arigatou] Tokyo Majin - $1 /; |
51 $newname =~ s/ (Inazuma Eleven - )(\d{2}) / $1 0$2 /; | 52 $newname =~ s/ (Inazuma Eleven - )(\d{2}) / $1 0$2 /; |
52 $newname =~ s/\] *Pocket Monsters - (\d+) - .*\[(H264 |)SUB\]/] Pokemon - $1 /i; | 53 $newname =~ s/\] *Pocket Monsters - (\d+) - .*\[(H264 |)SUB\]/] Pokemon - $1 /i; |
53 $newname =~ s/\] Ebiten - Koritsu Ebisugawa Koukou Tenmon-Bu - /] Ebiten - /i; | 54 $newname =~ s/\] Ebiten - Koritsu Ebisugawa Koukou Tenmon-Bu - /] Ebiten - /i; |
54 $newname =~ s/\] Fafner - /] Soukyuu no Fafner - /; | 55 $newname =~ s/\] Fafner - /] Soukyuu no Fafner - /; |
56 $newname =~ s/\] Major OVA - World Series - /] Major World Series OVA - /i; | |
55 $newname =~ s/\] Sukitte Ii na yo\. - /] Sukitte Iinayo - /i; | 57 $newname =~ s/\] Sukitte Ii na yo\. - /] Sukitte Iinayo - /i; |
58 $newname =~ s/\] .+80%8CK.+80%8D - /] K - /i; | |
56 $newname =~ s/\] Kono Naka ni Hitori Imouto ga Iru - /] Kono Naka ni Hitori Imouto ga Iru - /i; | 59 $newname =~ s/\] Kono Naka ni Hitori Imouto ga Iru - /] Kono Naka ni Hitori Imouto ga Iru - /i; |
57 $newname =~ s/\] Yakitate Japan (- |Ep)/] Yakitate!! Japan - /i; | 60 $newname =~ s/\] Yakitate Japan (- |Ep)/] Yakitate!! Japan - /i; |
58 $newname =~ s/\] Inu × Boku SS - /] Inu x Boku SS - /i; | 61 $newname =~ s/\] Inu × Boku SS - /] Inu x Boku SS - /i; |
59 $newname =~ s/\] 「K」 - /] K - /i; | 62 $newname =~ s/\] 「K」 - /] K - /i; |
60 $newname =~ s/\] Hidamari Sketch(×|×)Honeycomb - /] Hidamari Sketch x Honeycomb - /i; | 63 $newname =~ s/\] Hidamari Sketch(×|×)Honeycomb - /] Hidamari Sketch x Honeycomb - /i; |
97 $newname =~ s/\] Zero no Tsukaima Final /] Zero no Tsukaima F /i; | 100 $newname =~ s/\] Zero no Tsukaima Final /] Zero no Tsukaima F /i; |
98 $newname =~ s/\] Papa no Iukoto wo Kikinasai! /] Papa no Iu Koto wo Kikinasai! /i; | 101 $newname =~ s/\] Papa no Iukoto wo Kikinasai! /] Papa no Iu Koto wo Kikinasai! /i; |
99 $newname =~ s/\] Black★Rock Shooter /] Black Rock Shooter /i; | 102 $newname =~ s/\] Black★Rock Shooter /] Black Rock Shooter /i; |
100 $newname =~ s/\] Mobile Suit Gundam SEED HD Remaster /] Gundam SEED (Remaster) /i; | 103 $newname =~ s/\] Mobile Suit Gundam SEED HD Remaster /] Gundam SEED (Remaster) /i; |
101 $newname =~ s/\] *rockman exe axess /] Rockman.EXE Axess /i; | 104 $newname =~ s/\] *rockman exe axess /] Rockman.EXE Axess /i; |
105 $newname =~ s/\] *Jojo's Bizarre Adventure /] JoJo's Bizarre Adventure /i; | |
102 $newname =~ s/^Arigatou\.Tsubasa\.Chronicles\.(|2\.)(\d{2})(|v2)\./[Arigatou] Tsubasa Chronicles $1 - $2$3/; | 106 $newname =~ s/^Arigatou\.Tsubasa\.Chronicles\.(|2\.)(\d{2})(|v2)\./[Arigatou] Tsubasa Chronicles $1 - $2$3/; |
103 $newname =~ s/^Niea\.Under\.Seven\.(\d+)\.\(Dual\.Audio\)\.XVID\.\[AM\]/[AM] Niea Under Seven - $1/; | 107 $newname =~ s/^Niea\.Under\.Seven\.(\d+)\.\(Dual\.Audio\)\.XVID\.\[AM\]/[AM] Niea Under Seven - $1/; |
104 $newname =~ s/ Tsubasa Chronicles 2\. - / Tsubasa Chronicles 2 /; | 108 $newname =~ s/ Tsubasa Chronicles 2\. - / Tsubasa Chronicles 2 /; |
105 $newname =~ s/ *Moritasan wa Mukuchi */ Morita-san wa Mukuchi /i; | 109 $newname =~ s/ *Moritasan wa Mukuchi */ Morita-san wa Mukuchi /i; |
106 $newname =~ s/ Hanasakeru Seishonen / Hanasakeru Seishounen /i; | 110 $newname =~ s/ Hanasakeru Seishonen / Hanasakeru Seishounen /i; |
323 #v2 | 327 #v2 |
324 $newname =~ s/(\(|\[) *(10bit-v2) *(\)|\])/[v2]/i; | 328 $newname =~ s/(\(|\[) *(10bit-v2) *(\)|\])/[v2]/i; |
325 #dvd v2 | 329 #dvd v2 |
326 $newname =~ s/ \[DVD\] v2/ [v2 DVD]/i; | 330 $newname =~ s/ \[DVD\] v2/ [v2 DVD]/i; |
327 #nothing | 331 #nothing |
328 $newname =~ s/(\(|\[) *(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; | 332 $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; |
329 #dvd | 333 #dvd |
330 $newname =~ s/(\(|\[) *(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; | 334 $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; |
331 #dvd again | 335 #dvd again |
332 $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; | 336 $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; |
333 #1080p BD | 337 #1080p BD |
334 $newname =~ s/(\(|\[) *(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; | 338 $newname =~ s/(\(|\[) *(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; |
335 #720p | 339 #720p |
336 $newname =~ s/(\(|\[) *(BD 1280x720|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; | 340 $newname =~ s/(\(|\[) *(BD 1280x720|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; |
337 #720p BD | 341 #720p BD |
338 $newname =~ s/(\(|\[) *(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; | 342 $newname =~ s/(\(|\[) *(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; |
339 #BD | 343 #BD |
340 $newname =~ s/(\(|\[) *(Blu-Ray|BD 540p) *(\)|\])/[BD]/i; | 344 $newname =~ s/(\(|\[) *(Blu-Ray|BD 540p) *(\)|\])/[BD]/i; |
341 #576p | 345 #576p |
342 $newname =~ s/(\(|\[) *(576p hi10|1024x576|H264 1024x576) *(\)|\])/[576p]/i; | 346 $newname =~ s/(\(|\[) *(576p hi10|1024x576|H264 1024x576) *(\)|\])/[576p]/i; |
343 #1080p | 347 #1080p |
344 $newname =~ s/(\(|\[) *(1920x1080) *(\)|\])/[1080p]/i; | 348 $newname =~ s/(\(|\[) *(1080p Hi10p DTS|1920x1080) *(\)|\])/[1080p]/i; |
345 ##SLICED BREAD pt.2 | 349 ##SLICED BREAD pt.2 |
346 $newname =~ s/(\d+)v(\d+)/$1 [v$2]/i; | 350 $newname =~ s/(\d+)v(\d+)/$1 [v$2]/i; |
347 $newname =~ s/\[BD\]\[1920x1080 H264-Flac\]/[1080p BD]/i; | 351 $newname =~ s/\[BD\]\[1920x1080 H264-Flac\]/[1080p BD]/i; |
348 $newname =~ s/\[BD\]\[720p-AAC\]/[720p BD]/i; | 352 $newname =~ s/\[BD\]\[720p-AAC\]/[720p BD]/i; |
349 $newname =~ s/\.DVD/[DVD]/; | 353 $newname =~ s/\.DVD/[DVD]/; |