German & English Filename
German & English Filename
Hi!
Is it possible to give a file the episode name from 2 languages?
Example:
Alias - S01E01 - "German Title" ("English Title")
Any Ideas?
Is it possible to give a file the episode name from 2 languages?
Example:
Alias - S01E01 - "German Title" ("English Title")
Any Ideas?
Re: German & English Filename
It's a hack but it works:
This {expression} will get you the german episode title.
Code: Select all
{def db = net.sourceforge.filebot.WebServices.TheTVDB; db.getEpisodeList(db.search(n)[0], null, Locale.GERMAN).find{ episode.season == it.season && episode.episode == it.episode}.title}
Re: German & English Filename
sorry, but what can i do with this code?
Re: German & English Filename
Edit Format => Set Episode Format
Format Expression:
http://www.filebot.net/naming.html
e.g. Alias - S01E01 - German Title - English Title
Format Expression:
http://www.filebot.net/naming.html
e.g. Alias - S01E01 - German Title - English Title
Code: Select all
{n} - {s00e00} - {t} - {def db = net.sourceforge.filebot.WebServices.TheTVDB; db.getEpisodeList(db.search(n)[0], null, Locale.GERMAN).find{ episode.season == it.season && episode.episode == it.episode}.title}
Re: German & English Filename
Thank you very much!
It's working fine!
What about the Movie Format
?
Lord of the Rings [GERMAN TITLE] (2003)
It's working fine!
What about the Movie Format

Lord of the Rings [GERMAN TITLE] (2003)
-
- Posts: 8
- Joined: 04 Jan 2013, 17:21
Re: German & English Filename
I have a nearly similar question:
I want to check if my episode has a german audiotrack. If that's true, the title should be german, if not it should be english.
I've tried something like that:
but that doesn't work, can somebody help me please?
regards, stereo
I want to check if my episode has a german audiotrack. If that's true, the title should be german, if not it should be english.
I've tried something like that:
Code: Select all
{if (audio.language == 'de'.echo {t} ) else ({def db = net.sourceforge.filebot.WebServices.TheTVDB; db.getEpisodeList(db.search(n)[0], null, Locale.ENGLISH).find{ episode.season == it.season && episode.episode == it.episode}.title}
) }
regards, stereo
-
- Posts: 6
- Joined: 20 May 2013, 17:02
Re: German & English Filename
Unfortunately this doesn't work anymore in FileBot 4.2rednoah wrote:It's a hack but it works:This {expression} will get you the german episode title.Code: Select all
{def db = net.sourceforge.filebot.WebServices.TheTVDB; db.getEpisodeList(db.search(n)[0], null, Locale.GERMAN).find{ episode.season == it.season && episode.episode == it.episode}.title}
It says "BindingException: "net":undefined"
Any idea how to fix that?
-
- Posts: 6
- Joined: 20 May 2013, 17:02
Re: German & English Filename
Is there another option to get the title in more than one language?
What about not to choose the language for the title in the settings but with an code like this {t;de} or {t;en} for example?
Would be awesome if you could implement something like that.
What about not to choose the language for the title in the settings but with an code like this {t;de} or {t;en} for example?
Would be awesome if you could implement something like that.
Re: German & English Filename
Had another look and this should work with newer versions:
Keep in mind that this is still a hack, and completely unofficial / unsupported.
Code: Select all
{database.getEpisodeList(database.search(n)[0], null, Locale.GERMAN).find{ episode.numbers == it.numbers }.title}
-
- Posts: 6
- Joined: 20 May 2013, 17:02
Re: German & English Filename
You are my hero 

Re: German & English Filename
Thank you so much, for keeping this going!!!
Merry Christmas..
Merry Christmas..
Re: German & English Filename
It is not working anymore...
Binding exception: database undefined
Any ideas?
Binding exception: database undefined
Any ideas?
Re: German & English Filename
After a lot of messing around and analyzing the Java Exceptions I came up with this fix:MoraX wrote:Any ideas?
For Series (german):
Code: Select all
{def db = net.filebot.WebServices.TheTVDB; db.getEpisodeList(db.search(n,Locale.GERMAN)[0], null, Locale.GERMAN).find{ episode.season == it.season && episode.episode == it.episode}.title}
For Movies (german):
Code: Select all
{net.filebot.WebServices.TheMovieDB.getMovieInfo(movie, Locale.GERMAN,true).name}
Hope this helps

Re: German & English Filename
I've had a look at these formats and made some optimizations.
This should work for FileBot v4.5.6 and up.
German Episode Title:
German Movie Title:
This should work for FileBot v4.5.6 and up.
German Episode Title:
Code: Select all
{net.filebot.WebServices.TheTVDB.getEpisodeList(info.id, null, Locale.GERMAN).find{ it.numbers == episode.numbers }.title}
Code: Select all
{net.filebot.WebServices.TheMovieDB.getMovieDescriptor(movie, Locale.GERMAN).name}
-
- Posts: 6
- Joined: 20 May 2013, 17:02
Re: German & English Filename
I get this error "BindingException: "info" Extended meta data not available", but it works 
THX so much!!!

THX so much!!!
Re: German & English Filename
The new {localize} binding makes things more elegant:
viewtopic.php?f=5&t=3321&p=18449#p18449
viewtopic.php?f=5&t=3321&p=18449#p18449