Page 1 of 1

Rename TV Series Folder / Use Custom Series Name instead of Database Series Name

Posted: 23 Mar 2022, 19:11
by Crys
Hello all

I have a couple of TV series that I want to give a different folder name than in iMDB/TMDB.

For example, instead of:
Star Trek Discovery/Season/Episode.mkv
Star Trek - Discovery [DSC]/Season/Episode.mkv

Is it possible to have that always output automatically and move the files, with for example:
filebot --format "/{n}/{s}/{e}"

I am using filebot v4.9.6 on Ubuntu via CLI.

Re: Rename TV Series Folder

Posted: 24 Mar 2022, 00:42
by rednoah
Yes, FileBot can move files into a new file and folder structure, according to your custom format:
https://www.filebot.net/naming.html


Image


:idea: Please read FAQ #1 and learn how format expressions work.


:idea: I'd use the {plex} format and then just keep it like that. Inserting a - dash somewhere in the series name will make things significantly more complicated so I'd just not do that, especially if you're not yet familiar with complex custom formats.

Re: Rename TV Series Folder

Posted: 24 Mar 2022, 17:05
by Crys
Thanks for the answer ... but this is not my problem.
I know how to rename files and move them to folders via filebot.

Sorry if I have expressed myself in a misleading way:

The example from above even more detailed:
I have the TV series "Star Trek Discovery", if I move it via

Code: Select all

filebot --format "/{n}/{s}/{e}
the name "Star Trek Discovery" is taken via {n} attribute. But I don't want that! I want to have "Star Trek - Discovery [DSC]"! (as described above).
Now I can of course set this manually via

Code: Select all

filebot --format "/Star Trek - Discovery [DSC]/{s}/{e}
But if there is another episode of a series in between, it also ends up in the same (wrong) folder. So no solution either.

Is there a way that I can specify TV series "Star Trek Discovery" should always be renamed to "Star Trek - Discovery [DSC]"?
Some kind of table, database ... if, then ...
There are of course many more series that should similarly have a different name with me than it is loaded by filebot from iMDB/TMDB.

Re: Rename TV Series Folder

Posted: 25 Mar 2022, 08:23
by rednoah
Yes, you can do custom replacements:

Code: Select all

{ n.replace('Star Trek: Discovery' : 'Star Trek - Discovery [DSC]') }

:arrow: You can maintain a lookup table with mappings via an external text file. Please read [SNIPPET] Override / Hardcode Series Names
for details.

Re: Rename TV Series Folder / Use Custom Series Name instead of Database Series Name

Posted: 27 Mar 2022, 10:24
by Crys
Very nice. Thank you very much, this is exactly how it can be done!