Use Alternate Order From TVDB

All your suggestions, requests and ideas for future development
Post Reply
InsipidCjs
Posts: 2
Joined: 19 May 2024, 22:54

Use Alternate Order From TVDB

Post by InsipidCjs »

I'm wanting to put the Sailor Moon DiC dub on Plex but when using FileBot, it will only fetch the Japanese data, TVDB has an alternate order with the correct naming (https://thetvdb.com/series/sailor-moon/ ... lternate/1) but I cannot find anyway to use this data

Does anyone know if or how this can be done or have advice how I can get Plex to recognise the files? It does have data for that version of the series https://watch.plex.tv/show/sailor-moon-46/season/1

Thanks :)
User avatar
rednoah
The Source
Posts: 24026
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Use Alternate Order From TVDB

Post by rednoah »

Plex uses TheMovieDB unless otherwise specified. Plex also uses the standard Aired / Airdate Order unless otherwise specified. See How do I organize files for Plex? for details.


:?: Did you explicitly configure your Plex library to use TheTVDB / Alternative Order? Because if you use Plex, then you must use the same settings in both FileBot and Plex.




:idea: Sailor Moon episode listing in English looks good at this moment in time, but the TheTVDB API is known to be a bit buggy at times:

Console Output: Select all

$ filebot -list --q 78500 --db TheTVDB
Sailor Moon - 1x01 - The Crybaby: Usagi's Beautiful Transformation
Sailor Moon - 1x02 - Punishment Awaits: The House of Fortune is the Monster Mansion
Sailor Moon - 1x03 - The Mysterious Sleeping Sickness: Protect the Girls in Love
...
$ filebot -list --q 78500 --db TheTVDB --order Digital
Sailor Moon - 1x01 - A Moon Star is Born
Sailor Moon - 1x02 - Talk Radio
Sailor Moon - 1x03 - Slim City
...
:idea: Please read the FAQ and How to Request Help.
InsipidCjs
Posts: 2
Joined: 19 May 2024, 22:54

Re: Use Alternate Order From TVDB

Post by InsipidCjs »

Thanks so much for the info! I’m very new to this so that all really helps!
Would you recommend I just manually call the files like the below screenshot and it should match the names?

Thanks again :)
User avatar
rednoah
The Source
Posts: 24026
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Use Alternate Order From TVDB

Post by rednoah »

If the SxE numbers in the database don't match the SxE numbers in the files you have, then you will want to start by reading FAQ #2 in the manual and following all the links.

If you are using the Desktop application, then you'll especially want to click on the Manual Matching, Linear Rename and How do I match episode files by episode title? links.

:idea: Please read the FAQ and How to Request Help.
TigerC10
Posts: 3
Joined: 08 Jul 2025, 02:01

Re: Use Alternate Order From TVDB

Post by TigerC10 »

rednoah wrote: 20 May 2024, 08:15

Console Output: Select all

...
$ filebot -list --q 78500 --db TheTVDB --order Digital
Sailor Moon - 1x01 - A Moon Star is Born
Sailor Moon - 1x02 - Talk Radio
Sailor Moon - 1x03 - Slim City
...
Thank you for this, I modified it slightly to this:

Console Output: Select all

filebot -list --q 78500 --db TheTVDB --order Digital --format "{json}" > sailor_moon_(1995).jsonl
This is great, I feel like I'm halfway there. Would you consider adding support for JSONL formatting to the plain file mode? Such that it would recognize the episode objects from the output of filebot list? That way, features like changing the created/modified date of the file to match the episode's airing would work and all the .xattrs would match expectations.
User avatar
rednoah
The Source
Posts: 24026
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Use Alternate Order From TVDB

Post by rednoah »

TigerC10 wrote: 08 Jul 2025, 02:12 Would you consider adding support for JSONL formatting to the plain file mode? Such that it would recognize the episode objects from the output of filebot list?
:?: What is your use case? What is the problem you're trying to solve? Maybe updating xattr metadata? Maybe Linear Rename?

TigerC10 wrote: 08 Jul 2025, 02:12 That way, features like changing the created/modified date of the file to match the episode's airing would work and all the .xattrs would match expectations.
:?: Why not process files normally? Does processing files normally not also set created/modified date and xattr metadata according to your expectations? What is the significant difference / benefit of re-loading metadata from an JSONL file as opposed to just loading the episode information from the database or re-loading from .xattr folders? Perhaps you want to edit the JSONL file before processing?
:idea: Please read the FAQ and How to Request Help.
TigerC10
Posts: 3
Joined: 08 Jul 2025, 02:01

Re: Use Alternate Order From TVDB

Post by TigerC10 »

The use case is that when I use the Filebot GUI, I cannot get it to use the alternate order for Sailor Moon.

Take a look at the orders listed under the seasons in The TVDB:
https://thetvdb.com/series/sailor-moon#seasons

Specifically, the one listed as "American Dub". When you select the "American Dub" button on the page it says:

Code: Select all

Usable as "Alternate Order" in API-connected systems.
But the Filebot GUI doesn't give me a way to select this alternate order from The TVDB.

Please note: The "alternate order" is a materially different episode list than what returned by default. I think you misunderstood the importance of this, because it is not really about the episode order. Perhaps that's why you think it's buggy?
rednoah wrote: 20 May 2024, 08:15 :idea: Sailor Moon episode listing in English looks good at this moment in time, but the TheTVDB API is known to be a bit buggy at times:

Console Output: Select all

$ filebot -list --q 78500 --db TheTVDB
Sailor Moon - 1x01 - The Crybaby: Usagi's Beautiful Transformation
Sailor Moon - 1x02 - Punishment Awaits: The House of Fortune is the Monster Mansion
Sailor Moon - 1x03 - The Mysterious Sleeping Sickness: Protect the Girls in Love
...
$ filebot -list --q 78500 --db TheTVDB --order Digital
Sailor Moon - 1x01 - A Moon Star is Born
Sailor Moon - 1x02 - Talk Radio
Sailor Moon - 1x03 - Slim City
...
In the American Dub of Sailor Moon, the producers decided to re-cut the episodes. They removed episodes, like episode 2 "Punishment Awaits: The House of Fortune is the Monster Mansion" does not exist in the American Dub (at all). They created completely new episodes by reusing the footage from several different episodes.

I use the Post Processing Options:
  • Export .xattr folders
  • Set Finder tags
  • Set creation date
When I use the linear rename or the plain file mode, none of those post processing options work as I intend because it doesn't have any episode objects (it just has plain text strings).

Thanks to your snippet for the CLI with the order option, I was able to get the JSONL file with the full episode objects. If I could just drop this file in to the GUI, so it doesn't have to hit the TVDB api directly, then I can do what I'm trying to do.

I might be able to use the CLI to perform the rename with the order option, but I don't know how to get all of the post processing options I use nor do I get a chance to edit the match (if it's not accurate) or edit the name (if it has invalid characters) like I am accustomed to doing in the Filebot GUI.

Is it possible to configure the Filebot GUI on MacOS (not the Mac App Store version) to use a proxy? I have tried 3 or 4 different ways to do this mentioned in other forum posts but nothing is working.
User avatar
rednoah
The Source
Posts: 24026
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Use Alternate Order From TVDB

Post by rednoah »

:?: What happens if you select Episode Order: Digital in the Episode Order Preferences?

Screenshot




:?: Is this the episode list you want to use for renaming? Here's what I see when I fetch Episode Order: Digital via the Episodes tool:

Screenshot




:idea: If the files you have don't match the episode numbers in your preferred episode list, then you can always just copy & paste Episode items from the Episodes tool into the Rename tool:
rednoah wrote: 20 May 2024, 16:19 If the SxE numbers in the database don't match the SxE numbers in the files you have, then you will want to start by reading FAQ #2 in the manual and following all the links.

If you are using the Desktop application, then you'll especially want to click on the Manual Matching, Linear Rename and How do I match episode files by episode title? links.






:?: Please post sample file paths as text or screenshots if you continue to have issues with any particular set of files, so that I can see what you can see and give you better advice.




EDIT:

:?: You have also mentioned the Edit Name feature. Can you tell us what edit you typically perform? Something like Replace : colon with - dash perhaps?
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 24026
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

How do I use a HTTP proxy?

Post by rednoah »

TigerC10 wrote: 09 Jul 2025, 01:42 Is it possible to configure the Filebot GUI on MacOS (not the Mac App Store version) to use a proxy? I have tried 3 or 4 different ways to do this mentioned in other forum posts but nothing is working.
:?: What have you tried so far? Does FileBot not inherit your system proxy settings? What kind of proxy? HTTP proxy? HTTPS proxy? SOCKS proxy?


:arrow: You can manually force a specific proxy via the Advanced Settings configuration file:

Properties: Select all

# Configure HTTP proxy:
http.proxyHost=127.0.0.1
http.proxyPort=7890
https.proxyHost=127.0.0.1
https.proxyPort=7890

# Configure SOCKS proxy:
socksProxyHost=127.0.0.1
socksProxyPort=1080
Screenshot
:idea: Please read the FAQ and How to Request Help.
TigerC10
Posts: 3
Joined: 08 Jul 2025, 02:01

Re: How do I use a HTTP proxy?

Post by TigerC10 »

rednoah wrote: 09 Jul 2025, 03:41 :?: What happens if you select Episode Order: Digital in the Episode Order Preferences?
That did the trick, I can't facepalm hard enough.
rednoah wrote: 09 Jul 2025, 03:49
TigerC10 wrote: 09 Jul 2025, 01:42 Is it possible to configure the Filebot GUI on MacOS (not the Mac App Store version) to use a proxy? I have tried 3 or 4 different ways to do this mentioned in other forum posts but nothing is working.
:?: What have you tried so far? Does FileBot not inherit your system proxy settings? What kind of proxy? HTTP proxy? HTTPS proxy? SOCKS proxy?


:arrow: You can manually force a specific proxy via the Advanced Settings configuration file:

Properties: Select all

# Configure HTTP proxy:
http.proxyHost=127.0.0.1
http.proxyPort=7890
https.proxyHost=127.0.0.1
https.proxyPort=7890

# Configure SOCKS proxy:
socksProxyHost=127.0.0.1
socksProxyPort=1080
Screenshot
This was the 2nd thing I tried, and after restarting Filebot it did not work. I was using a locally running proxy to intercept the API request and attempt to overwrite the response object with the data from the JSONL that I had generated before. It never went through the proxy. I tried editing the JVM options from the info.plist file, and I also tried changing the Java SDK settings in the system settings of MacOS. Still not sure how to get this thing to actually go through a proxy. But since my issue was resolved by switching the order to "digital" as you recommended, this isn't a problem I need solved now.
User avatar
rednoah
The Source
Posts: 24026
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Use Alternate Order From TVDB

Post by rednoah »

Keep in mind that debugging a HTTPS request is very different from debugging a HTTP request. The latter just works. The former requires your proxy to effectively perform a man-in-the-middle attack to compromise the secure connection.

I'm fairly sure that Charles can do that. It'll require additional configuration at the very least though, like installing additional root certificates on your system. The proxy may very well be working and be proxying the HTTPS connection on the TCP/IP level, yet not be able to decrypt and display the plain/text HTTP requests.
:idea: Please read the FAQ and How to Request Help.
Post Reply