However, I'm having trouble figuring out how to check if a show/movie has a particular genre and then directing it to a specific folder if it does.
I organize my Movies and TV Shows into 3 categories; Animation, Anime, Live-action. My tree looks like this (ignore the blurs)...

Basically, I would like FileBot to check if a series contains certain TVDB genre(s) and then output to a specific folder depending on true/false. For TMDB movies, if the movie contains a particular keyword it will be outputted to a specific folder.
In code it would look like this...
Code: Select all
genres = [TVDB GENRES...]
if ('animation' and 'anime') in genres:
type = 'Anime'
elif 'animation' in genres:
type = 'Animated'
else:
type = 'Live-Action'
output_folder = f"Movies/{type}"
TVDB has genre tags instead of keywords like TMDB, so I'd do essentially the same thing.
I know I'll have to use the --filters option to make this work, I just can't seem to find the documentation on it that I need. I'm also wondering if my input folder will work, because it contains several sub-folders, one for each tracker I'm downloading from.
Here's what I have so far in my docker-compose. I haven't actually tested anything yet because I know my --filter options won't work (I just made them up as placeholders/examples).
Code: Select all
# - ===== FileBot =====
filebot_service:
image: rednoah/filebot:watcher
container_name: filebot_container
restart: unless-stopped
command: /media/BitTorrent/Complete --action copy --conflict skip --filter "[animation, anime] in genres" --def "VIDEO_GENRE=Anime" --filter "animation in genres" --def "VIDEO_GENRE=Animation" --filter "[animation, anime] not in genres" --def "VIDEO_GENRE=Live-Action" --output "/media/Ashley/Media" --def movieFormat="Movies/$VIDEO_GENRE/{collection+'/'}{n.colon(' - ')} ({y}){' CD'+pi}{subt}" seriesFormat="Series/$VIDEO_GENRE/{ny}/{'Season ' + {s.pad(2)}}/{s00e00} - {t}"
volumes:
- /Q/Media/:/media/Ashley/Media/
- /S/BitTorrent/Complete/:/media/BitTorrent/Complete/
- ./filebot/data/:/data