Same file enclose in different folder = different result

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
edenexposito
Posts: 21
Joined: 10 Sep 2013, 06:08

Same file enclose in different folder = different result

Post by edenexposito »

Hi again!

I want rename the file "Objetivo.La.Casa.Blanca.1080p.by.israntxa.mkv" as "Olympus Has Fallen (2013)" but filebot dont work correctly in all directories, example.

If i use this

Code: Select all

/Applications/FileBot.app/Contents/MacOS/filebot -rename "/Volumes/Descargas/A PROCESAR/PELICULAS/Objetivo.La.Casa.Blanca.1080p.by.israntxa.mkv" --db TheMovieDB -non-strict --filter "y > 2000" --action test

Code: Select all

Rename movies using [TheMovieDB]
Auto-detect movie from context: [/Volumes/Descargas/A PROCESAR/PELICULAS/Objetivo.La.Casa.Blanca.1080p.by.israntxa.mkv]
Apply Filter: {y > 2000}
Include [Las pel’culas de mi padre (2007)]
Include [Films to Keep You Awake: Blame (2006)]
Include [Films to Keep You Awake: To Let (2006)]
Include [Films to Keep You Awake: Spectre (2006)]
Include [Films to Keep You Awake: The Christmas Tale (2005)]
Include [Films to Keep You Awake: A Real Friend (2006)]
Include [Films to Keep You Awake: The Baby's Room (2006)]
Include [Olympus Has Fallen (2013)]
[TEST] Rename [/Volumes/Descargas/A PROCESAR/PELICULAS/Objetivo.La.Casa.Blanca.1080p.by.israntxa.mkv] to [Las pel’culas de mi padre (2007).mkv]
Processed 1 files
Done ?(?????)?
Filebot return this -> "Las pel’culas de mi padre (2007)" (Wrong!!)

But if i change the file location and launch filebot

Code: Select all

 /Applications/FileBot.app/Contents/MacOS/filebot -rename "/Volumes/Descargas/Objetivo.La.Casa.Blanca.1080p.by.israntxa.mkv" --db TheMovieDB -non-strict --filter "y > 2000" --action test

Code: Select all

Rename movies using [TheMovieDB]
Auto-detect movie from context: [/Volumes/Descargas/Objetivo.La.Casa.Blanca.1080p.by.israntxa.mkv]
Apply Filter: {y > 2000}
Include [Olympus Has Fallen (2013)]
[TEST] Rename [/Volumes/Descargas/Objetivo.La.Casa.Blanca.1080p.by.israntxa.mkv] to [Olympus Has Fallen (2013).mkv]
Processed 1 files
Done ?(?????)?
File is renamed correctly!! Olympus Has Fallen (2013).mkv

Same file, different location = different results!! :?

Seems like filebot get all path and filename to search titles in databases, No option for discard path and search only by filename.ext?
Last edited by edenexposito on 23 Sep 2013, 13:47, edited 1 time in total.
edenexposito
Posts: 21
Joined: 10 Sep 2013, 06:08

Re: Same file enclose in different folder = different result

Post by edenexposito »

When filebot found coincidences it would be great that sort most recent first.

This result:

Include [Las pel’culas de mi padre (2007)]
Include [Films to Keep You Awake: Blame (2006)]
Include [Films to Keep You Awake: To Let (2006)]
Include [Films to Keep You Awake: Spectre (2006)]
Include [Films to Keep You Awake: The Christmas Tale (2005)]
Include [Films to Keep You Awake: A Real Friend (2006)]
Include [Films to Keep You Awake: The Baby's Room (2006)]
Include [Olympus Has Fallen (2013)]

Sorted as (most recent first, with same year sort alphabetically):

Include [Olympus Has Fallen (2013)]
Include [Las pel’culas de mi padre (2007)]
Include [Films to Keep You Awake: A Real Friend (2006)]
Include [Films to Keep You Awake: Blame (2006)]
Include [Films to Keep You Awake: Spectre (2006)]
Include [Films to Keep You Awake: The Baby's Room (2006)]
Include [Films to Keep You Awake: To Let (2006)]
Include [Films to Keep You Awake: The Christmas Tale (2005)]

Generally most people try to get recent titles
User avatar
rednoah
The Source
Posts: 23021
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Same file enclose in different folder = different result

Post by rednoah »

Yep, FileBot tries to take into account as much information as possible and pick the best match. In this case FileBot has the same problem as human me... we both don't speak Spanish! :D

If you switch to --lang es it'll work better cause the result will match the file name.

If PROCESAR and PELICULAS has no meaning I can add it to the blacklist and it'll be ignored in the future:
http://www.filebot.net/forums/viewtopic.php?f=3&t=359

No idea what it means. In Processing? Particulars? :D
:idea: Please read the FAQ and How to Request Help.
edenexposito
Posts: 21
Joined: 10 Sep 2013, 06:08

Re: Same file enclose in different folder = different result

Post by edenexposito »

Sorry about that

Translating to spanish..

A PROCESAR = TO PROCESS
PELICULAS = MOVIES

I can adapt to English folder structure i can rename "a procesar" to "to process" and "peliculas" to "movies" if this change cause less problems with filebot. Are these terms add to blacklist?

What can you think about sort order?

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

Re: Same file enclose in different folder = different result

Post by rednoah »

I already added the Spanish ones to the blacklist. You can find the link that other post.

Sort order would only work in this particular case, spanish file VS english data, in most cases it wouldn't help, more likely mess it up.

You can try using the latest HEAD revision. I forever tweak these things. The latest build here works fine for your case.
:idea: Please read the FAQ and How to Request Help.
edenexposito
Posts: 21
Joined: 10 Sep 2013, 06:08

Re: Same file enclose in different folder = different result

Post by edenexposito »

I had tried with the latest head version with no luck.

Code: Select all

 /Applications/FileBot.app/Contents/MacOS/filebot -rename "/Volumes/Descargas/A PROCESAR/PELICULAS/Objetivo.La.Casa.Blanca.1080p.by.israntxa.mkv" --db TheMovieDB -non-strict --filter "y > 2000" --action test
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/Volumes/Descargas/A PROCESAR/PELICULAS/Objetivo.La.Casa.Blanca.1080p.by.israntxa.mkv]
Apply Filter: {y > 2000}
Include [Las pel’culas de mi padre (2007)]
Include [Films to Keep You Awake: Blame (2006)]
Include [Films to Keep You Awake: To Let (2006)]
Include [Films to Keep You Awake: Spectre (2006)]
Include [Films to Keep You Awake: The Christmas Tale (2005)]
Include [Films to Keep You Awake: A Real Friend (2006)]
Include [Films to Keep You Awake: The Baby's Room (2006)]
Include [Olympus Has Fallen (2013)]
[TEST] Rename [/Volumes/Descargas/A PROCESAR/PELICULAS/Objetivo.La.Casa.Blanca.1080p.by.israntxa.mkv] to [Las pel’culas de mi padre (2007).mkv]
Processed 1 files
Done ?(?????)?
beware with spanish accent! Peliculas write well = Películas , but here in spain we try to avoid write in computers with accents due to problems with software. If you add a spanish word in blacklist add it without accents please.

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

Re: Same file enclose in different folder = different result

Post by rednoah »

Code: Select all

Rename movies using [TheMovieDB]
Auto-detect movie from context: [D:\workspace\testdata\AMC-TEST\A PROCESAR\PELICULAS\Objetivo.La.Casa.Blanca.1080p.by.israntxa.mkv]
Apply Filter: {y > 2000}
Include [Olympus Has Fallen (2013)]
[TEST] Rename [D:\workspace\testdata\AMC-TEST\A PROCESAR\PELICULAS\Objetivo.La.Casa.Blanca.1080p.by.israntxa.mkv] to [Olympus Has Fallen (2013).mkv]
Processed 1 files
Done ヾ(@⌒ー⌒@)ノ
It'll only check for updates once every 24h so give it a day. It'll work.
:idea: Please read the FAQ and How to Request Help.
edenexposito
Posts: 21
Joined: 10 Sep 2013, 06:08

Re: Same file enclose in different folder = different result

Post by edenexposito »

Perfect, seems that now work well. Thanks!
chrisbruce99
Posts: 2
Joined: 13 Nov 2013, 18:25

Re: Same file enclose in different folder = different result

Post by chrisbruce99 »

I'm having this same problem but with English files.

If I run it on "/home/files/my movie.mkv" I get "My Movie, X-files, Police Files, Homeland etc..."
but if I run it on "/Movies/my movie.mkv" I get "My Movie"

I'm trying to make a portable script so directory cant play a part in the naming process and i cant use "-non-strict" because i want my script to flag when filebot's not 100%.

If it makes a difference my script will only ever be run on movies (but I've tried using "--db TheMovieDB" in case it specified only movies). I'm also using filebot through command line on linux.

Anyone see what I'm missing?
User avatar
rednoah
The Source
Posts: 23021
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Same file enclose in different folder = different result

Post by rednoah »

Yep, --db TheMovieDB forces movie mode with TheMovieDB.

If you know that the filename is the query why don't you call filebot for each file and use the --q option to force the query to be the filename?
:idea: Please read the FAQ and How to Request Help.
chrisbruce99
Posts: 2
Joined: 13 Nov 2013, 18:25

Re: Same file enclose in different folder = different result

Post by chrisbruce99 »

Yes, querying each file using the filename seems to do the trick, although i do have to remove the file extension first.
I'm still testing it but so far so good.

Thanks rednoah.
Post Reply