Deleting a double year
Posted: 29 Jun 2019, 23:00
Hi,
I'm renaming episode files, using TheTVDB for use in my Plex server.
I don't use the {plex} scheme, because I like to include the year of the show in the title. This is my custom format:
...\TV Shows\{n} ({y})\{episode.special ? 'Specials' : 'Season '+s.pad(2)}\{n} ({y}) - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t}{subt}
Using this, the first The Blue Planet episode looks like this: The Blue Planet (2001) - S01E01 - Introduction (which is good).
However, the first Life episode looks like this: Life (2009) (2009) - S01E01 - Challenges of Life (which is not good).
Why? Because in TheTVDB some TV shows' names have the year appended (like Life), and others don't.
I'd like to modify my scheme, so the year will still be added, but that if a double year appears (e.g. Life (2009) (2009) - S01E01 - Challenges of Life), the double year will get deleted (e.g. Life (2009) - S01E01 - Challenges of Life).
I couldn't really figure out a solution using https://www.filebot.net/naming.html.
Thanks for reading!
I'm renaming episode files, using TheTVDB for use in my Plex server.
I don't use the {plex} scheme, because I like to include the year of the show in the title. This is my custom format:
...\TV Shows\{n} ({y})\{episode.special ? 'Specials' : 'Season '+s.pad(2)}\{n} ({y}) - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t}{subt}
Using this, the first The Blue Planet episode looks like this: The Blue Planet (2001) - S01E01 - Introduction (which is good).
However, the first Life episode looks like this: Life (2009) (2009) - S01E01 - Challenges of Life (which is not good).
Why? Because in TheTVDB some TV shows' names have the year appended (like Life), and others don't.
I'd like to modify my scheme, so the year will still be added, but that if a double year appears (e.g. Life (2009) (2009) - S01E01 - Challenges of Life), the double year will get deleted (e.g. Life (2009) - S01E01 - Challenges of Life).
I couldn't really figure out a solution using https://www.filebot.net/naming.html.
Thanks for reading!