Mercurial > ec-dotfiles
comparison bin/ren @ 409:fcb116fc12f9
[ren] More rules.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Sun, 11 Nov 2012 14:59:41 +0700 |
parents | 0051e1fccb40 |
children | 4b12d4c1be51 |
comparison
equal
deleted
inserted
replaced
408:baf2dd1cc56c | 409:fcb116fc12f9 |
---|---|
28 $newname =~ s/(Ending) (\(Clean\)) - 0(\d+)/$1 $3 $2/; | 28 $newname =~ s/(Ending) (\(Clean\)) - 0(\d+)/$1 $3 $2/; |
29 $newname =~ s/(Opening) (\(Clean\))0(\d+)/$1 $3 $2/; | 29 $newname =~ s/(Opening) (\(Clean\))0(\d+)/$1 $3 $2/; |
30 $newname =~ s/ A\+Channel / A Channel - Special /; | 30 $newname =~ s/ A\+Channel / A Channel - Special /; |
31 $newname =~ s/ Arcana✴Famiglia / Arcana Famiglia /i; | 31 $newname =~ s/ Arcana✴Famiglia / Arcana Famiglia /i; |
32 $newname =~ s/ Yuru Yuri♪♪ / Yuru Yuri S2 /i; | 32 $newname =~ s/ Yuru Yuri♪♪ / Yuru Yuri S2 /i; |
33 $newname =~ s/ The Story of Perrine / Perrine /i; | |
34 $newname =~ s/\] Chitose Get you!!? - /] Chitose Get You!! - /i; | |
33 $newname =~ s/ Dog Days' / Dog Days S2 /i; | 35 $newname =~ s/ Dog Days' / Dog Days S2 /i; |
34 $newname =~ s/\[commie\]/[Commie]/i; | 36 $newname =~ s/\[commie\]/[Commie]/i; |
35 $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 /; | 37 $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 /; |
36 $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; | 38 $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; |
37 $newname =~ s/^(Futari wa Precure Splash Star) - (C\d+)\[\d+\] - .*(\[DVD\])(\[[^]]+\])(\[[a-f0-9]{8}\]\.[^.]+)$/$4 $1 - $2 $3$5/i; | 39 $newname =~ s/^(Futari wa Precure Splash Star) - (C\d+)\[\d+\] - .*(\[DVD\])(\[[^]]+\])(\[[a-f0-9]{8}\]\.[^.]+)$/$4 $1 - $2 $3$5/i; |
46 $newname =~ s/ (Mitsudomoe Zouryouchuu\! - )0/ $1/; | 48 $newname =~ s/ (Mitsudomoe Zouryouchuu\! - )0/ $1/; |
47 $newname =~ s/ (Ryvius Illusion \d+) - introduction / $1 - Introduction /; | 49 $newname =~ s/ (Ryvius Illusion \d+) - introduction / $1 - Introduction /; |
48 $newname =~ s/^Arigatou\.Tokyo\.Majin\.Ep(\d+)\./[Arigatou] Tokyo Majin - $1 /; | 50 $newname =~ s/^Arigatou\.Tokyo\.Majin\.Ep(\d+)\./[Arigatou] Tokyo Majin - $1 /; |
49 $newname =~ s/ (Inazuma Eleven - )(\d{2}) / $1 0$2 /; | 51 $newname =~ s/ (Inazuma Eleven - )(\d{2}) / $1 0$2 /; |
50 $newname =~ s/\] *Pocket Monsters - (\d+) - .*\[(H264 |)SUB\]/] Pokemon - $1 /i; | 52 $newname =~ s/\] *Pocket Monsters - (\d+) - .*\[(H264 |)SUB\]/] Pokemon - $1 /i; |
53 $newname =~ s/\] Ebiten - Koritsu Ebisugawa Koukou Tenmon-Bu - /] Ebiten - /i; | |
51 $newname =~ s/\] Fafner - /] Soukyuu no Fafner - /; | 54 $newname =~ s/\] Fafner - /] Soukyuu no Fafner - /; |
55 $newname =~ s/\] Sukitte Ii na yo\. - /] Sukitte Iinayo - /i; | |
56 $newname =~ s/\] Kono Naka ni Hitori Imouto ga Iru - /] Kono Naka ni Hitori Imouto ga Iru - /i; | |
52 $newname =~ s/\] Yakitate Japan (- |Ep)/] Yakitate!! Japan - /i; | 57 $newname =~ s/\] Yakitate Japan (- |Ep)/] Yakitate!! Japan - /i; |
53 $newname =~ s/\] Inu × Boku SS - /] Inu x Boku SS - /i; | 58 $newname =~ s/\] Inu × Boku SS - /] Inu x Boku SS - /i; |
59 $newname =~ s/\] 「K」 - /] K - /i; | |
60 $newname =~ s/\] Hidamari Sketch(×|×)Honeycomb - /] Hidamari Sketch x Honeycomb - /i; | |
54 $newname =~ s/\] Tasogare Otome × Amnesia - /] Tasogare Otome x Amnesia - /i; | 61 $newname =~ s/\] Tasogare Otome × Amnesia - /] Tasogare Otome x Amnesia - /i; |
55 $newname =~ s/\] Haiyore! Nyarlko-san - /] Haiyore! Nyarlko - /i; | 62 $newname =~ s/\] Haiyore! Nyarlko-san - /] Haiyore! Nyarlko - /i; |
56 $newname =~ s/\] Inu x Boku Secret Service - /] Inu x Boku SS - /i; | 63 $newname =~ s/\] Inu x Boku Secret Service - /] Inu x Boku SS - /i; |
57 $newname =~ s/\] Black Rock Shooter - 0/] Black Rock Shooter - /i; | 64 $newname =~ s/\] Black Rock Shooter - 0/] Black Rock Shooter - /i; |
58 $newname =~ s/\] Mashiro iro symphony - /] Mashiro-iro Symphony - /i; | 65 $newname =~ s/\] Mashiro iro symphony - /] Mashiro-iro Symphony - /i; |
77 $newname =~ s/\] Spiral - (\d+) .* \[640 x 480\]\[H\.264\]/] Spiral - $1 /; | 84 $newname =~ s/\] Spiral - (\d+) .* \[640 x 480\]\[H\.264\]/] Spiral - $1 /; |
78 $newname =~ s/\] Mayo Chiki - /] Mayo Chiki! - /i; | 85 $newname =~ s/\] Mayo Chiki - /] Mayo Chiki! - /i; |
79 $newname =~ s/\] Kaitou Tenshi Twin Angel Kyun Kyun Tokimeki Paradise - /] Twin Angel - Twinkle Paradise - /i; | 86 $newname =~ s/\] Kaitou Tenshi Twin Angel Kyun Kyun Tokimeki Paradise - /] Twin Angel - Twinkle Paradise - /i; |
80 $newname =~ s/\] Mai Hime - /] My-HiME - /i; | 87 $newname =~ s/\] Mai Hime - /] My-HiME - /i; |
81 $newname =~ s/\] EUREKA SEVEN AO - /] Eureka Seven AO - /; | 88 $newname =~ s/\] EUREKA SEVEN AO - /] Eureka Seven AO - /; |
89 $newname =~ s/\] CØDE:BREAKER - /] Code Breaker - /i; | |
82 $newname =~ s/\] Nazo no Kanojo X - /] Mysterious Girlfriend X - /i; | 90 $newname =~ s/\] Nazo no Kanojo X - /] Mysterious Girlfriend X - /i; |
83 $newname =~ s/\] Naruto Shippuden - /] Naruto Shippuuden - /i; | 91 $newname =~ s/\] Naruto Shippuden - /] Naruto Shippuuden - /i; |
84 $newname =~ s/\] -* *Ef - a Tale of Me(l|m)o(d|r)ies - /] ef - a tale of me$1o$2ies /i; | 92 $newname =~ s/\] -* *Ef - a Tale of Me(l|m)o(d|r)ies - /] ef - a tale of me$1o$2ies /i; |
85 $newname =~ s/\] Maji de Watashi ni Koi Shinasai!! /] Maji de Watashi ni Koi Shinasai! /i; | 93 $newname =~ s/\] Maji de Watashi ni Koi Shinasai!! /] Maji de Watashi ni Koi Shinasai! /i; |
86 $newname =~ s/\] Sei Juushi Bismarck /] Sei Juushi Bismark /i; | 94 $newname =~ s/\] Sei Juushi Bismarck /] Sei Juushi Bismark /i; |
315 #v2 | 323 #v2 |
316 $newname =~ s/(\(|\[) *(10bit-v2) *(\)|\])/[v2]/i; | 324 $newname =~ s/(\(|\[) *(10bit-v2) *(\)|\])/[v2]/i; |
317 #dvd v2 | 325 #dvd v2 |
318 $newname =~ s/ \[DVD\] v2/ [v2 DVD]/i; | 326 $newname =~ s/ \[DVD\] v2/ [v2 DVD]/i; |
319 #nothing | 327 #nothing |
320 $newname =~ s/(\(|\[) *(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; | 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; |
321 #dvd | 329 #dvd |
322 $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; | 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; |
323 #dvd again | 331 #dvd again |
324 $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; | 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; |
325 #1080p BD | 333 #1080p BD |
326 $newname =~ s/(\(|\[) *(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; | 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; |
327 #720p | 335 #720p |
328 $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; | 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; |
329 #720p BD | 337 #720p BD |
330 $newname =~ s/(\(|\[) *(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; | 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; |
331 #BD | 339 #BD |
332 $newname =~ s/(\(|\[) *(Blu-Ray|BD 540p) *(\)|\])/[BD]/i; | 340 $newname =~ s/(\(|\[) *(Blu-Ray|BD 540p) *(\)|\])/[BD]/i; |
333 #576p | 341 #576p |
334 $newname =~ s/(\(|\[) *(1024x576|H264 1024x576) *(\)|\])/[576p]/i; | 342 $newname =~ s/(\(|\[) *(576p hi10|1024x576|H264 1024x576) *(\)|\])/[576p]/i; |
335 #1080p | 343 #1080p |
336 $newname =~ s/(\(|\[) *(1920x1080) *(\)|\])/[1080p]/i; | 344 $newname =~ s/(\(|\[) *(1920x1080) *(\)|\])/[1080p]/i; |
337 ##SLICED BREAD pt.2 | 345 ##SLICED BREAD pt.2 |
338 $newname =~ s/(\d+)v(\d+)/$1 [v$2]/i; | 346 $newname =~ s/(\d+)v(\d+)/$1 [v$2]/i; |
339 $newname =~ s/\[BD\]\[1920x1080 H264-Flac\]/[1080p BD]/i; | 347 $newname =~ s/\[BD\]\[1920x1080 H264-Flac\]/[1080p BD]/i; |