TV show renaming

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

TV show renaming Mon Dec 19, 2011 2:46 pm • by SkY
Hi!

I've seen some scripts that handel tv show renaming but I can't find what I really need.
I would like all of my tv show names to be in this format:
Its.Always.Sunny.In.Philadelphia.S07E09.720p.HDTV.x264-ORENJI

And not:
its.always.sunny.in.philadelphia.s07e09.720p.hdtv.x264-orenji


Is this in any way possible with Hazel (maybe with the beta?)
SkY
 
Posts: 6
Joined: Tue Sep 20, 2011 8:35 am

Re: TV show renaming Tue Dec 20, 2011 3:01 pm • by Mr_Noodle
Please keep questions in the support forum.The Tips forum is for people providing tips, not asking for them.

If you use the rename action, click on the "name" token. That will give you different options to change the case/capitalization.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: TV show renaming Wed Dec 21, 2011 3:29 am • by SkY
Mr_Noodle wrote:Please keep questions in the support forum.The Tips forum is for people providing tips, not asking for them.

If you use the rename action, click on the "name" token. That will give you different options to change the case/capitalization.


Oeps sorry!

I've used the rename action, it gets me somewhere but it's not perfect... 2 "problems"
1. I want the groupname (everything behind the dash '-' to be uppercase) -> shell script?
2. When I choose CamelCase everything is ok, except '720P.Hdtv.X264' - my solution was: use the replace option ('720P.Hdtv.X264' -> '720p.HDTV.x264') but this doesn't work (maybe there should be an option so the replace script minds caps/nocaps, now it thinks Hdtv==HDTV==hdtv (or am I doing something wrong?))

Second problems shouldn't be that hard to maybe implement in 3.0? And maybe some has a simple shell script for the first problem?

Sorry for my good English ;-)
SkY
 
Posts: 6
Joined: Tue Sep 20, 2011 8:35 am

Re: TV show renaming Wed Dec 21, 2011 1:22 pm • by Mr_Noodle
Use the pattern matching and do capture tokens for the different parts of the name. You can then use different case for the different parts as appropriate. Search the help for "pattern matching" or "custom tokens".
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: TV show renaming Sat Dec 24, 2011 8:18 am • by SkY
Thanks Noodle! It works!
SkY
 
Posts: 6
Joined: Tue Sep 20, 2011 8:35 am


Return to Support