Trouble with plex.tail thru CLI (Missing Season directory)

Any questions? Need some help?
Post Reply
dz221
Posts: 3
Joined: 27 May 2020, 06:12

Trouble with plex.tail thru CLI (Missing Season directory)

Post by dz221 »

Hi guys,

I'm running into a bit of an issue when trying to format using the {plex} binding. When I try using it, it works fine except that it seems to swallow the 'Season' directory.

When I try testing it using the 'filebot list' it works exactly as i would expect it:

Code: Select all

filebot -list --q "Tower of God" --format {plex.tail}

Code: Select all

Tower of God/Season 01/Tower of God - S01E01 - BALL
However, when I try to use it in a dry-run for renaming the Season part disappears:

Code: Select all

filebot -rename '/mnt/pidrive3/torrents/hardlinks/anime/[HorribleSubs] Tower of God - 03 [1080p].mkv' --output /mnt/pidrive3/media/anime/  --action test -non-strict --format {plex.tail}

Code: Select all

media/anime/Tower of God/Tower of God - E03 - The Correct Door.mkv
Here's the sysinfo output:
Image

Result when using '-list'
Image

Result when running it with real file using 'test'
Image
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Trouble with plex.tail thru CLI (Missing Season directory)

Post by rednoah »

Anime don't have season numbers, and thus in Anime Mode, {plex} will not give you Series Mode file paths. Since you're stripping away the Anime folder via {plex.tail} this may not be immediately obvious.


:arrow: You'll want to add --db TheTVDB --order Airdate to your command to be explicit about Series Mode, instead of relying on auto-detection which may or may not apply Series Mode on the given files.

Code: Select all

--db TheTVDB --order Airdate
:idea: Please read the FAQ and How to Request Help.
dz221
Posts: 3
Joined: 27 May 2020, 06:12

Re: Trouble with plex.tail thru CLI (Missing Season directory)

Post by dz221 »

I see, thanks for the reply rednoah!

Do you know why -list and -rename commands would give different result here? I am just curious about this part.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Trouble with plex.tail thru CLI (Missing Season directory)

Post by rednoah »

-list defaults to --db TheTVDB --order Airdate unless otherwise specified, while -rename (with auto-detection as per omitted --db option) may or may not choose to process files with --db TheTVDB --order Airdate depending on the files at hand.

If you do -list --db TheTVDB --order Absolute then the results will resemble Anime Mode processing.
:idea: Please read the FAQ and How to Request Help.
dz221
Posts: 3
Joined: 27 May 2020, 06:12

Re: Trouble with plex.tail thru CLI (Missing Season directory)

Post by dz221 »

ah that makes sense! Thanks again!
Post Reply