[Feature Request] Regex rename

Suggestions and discussion of future versions
Post Reply
cinderblock63
Member
Member
Posts: 23
Joined: Thu Jan 22, 2009 10:07 am
Location: Menlo Park, CA
Contact:

[Feature Request] Regex rename

Post by cinderblock63 »

I often find myself renaming files to clean up the names by, among other things, fixing capitalization, changing dots (.) back to spaces ( ), and if time allows adding episode names to show episodes.

Example of full (maybe not?) possibilities. Some not even discussed.

Code: Select all

show.season.1.sxxsxx.720p.hdtv.DD5.1-asdf.mkv
to

Code: Select all

Show/Season 1/Show SxxExx Ep Name 720p HDTV DD5.1-ASDF.mkv
Often shows come in season packs and I feel it would be easy to add a "regex rename" somewhere. Maybe right click on the torrent?
It could also be useful when episodes come out in individual torrents. Especially if you could save/reuse previously constructed ones. Maybe even add automatic renaming (as option when adding a torrent?)

A more sophisticated version (plugin?) could even connect to a tv database of choice and add missing episode names.

I also just started using Flexget which might have the facilities I need, but that only works for feeds... I'd still like to add torrents manually.

I'd love to try and get into deluge myself and see if I can add it. Never used python but I'm no novice. Best place to start if I just want to hack it in myself?
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: [Feature Request] Regex rename

Post by johnnyg »

Writing a simple regex rename plugin would be pretty simple as python has built in support for regex.
You could start by writing a UI client script and then convert it to a plugin: http://dev.deluge-torrent.org/wiki/Deve ... iClient1.2
Post Reply