[Requests]RenameFolder-InvalidCharacter-MetaTag

All your suggestions, requests and ideas for future development
Post Reply
Reneg
Posts: 37
Joined: 04 Jan 2012, 20:32

[Requests]RenameFolder-InvalidCharacter-MetaTag

Post by Reneg »

Hi,

Here some suggestions to make FileBot more powerfull. :)

1 - AutoRename of the Folder containing the movie or tvshows file:

Before FileBot:
\xyz\anonymous (2011).mkv

After FileBot:
\anonymous (2011)\anonymous (2011).mkv

or:

\xyz\True Blood - S04E12 - And When I Die.mkv
to
\True Blood\Season 4\True Blood - S04E12 - And When I Die.mkv

2 - When invalid character are found is possible to choice how to fix that:

if "?" -> Remove
if ":" -> Replace with "-"

3 - When Filebot is tryng to match the title, the scraper could try to use ID TAG (From MKV for ex.)

Hope my suggestions are usefull! .... thank you for your creation :) (Filebot).
User avatar
rednoah
The Source
Posts: 23132
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Requests]RenameFolder-InvalidCharacter-MetaTag

Post by rednoah »

1. Fully supported. Just define the folder/file naming structure via "Edit Format". The docs on how to use the naming scheme should have plenty of examples.
e.g.

Code: Select all

../{movie}/{movie}
2. Fully supported. Use naming scheme => replace() function. One of the examples shows you how to remove [!?.]
e.g.

Code: Select all

t.replace(':','-').replaceAll(/[?]/, '')

3. Thought about that, but then again only very very few MKVs are actually tagged with metadata. Besides auto-detection from folder/file structure seems to work pretty much perfectly by now anyway. But if things are not recognized let me know and I'll have a look at it.
:idea: Please read the FAQ and How to Request Help.
wengang1
Posts: 3
Joined: 04 Mar 2017, 23:49

Re: [Requests]RenameFolder-InvalidCharacter-MetaTag

Post by wengang1 »

I'm a newbie to Filebot. I have been using the automated renamer, but I don't know where to put these naming rules, such as you listed in #2:

t.replace(':','-').replaceAll(/[?]/, '')

The only place I see to put code is in Episode Format.

Currently, I'm using a default: {n} - {s00e00} - {t}
So where would this extra code go? Below that, or somewhere else?

Like the OP, I would like the colon changed to hyphen and question mark deleted automatically.
Thanks.
wengang1
Posts: 3
Joined: 04 Mar 2017, 23:49

Re: [Requests]RenameFolder-InvalidCharacter-MetaTag

Post by wengang1 »

ok i think i figured it out:

{n} - {s00e00} - {t.replace(':','-').replaceAll(/[?]/, '')}

right? seems to work anyway.
User avatar
rednoah
The Source
Posts: 23132
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Requests]RenameFolder-InvalidCharacter-MetaTag

Post by rednoah »

That'll work.

This is how I'd write it:

Code: Select all

{n} - {s00e00} - {t.colon(' - ').replace('?', '')}
:idea: Please read the FAQ and How to Request Help.
Post Reply