Having both English & Orginal Titel for Anime?

All about user-defined episode / movie / file name format expressions
Post Reply
Silke79
Posts: 28
Joined: 11 Dec 2018, 22:13

Having both English & Orginal Titel for Anime?

Post by Silke79 »

Could not find a topic of this so far in here.
I'm using this format showed here under for my Anime series, but I would love to be able it to post with both the Original and English Titel on the main folder like so when there are both Japanese and English titel.

How it looks before renaming
[HorribleSubs] Kaze ga Tsuyoku Fuiteiru - 03 [720p]

How I would like it to be
S:/Anime/Run with the Wind (Kaze ga Tsuyoku Fuiteiru) (2018)/Season 01/Run with the Wind - S01E03 - A Single Flower - #0003 - 720p x264 2ch [2018-10-17]

How it is now
S:/Anime/Run with the Wind (2018)/Season 01/Run with the Wind - S01E03 - A Single Flower - #0003 - 720p x264 2ch [2018-10-17]

Code: Select all

S:/Anime/{n.lowerTrail().colon(' - ')} ({y})/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n.colon(' - ').lowerTrail()} - {s00e00} - {t.colon(' - ').lowerTrail()} - #{absolute.pad(4)} - {vf} {vc} {af} [{airdate}]{'.'+lang}
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Having both English & Orginal Titel for Anime?

Post by rednoah »

Step 1: Use {primaryTitle}:

Code: Select all

{n} ({primaryTitle})
:idea: Note that this will only work if you're using AniDB.


Step 2: Check if n equals primaryTitle and then act accordingly:

Code: Select all

{n == primaryTitle ? n : n + ' (' + primaryTitle + ')'}

:idea: Note that AniDB doesn't have seasons, and {s} and {s00e00} work by FileBot cross-referencing things to TheTVDB data, if possible, which any not always be the case. I wouldn't use seasons, since AniDB / Anime simply don't have seasons.
:idea: Please read the FAQ and How to Request Help.
Silke79
Posts: 28
Joined: 11 Dec 2018, 22:13

Re: Having both English & Orginal Titel for Anime?

Post by Silke79 »

I need the SxxExx part there because I use Plex to view the anime and then have Medusa to keep track of episodes.

But I will try it out and see how it works when I get back home again.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Having both English & Orginal Titel for Anime?

Post by rednoah »

If you're using Plex, then you probably want to process everything with TheTVDB, since Plex uses TheTVDB, and so things will match always, and not just kinda mostly.
:idea: Please read the FAQ and How to Request Help.
Silke79
Posts: 28
Joined: 11 Dec 2018, 22:13

Re: Having both English & Orginal Titel for Anime?

Post by Silke79 »

Looks like it works fine for me now with some of the series changing to SxxExx and in worse case scenario I have to put original tital in manually on the folder after I used TheTVdb when AniDB dont provide SxxExx, but one small problem is that I can't find a solution on how to get it to change : to - instead when need be.

S:/TV-Serier/Angolmois :arrow: : Record of Mongol Invasion (Angolmois :arrow: : Genkou Kassenki) (2018)/Season 01/Angolmois - Record of Mongol Invasion - S01E01 - The Far End of Japan - #0001 - 720p x264 2ch [2018-07-11]

Code: Select all

S:/TV-Serier/{n == primaryTitle ? n : n + ' (' + primaryTitle + ')'} ({y})/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n.colon(' - ').lowerTrail()} - {s00e00} - {t.colon(' - ').lowerTrail()} - #{absolute.pad(4)} - {vf} {vc} {af} [{airdate}]{'.'+lang}
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Having both English & Orginal Titel for Anime?

Post by rednoah »

This will do:

Code: Select all

(n == primaryTitle ? n : n + ' (' + primaryTitle + ')').colon(' - ')
:idea: Please read the FAQ and How to Request Help.
Silke79
Posts: 28
Joined: 11 Dec 2018, 22:13

Re: Having both English & Orginal Titel for Anime?

Post by Silke79 »

How do I get this to remove the year if the title is already providing it with the year?

TV-Serier\Dororo (2019) (2019)\Season 01\Dororo (2019) - S01E19 - #0019 - The story of the Amanojaku - 720p AVC 2ch [2019-05-20].mkv

and will instead rename it like this.

TV-Serier\Dororo (2019)\Season 01\Dororo (2019) - S01E19 - #0019 - The story of the Amanojaku - 720p AVC 2ch [2019-05-20].mkv

Code: Select all

TV-Serier/{(n == primaryTitle ? n : n + ' (' + primaryTitle + ')').colon(' - ')} ({y})/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n.colon(' - ').lowerTrail()} - {s00e00} - #{absolute.pad(4)} - {t.colon(' - ').lowerTrail()} - {vf} {vc} {af} [{airdate}]{'.'+lang}
And if there is a way when there is not listed a episode number

Code: Select all

#{absolute.pad(4)}
that it will not show - # -, but instead remove it when naming and keeping it when there is - #0019 - ?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Having both English & Orginal Titel for Anime?

Post by rednoah »

1.
Usually, ny can be used in stead of n, and that does take care of adding y only if it's not part of n already.


2.

Code: Select all

{'#' + absolute.pad(4)}
:idea: viewtopic.php?f=5&t=1895
:idea: Please read the FAQ and How to Request Help.
Silke79
Posts: 28
Joined: 11 Dec 2018, 22:13

Re: Having both English & Orginal Titel for Anime?

Post by Silke79 »

Thanks, works great now.
Post Reply