Page 1 of 1

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

Posted: 22 Apr 2018, 14:49
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,

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

Posted: 22 Apr 2018, 17:18
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.

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

Posted: 22 Apr 2018, 17:23
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.

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

Posted: 22 Apr 2018, 17:25
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

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

Posted: 22 Apr 2018, 17:26
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!