If not found on theTVDB try search again, but replace letters

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
znerken
Posts: 30
Joined: 15 Feb 2018, 23:26

If not found on theTVDB try search again, but replace letters

Post by znerken »

So here in Norway we have the letters ÆØÅ, and on many files/torrents people replace for example Ø with OE.

Is it possible to script the amc python script to do this:

Code: Select all

If (language = NO AND  no match found at the TVDB)
(name.replace('oe' with 'ø')
searchTheTVDBAgain())
The language part we have already worked out ;)

Also, which of the parameters in the command should one change?

Code: Select all

		
		'ut_label=' + label,
		'ut_state=' + state,
		'ut_title=' + title,
		'ut_kind='  + kind,
		'ut_file='  + file,
		'ut_dir='   + directory,
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: If not found on theTVDB try search again, but replace letters

Post by rednoah »

The kind of logic you're asking for is not supported. However, the easy solution is to just add the appropriate alias name to TheTVDB. Let's say we have a show called "Æon" then one would expect one of the alias names to be "Aeon".

You could also consider pre-processing files and fixing the file names so that subsequent TheTVDB lookups work.
:idea: Please read the FAQ and How to Request Help.
znerken
Posts: 30
Joined: 15 Feb 2018, 23:26

Re: If not found on theTVDB try search again, but replace letters

Post by znerken »

rednoah wrote: 22 Apr 2018, 17:18 The kind of logic you're asking for is not supported. However, the easy solution is to just add the appropriate alias name to TheTVDB. Let's say we have a show called "Æon" then one would expect one of the alias names to be "Aeon".

You could also consider pre-processing files and fixing the file names so that subsequent TheTVDB lookups work.

Unfortunately, only admins can add alias on theTVDB. They probably won't approve of it either, since it's not really an alias?

Guess next step is to try and nag at the uploaders about naming.
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: If not found on theTVDB try search again, but replace letters

Post by rednoah »

I'm fairly sure that the example above would have been approved. You can suggest alias names in the forums.

As a last resort, if TheTVDB admins choose not to add your alias name suggestion, then I can add it to a list that is specific to FileBot:
https://github.com/filebot/data/blob/ma ... -alias.txt
:idea: Please read the FAQ and How to Request Help.
znerken
Posts: 30
Joined: 15 Feb 2018, 23:26

Re: If not found on theTVDB try search again, but replace letters

Post by znerken »

rednoah wrote: 22 Apr 2018, 17:25 I'm fairly sure that the example above would have been approved. You can suggest alias names in the forums.

As a last resort, if TheTVDB admins choose not to add your alias name suggestion, then I can add it to a list that is specific to FileBot:
https://github.com/filebot/data/blob/ma ... -alias.txt

I'll try, thanks!
Post Reply