Renaming and removing (:)

All about user-defined episode / movie / file name format expressions
Post Reply
bignick8t3
Posts: 3
Joined: 24 Jun 2013, 10:41

Renaming and removing (:)

Post by bignick8t3 »

Hi All,

I have used the following syntax to rename my TV episodes for XBMC.

{n}.{s00e00}.{t}

This works excellent apart from when an (:) is in the renamed title pulled from the TVDB.

For example, the title for CSI: Miami and Episodes of 24 where the time is 1:00am 2:00am

I've searched and read what I believe to be the syntax to remove and replace the (:) but I cannot get it to work and I will admit it's most likely me being silly.

Thanks

Nick
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Renaming and removing (:)

Post by rednoah »

Works just fine:

Code: Select all

D:\testdata\AMC-TEST>filebot -rename "CSI Miami 1x01.mp4" --format "{n}.{s00e00}.{t}"
Rename episodes using [TheTVDB]
Auto-detected query: [CSI Miami]
Fetching episode data for [CSI: Miami]
Stripping invalid characters from new path: CSI: Miami.S01E01.Golden Parachute
[MOVE] Rename [D:\testdata\AMC-TEST\CSI Miami 1x01.mp4] to [CSI Miami.S01E01.Golden Parachute.mp4]
Processed 1 files
Special characters are taken care of and stripped away automatically unless you've specifically set the unixfs switch.
:idea: Please read the FAQ and How to Request Help.
bignick8t3
Posts: 3
Joined: 24 Jun 2013, 10:41

Re: Renaming and removing (:)

Post by bignick8t3 »

Apologies I didn't explain myself correctly.

Filebot will prompt me to strip out the illegal characters just fine, but for the episodes of 24 I was looking to replace : with . otherwise the times look like 100am 200am.

Thanks again

Nick
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Renaming and removing (:)

Post by rednoah »

There you go:

Code: Select all

{t.tr(':','.')}
:idea: Please read the FAQ and How to Request Help.
bignick8t3
Posts: 3
Joined: 24 Jun 2013, 10:41

Re: Renaming and removing (:)

Post by bignick8t3 »

Excellent.

Many thanks
Post Reply