Season Names?

Support for Windows users
Post Reply
DevXen
Power User
Posts: 164
Joined: 12 Oct 2014, 21:15

Season Names?

Post by DevXen »

Is it possible to pull the Season titles from thetvdb? - Some Shows have titles for the seasons. the current example is MasterClass https://thetvdb.com/series/masterclass and it would be nice to have that just added instead of having to manually add them. - I Tried searching the forums and wasn't able to find any references to it.

Thanks,
-Dev
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Season Names?

Post by rednoah »

If you use TheMovieDB, then the {sn} season name binding will work.


:idea: TheTVDB APIv2 does not currently support season names. The website does, but we can't use that. TheTVDB APIv4 does, but it's not yet stable nor working reliably.
:idea: Please read the FAQ and How to Request Help.
DevXen
Power User
Posts: 164
Joined: 12 Oct 2014, 21:15

Re: Season Names?

Post by DevXen »

Okay. Darn. I use thetvdb cause then I know Plex will pickup the shows without any problem.

Unless there's a way to mix TVDB and TheMovieDB into a single script. Though that night just be not work then it would even be worth.

Here's to APIv4 getting stable and useable sometime.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Season Names?

Post by rednoah »

FileBot r9154 adds support for the new seasonName field that TheTVDB APIv4 has recently added to the episode record.


1. Enable experimental features, i.e. use TheTVDB APIv4 implementation:

Code: Select all

$ filebot -script fn:properties --def net.filebot.WebServices.experimental=true
...

2. Test {sn} binding:

Code: Select all

$ filebot -list --db thetvdb --q masterclass --format "{sn} | {episode}" --filter "s <= 10 && e == 1" --log INFO
James Patterson Teaches Writing | MasterClass - 1x01 - Introduction
Usher Teaches The Art Of Performance | MasterClass - 2x01 - Introduction
Annie Leibovitz Teaches Photography | MasterClass - 3x01 - Introduction
Serena Williams Teaches Tennis | MasterClass - 4x01 - Introduction - Focus and Desire
...
:idea: Please read the FAQ and How to Request Help.
DevXen
Power User
Posts: 164
Joined: 12 Oct 2014, 21:15

Re: Season Names?

Post by DevXen »

Nice. Can I enable that experimental the same way with Windows 10?

Open a CMD in the folder of filebot
They just run the same command to enable it?

Code: Select all

filebot -script fn:properties --def net.filebot.WebServices.experimental=true
Cause imma have fun rewriting my script tomorrow it looks like. It's fine I also need to add in to separate 4k videos into it. Now I have a 4k TV. So I've been meaning to work on it soon anyways
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Season Names?

Post by rednoah »

Yes, filebot commands work the same on all platforms.
:idea: Please read the FAQ and How to Request Help.
DevXen
Power User
Posts: 164
Joined: 12 Oct 2014, 21:15

Re: Season Names?

Post by DevXen »

So i tried that and yikes. it ruined so many other things i went back to disabling it. haha thanks though.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Season Names?

Post by rednoah »

DevXen wrote: 01 Apr 2022, 21:28 So i tried that and yikes. it ruined so many other things i went back to disabling it. haha thanks though.
Do you have screenshots or logs for things that still work strange with the APIv4 implementation?
:idea: Please read the FAQ and How to Request Help.
DevXen
Power User
Posts: 164
Joined: 12 Oct 2014, 21:15

Re: Season Names?

Post by DevXen »

Yeah I can enable it again. And load a few files and show you the difference in the matching with my script. It's almost midnight so I'll probably do that tomorrow
DevXen
Power User
Posts: 164
Joined: 12 Oct 2014, 21:15

Re: Season Names?

Post by DevXen »

rednoah wrote: 02 Apr 2022, 04:02
DevXen wrote: 01 Apr 2022, 21:28 So i tried that and yikes. it ruined so many other things i went back to disabling it. haha thanks though.
Do you have screenshots or logs for things that still work strange with the APIv4 implementation?
Here you go. also as i was trying to get these pics. the first view shows i tried APIv4 couldn't even find. Namely Batwoman, and Almost paradise.

Here is the current api.
Image

And here is the APIv4:
Image

You'll notice it matched it. but to the wrong season.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Season Names?

Post by rednoah »

Can you paste file paths as text (press F7 to copy debug information) so I can reproduce the issue?


:?: Series lookup seems to work. Do you get different results?
Image


:?: I've tried with the first file path in a clean test case and I get different results:
Image


:idea: I'd use a custom format like {plex.name} for testing. Otherwise your custom format code might obfuscate things.
:idea: Please read the FAQ and How to Request Help.
DevXen
Power User
Posts: 164
Joined: 12 Oct 2014, 21:15

Re: Season Names?

Post by DevXen »

yeah here, i got your reply late at night and completely forgot until just now. sorry.

I have a crazy complex script. - also my layout look sway different than yours, i don't have a pulldown at the top with which to match, but i'm guessing thats just a Windows/Linux difference.
but here's the debug info on the files.

Code: Select all

Macgyver [2016] [TV-14] [5.2★] [US] [CBS]\[2020] - Season 04 [Mixed]\Macgyver (2016) - S04E01 - Fire + Ashes + Legacy = Phoenix [41 Min] [02.07.2020] [HDTV 480p x264] [AAC 2ch].mkv	
Macgyver [2016] [TV-14] [5.2★] [US] [CBS]\[2020] - Season 04 [Mixed]\Macgyver (2016) - S04E02 - Red Cell + Quantum + Cold + Committed [40 Min] [02.14.2020] [HDTV 480p x264] [AAC 2ch].mkv	
Macgyver [2016] [TV-14] [5.2★] [US] [CBS]\[2020] - Season 04 [Mixed]\Macgyver (2016) - S04E03 - Kid + Plane + Cable + Truck [39 Min] [02.21.2020] [HDTV 480p x264] [AAC 2ch].mkv	
Macgyver [2016] [TV-14] [5.2★] [US] [CBS]\[2020] - Season 04 [Mixed]\Macgyver (2016) - S04E04 - Windmill + Acetone + Celluloid + Firing Pin [40 Min] [02.28.2020] [HDTV 480p x264] [AAC 2ch].mkv	
Macgyver [2016] [TV-14] [5.2★] [US] [CBS]\[2020] - Season 04 [Mixed]\Macgyver (2016) - S04E05 - Soccer + Desi + Merchant + Titan [39 Min] [03.06.2020] [HDTV 480p x264] [AAC 2ch].mkv	
Macgyver [2016] [TV-14] [5.2★] [US] [CBS]\[2020] - Season 04 [Mixed]\Macgyver (2016) - S04E06 - Right + Wrong + Both + Neither [40 Min] [03.13.2020] [HDTV 480p x264] [AAC 2ch].mkv	
Macgyver [2016] [TV-14] [5.2★] [US] [CBS]\[2020] - Season 04 [Mixed]\Macgyver (2016) - S04E07 - Mac + Desi + Riley + Aubrey [39 Min] [03.27.2020] [HDTV 480p x264] [AAC 2ch].mkv	
Macgyver [2016] [TV-14] [5.2★] [US] [CBS]\[2020] - Season 04 [Mixed]\Macgyver (2016) - S04E08 - Father + Son + Father + Matriarch [41 Min] [04.03.2020] [HDTV 480p x264] [AAC 2ch].mkv	
Macgyver [2016] [TV-14] [5.2★] [US] [CBS]\[2020] - Season 04 [Mixed]\Macgyver (2016) - S04E09 - Code + Artemis + Nuclear + N3mesis [40 Min] [04.10.2020] [HDTV 480p x264] [AAC 2ch].mkv	
Macgyver [2016] [TV-14] [5.2★] [US] [CBS]\[2020] - Season 04 [Mixed]\Macgyver (2016) - S04E10 - Tesla + Bell + Edison + Mac [42 Min] [04.17.2020] [HDTV 480p x264] [AAC 2ch].mkv	
Macgyver [2016] [TV-14] [5.2★] [US] [CBS]\[2020] - Season 04 [Mixed]\Macgyver (2016) - S04E11 - Psy-Op + Cell + Merchant + Birds [42 Min] [04.24.2020] [HDTV 480p x264] [AAC 2ch].mkv	
Macgyver [2016] [TV-14] [5.2★] [US] [CBS]\[2020] - Season 04 [Mixed]\Macgyver (2016) - S04E12 - Loyalty + Family + Rogue + Hellfire [42 Min] [05.01.2020] [WEB-DL 576p x264] [AAC 2ch].mkv	
Macgyver [2016] [TV-14] [5.2★] [US] [CBS]\[2020] - Season 04 [Mixed]\Macgyver (2016) - S04E13 - Save + The + Dam + World [41 Min] [05.08.2020] [HDTV 480p x264] [AAC 2ch].mkv	
they are stored on my unraid server. so the path before the series name is:

Code: Select all

/mnt/user/media/Television/Live Action/Action/
or through windows its:

Code: Select all

//mediaxen/media/Television/Live Action/Action/
this is also without the experimental features enabled, if you want me to do it again with that set as true i can do that too but as it's file paths you wanted i'm not sure that would change anything.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Season Names?

Post by rednoah »

Thanks for the file paths. TheTVDBv4 works out-of-the-box for for these file paths for me. The file paths are pretty clear (i.e. SxE numbers plus exact title plus airdate) so it can't not work, assuming that FileBot / TheTVDBv4 did work with the correct episode listing...

Image

I guess we can leave it at that for now. No way of figuring out what happened then if it's not reproducible now. Thanks again.
:idea: Please read the FAQ and How to Request Help.
DevXen
Power User
Posts: 164
Joined: 12 Oct 2014, 21:15

Re: Season Names?

Post by DevXen »

If it helps. My script doesn't use {plex.name}. I think it just uses {n} I can call try the v4 with {plex.name} though see what that does
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Season Names?

Post by rednoah »

DevXen wrote: 10 Apr 2022, 06:49 If it helps. My script doesn't use {plex.name}. I think it just uses {n} I can call try the v4 with {plex.name} though see what that does
Matching existing files to Episode objects is completely unrelated to formatting those matched Episode objects to a file path in a second step. The format you use to generate file paths has no effect on identifying files. All is well if FileBot can match the correct Episode.
:idea: Please read the FAQ and How to Request Help.
DevXen
Power User
Posts: 164
Joined: 12 Oct 2014, 21:15

Re: Season Names?

Post by DevXen »

Guess I can try it with a couple other shows.
Post Reply