I have an amc script where it would move kids shows to a specific folder based on rating (TV-Y & TV-Y7). For some reason some shows rated as TV-Y are getting moved into the adult tv shows section. Any ideas why this is the case?
Fore example the show T.O.T.S shows as TV-Y in TheMovieDB.
Rename episodes using [TheMovieDB] with [Airdate Order]
Lookup via [Curious George] [Curious George]
Fetching episode data for [Curious George]
?? 398 episodes
[TEST] from [N:\Media\#Unprocessed\Curious George - S01E18 - Squirrel For a Day.mkv] to [N:\Media\TV Shows\Kids TV\Cur
ious George\Season 01\Curious George - S01E18 - Squirrel For a Day.mkv]
Processed 1 file
Rename episodes using [TheMovieDB] with [Airdate Order]
Lookup via [T.O.T.S.] [T O T S]
Fetching episode data for [T.O.T.S.]
?? 150 episodes
[TEST] from [N:\Media\#Unprocessed\T.O.T.S. - S03E01 - Super Baby.mkv] to [N:\Media\TV Shows\Adults\T.O.T.S\Season 03\
T.O.T.S. - S03E01 - Super Baby.mkv]
Processed 1 file
What is the value of {certification} for these shows? You'll want to run a test in the FileBot Desktop application and use {certification} as format so you can see the value.
$ filebot -rename . --db TheMovieDB::TV -non-strict --format "{certification}/{ any{ certification ==~ /G|PG/ ? 'Family' : 'Adults' }{ 'Adults' } }/{plex.name}" --log INFO --action TEST
[TEST] from [Curious George - S01E18 - Squirrel For a Day.mkv] to [TV-Y/Adults/Curious George - S01E18 - Squirrel For a Day.mkv]
[TEST] from [T.O.T.S. - S03E01 - Super Baby.mkv] to [G/Family/T.O.T.S. - S03E01 - Super Baby.mkv]
Adding {certification} to the format returns the show TOTS as G (TheMovieDB Episode mode) However, TheMovieDB website shows the show TOTS as TV-Y, not G
Also tried adding the below to my @ file, but it appears to ignore it as it's not valid. However the output shows it's already using TheMovieDB as the db. --db
TheMovieDB::TV
Last edited by valiantslack on 26 Jul 2023, 15:24, edited 1 time in total.
TOTS shows up as G to me. Keep in mind that the website will show you the localized certification value, so the display value may change depending on your language preferences. You'll want to work with the values that FileBot sees when writing conditions.