Page 1 of 1

Having both English & Orginal Titel for Anime?

Posted: 11 Dec 2018, 22:34
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}

Re: Having both English & Orginal Titel for Anime?

Posted: 12 Dec 2018, 06:20
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.

Re: Having both English & Orginal Titel for Anime?

Posted: 12 Dec 2018, 08:21
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.

Re: Having both English & Orginal Titel for Anime?

Posted: 12 Dec 2018, 10:30
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.

Re: Having both English & Orginal Titel for Anime?

Posted: 12 Dec 2018, 22:23
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}

Re: Having both English & Orginal Titel for Anime?

Posted: 13 Dec 2018, 08:13
by rednoah
This will do:

Code: Select all

(n == primaryTitle ? n : n + ' (' + primaryTitle + ')').colon(' - ')

Re: Having both English & Orginal Titel for Anime?

Posted: 02 Jun 2019, 13:42
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 - ?

Re: Having both English & Orginal Titel for Anime?

Posted: 02 Jun 2019, 14:06
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

Re: Having both English & Orginal Titel for Anime?

Posted: 02 Jun 2019, 14:20
by Silke79
Thanks, works great now.