一个简单的命令行电影目录名清理程序
antiseptic的Python项目详细描述
一个简单的命令行电影目录名清理器
音高
之前:
$ tree MOVIES/ -L 1 MOVIES/ ├── Across.the.Hall.2009.DVDRip.XviD-BeStDivX ├── A.Mighty.Heart[2007[DvDrip[Eng]-aXXo ├── District.9.REPACK.R5.LiNE.XviD-KAMERA ├── Drag Me To Hell 2009.DvDRip-FxM ├── Dragonball.Evolution.DVDRip.XviD-DoNE ├── Ed.Wood.XviD.DVD-Rip ├── Gamer.2009.WORKPRiNT.XviD.AC3-ViSiON ├── G-Force.DVDRip.XviD-JUMANJi ├── Ghosts Of Girlfriends Past.2009.WorkPrint.Xvid {1337x}-Noir ├── G.I.Joe The Rise Of Cobra.2009.DvDRip-FxM ├── Harry Potter and the Half Blood Prince.DVDRip.XviD-NeDiVx ├── I.Served.the.King.of.England.DVDRip.XviD-iAPULA ├── Knowing (2009) [DvdRip] [Xvid] {1337x}-Noir ├── Star.Trek.2009.DvDRip-FxM ├── State of Play (2009) DVDRip XviD ├── The.Hangover.[2009].DVDSCR.[ENG]-MAXSPEED ├── The.Hurt.Locker.2008.DVDRiP.XViD ├── Transformers.Revenge.of.the.Fallen.DVDRip.XviD-iMBT └── UP[2009]DvDrip-LW
之后:
$ tree MOVIES/ -L 1 MOVIES/ ├── Across the Hall (2009) ├── A Mighty Heart (2007) ├── District 9 ├── Drag Me To Hell (2009) ├── Dragonball Evolution ├── Ed Wood ├── Gamer (2009) ├── G-Force ├── Ghosts Of Girlfriends Past (2009) ├── G I Joe The Rise Of Cobra (2009) ├── Harry Potter and the Half Blood Prince ├── I Served the King of England ├── Knowing (2009) ├── Star Trek (2009) ├── State of Play (2009) ├── The Hangover. (2009) ├── The Hurt Locker (2008) ├── Transformers Revenge of the Fallen └── UP (2009)
功能
- 使用regex规则
- 命令行界面
- 无第三方依赖关系
- 易于更新的规则
- 没有在线服务
要求
- Python3
开始
$ pip install antiseptic $ antiseptic update $ antiseptic rename <movie_directory>
如果在一个目录中有许多电影,并且要在 一次,使用-r标志:
$ antiseptic rename -r <movie_directory>
如何更新规则?
$ antiseptic update