Page 1 of 1

[Requests]RenameFolder-InvalidCharacter-MetaTag

Posted: 11 Mar 2012, 10:25
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).

Re: [Requests]RenameFolder-InvalidCharacter-MetaTag

Posted: 11 Mar 2012, 10:55
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.

Re: [Requests]RenameFolder-InvalidCharacter-MetaTag

Posted: 05 Mar 2017, 00:04
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.

Re: [Requests]RenameFolder-InvalidCharacter-MetaTag

Posted: 05 Mar 2017, 00:05
by wengang1
ok i think i figured it out:

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

right? seems to work anyway.

Re: [Requests]RenameFolder-InvalidCharacter-MetaTag

Posted: 06 Mar 2017, 04:35
by rednoah
That'll work.

This is how I'd write it:

Code: Select all

{n} - {s00e00} - {t.colon(' - ').replace('?', '')}