Page 1 of 1
Bug in setting "New Names"
Posted: 27 May 2016, 23:27
by SpaventaPassere
It does not always happen, but sometimes there is something strange in setting the "New Names".
I use this Movie format:
Code: Select all
{n} ({y}) [{vf}][{vc}][{ac}][{af}]
It should contain no error.
However, when I process some files many of the files get the name of ANOTHER movie, even if they exist on TheMovieDB.
Check here what I mean:
Some clue could be get from the movie selection window FileBot opens when is in doubt between movies:
Even if the file name is MUCH different, FileBot suggest a title of another movie that has nothing in common with.
Starting FileBot from command line give no error on standard error output.
I run FileBot on a Ubuntu 16.04 desktop with Oracle Java:
Code: Select all
$ java -version
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
Has someone some advice to give?
Thanks in advance.
Code: Select all
$ filebot -script fn:sysinfo
FileBot 4.7 (r3923)
JNA Native: 4.0.1
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: 9.20
Chromaprint: fpcalc version 1.1.0 (/usr/share/filebot/fpcalc)
Extended Attributes: OK
Groovy Engine: 2.4.6
JRE: Java(TM) SE Runtime Environment 1.8.0_91
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 3 GB Max Memory / 22 MB Used Memory
OS: Linux (amd64)
Package: DEB
Data: /home/marco/.filebot
uname: Linux rolly 4.6.0-040600rc7-generic #201605081830 SMP Sun May 8 22:32:57 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Done ヾ(@⌒ー⌒@)ノ
Re: Bug in setting "New Names"
Posted: 28 May 2016, 05:09
by rednoah
If you get strange behaviour for different files, it's probably because they have something in common.
e.g.
* issues caused by the folder path
* xattr metadata (if you have copied your test files from a single xattr tagged file)

Please
ALWAYS post the
filenames as text (so I can copy & paste & run test) when reporting mismatches.
Re: Bug in setting "New Names"
Posted: 28 May 2016, 07:06
by SpaventaPassere
Thanks for your reply.
One file I've tried right now is:
Code: Select all
/media/c1p8/SHARE/Cartoni Animati/3D/Alla.Ricerca.Di.Nemo-Finding.Nemo.3D.mkv
/media/c1p8/SHARE/Cartoni Animati/3D/Cattivissimo.Me.2.3D.2013.iTALiAN.AC3.DUAL.1080p.H-SBS.BluRay.x264-TrTd_TeaM.mkv
/media/c1p8/SHARE/Cartoni Animati/3D/Gladiatori.Di.Roma.3D.2012.iTALiAN.DTS.1080p.BluRay.x264-BLUWORLD.mkv
/media/c1p8/SHARE/Cartoni Animati/3D/I.Puffi.2.3D.2013.iTALiAN.AC3.DUAL.1080p.H-SBS.BluRay.x264-TrTd_TeaM.mkv
/media/c1p8/SHARE/Cartoni Animati/3D/Khumba (2013) [1080p][x264][AC3][5ch].mkv
/media/c1p8/SHARE/Cartoni Animati/3D/Le.5 Leggende.2012.3D.iTA.EnG.AC3.H.SBS.1080p.BrRiP.x264-TrTd_TeaM.mkv
They are ALL found as: "Turbo (2013)", while
Code: Select all
/media/c1p8/SHARE/Cartoni Animati/3D/Frozen.Il.Regno.Di.Ghiaccio.2013.[3D].HSBS.iTALiAN.AC3.BluRay.1080p.x264-iDN_CreW.mkv
is correctly found as "Frozen - Il regno di ghiaccio".
rednoah wrote:* xattr metadata (if you have copied your test files from a single xattr tagged file)
I don't think this is the case: the "c1p8" folder is a CIFS shared mount; I have, however, checked with the getfattr command and there are no xattr tags.
Some additional info: when I move one of these files (say "Finding Nemo") to another folder, FileBot thinks to have found it as another movie name, which resides on the same folder I have moved the movie to ("Avatar", in this case).
Running from CLI the ouput is this:
Code: Select all
$ filebot --db TheMovieDB --action symlink -rename I.Puffi.2.3D.2013.iTALiAN.AC3.DUAL.1080p.H-SBS.BluRay.x264-TrTd_TeaM.mkv
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/media/c1p8/SHARE/Cartoni Animati/3D/I.Puffi.2.3D.2013.iTALiAN.AC3.DUAL.1080p.H-SBS.BluRay.x264-TrTd_TeaM.mkv]
[SYMLINK] Rename [/media/c1p8/SHARE/Cartoni Animati/3D/I.Puffi.2.3D.2013.iTALiAN.AC3.DUAL.1080p.H-SBS.BluRay.x264-TrTd_TeaM.mkv] to [/media/c1p8/SHARE/Cartoni Animati/3D/Turbo (2013).mkv]
Processed 1 files
Thanks.
Re: Bug in setting "New Names"
Posted: 28 May 2016, 07:30
by rednoah
I get a few mismatches with
Cartoni Animati (2004) which is somewhat understandable, so there must be something in the context of the files (xattr, nfo files in the same folder, etc) in this specific case.
Try this and see if it says anything:
Code: Select all
filebot -script fn:xattr --action clear /path/to/files
@see
viewtopic.php?t=5
Also, you might want to delete all
NFO files that may nudge things towards a bad match.
PS: When testing, it's best to run with
--action test
EDIT:
r4031 will put less emphasis on NFO files.
Re: Bug in setting "New Names"
Posted: 28 May 2016, 08:07
by SpaventaPassere
rednoah wrote:IAlso, you might want to delete all NFO files that may nudge things towards a bad match.
You are the man!
Deleting nfo files worked!
There was only ONE nfo file in that folder... Guess which? Yeah you already know it: Turbo
I didn't thoght about it 'cause I manually give movie file without useless nfo files!
Thank you very much for your help!
However some strange things still happening... Will report in a few minutes.
Re: Bug in setting "New Names"
Posted: 28 May 2016, 08:13
by SpaventaPassere
USELESS POST: I have discovered that FileBot translates symlinks to real filenames.
Still strange issues with the folder name, I guess...
Code: Select all
/media/c1p8/SHARE/Cartoni Animati/3D/Le.Avventure.Di.Tintin.Il.Segreto.Dell.Unicorno.2011.3D-Half-SBS.1080p.iTALiAN-ENG.AC3.BDRip3D-EtheReaLs.mkv
has been found as "Cartoni Animati (2004)".
Have tried (with symlink) to take away spaces in folder name
Code: Select all
/media/c1p8/SHARE/Cartoni-Animati/3D/Le.Avventure.Di.Tintin.Il.Segreto.Dell.Unicorno.2011.3D-Half-SBS.1080p.iTALiAN-ENG.AC3.BDRip3D-EtheReaLs.mkv
With no luck.
Re: Bug in setting "New Names"
Posted: 28 May 2016, 08:20
by SpaventaPassere
rednoah wrote:I get a few mismatches with Cartoni Animati (2004) which is somewhat understandable, so there must be something in the context of the files (xattr, nfo files in the same folder, etc) in this specific case.
I have renamed "Cartoni Animati" folder to "FolderWithFiles" therefore I have now the file:
Code: Select all
/media/c1p8/SHARE/FolderWithFiles/3D/Le.Avventure.Di.Tintin.Il.Segreto.Dell.Unicorno.2011.3D-Half-SBS.1080p.iTALiAN-ENG.AC3.BDRip3D-EtheReaLs.mkv
This way it worked.
Running from CLI with folder "Cartoni Animati" takes this message:
Code: Select all
$ filebot --log-file log.txt --log all --db TheMovieDB --action symlink -no-xattr -rename --action test Le.Avventure.Di.Tintin.Il.Segreto.Dell.Unicorno.2011.3D-Half-SBS.1080p.iTALiAN-ENG.AC3.BDRip3D-EtheReaLs.mkv
Locking /home/marco/.filebot/logs/log.txt
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/media/c1p8/SHARE/Cartoni Animati/3D/Le.Avventure.Di.Tintin.Il.Segreto.Dell.Unicorno.2011.3D-Half-SBS.1080p.iTALiAN-ENG.AC3.BDRip3D-EtheReaLs.mkv]
CmdlineException: [Cartoni Animati/Le.Avventure.Di.Tintin.Il.Segreto.Dell.Unicorno.2011.3D-Half-SBS.1080p.iTALiAN-ENG.AC3.BDRip3D-EtheReaLs.mkv] Multiple options: Force auto-select requires non-strict matching: [The Adventures of Tintin (2011), Cartoni Animati (2004)]
What is that
CmdlineException?
Re: Bug in setting "New Names"
Posted: 28 May 2016, 09:11
by rednoah
You're using
strict mode, but there's 2 potential matches:
Code: Select all
Multiple options: Force auto-select requires non-strict matching: [The Adventures of Tintin (2011), Cartoni Animati (2004)]
If you use
-non-strict then it'll pick the first best match, which is the correct match in this case.
EDIT:
I've added
^Cartoni.Animati$ to the list, but it'll take a week before it'll auto-update the data files:
viewtopic.php?f=3&t=359
Re: Bug in setting "New Names"
Posted: 28 May 2016, 10:54
by SpaventaPassere
rednoah wrote:If you use -non-strict then it'll pick the first best match, which is the correct match in this case.
No, it does still select "Cartoni Animati (2004)":
Code: Select all
$ filebot -non-strict --log-file log.txt --log all --db TheMovieDB --action symlink -no-xattr -rename --action test Le\ avventure\ di\ Tintin\ -\ Il\ segreto\ dell\'unicorno\ \(2011\)\ \[1080p\]\[x264\]\[AC3\]\[6ch\].mkv
Locking /home/marco/.filebot/logs/log.txt
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/media/c1p8/SHARE/Cartoni Animati/3D/Le avventure di Tintin - Il segreto dell'unicorno (2011) [1080p][x264][AC3][6ch].mkv]
[TEST] Rename [/media/c1p8/SHARE/Cartoni Animati/3D/Le avventure di Tintin - Il segreto dell'unicorno (2011) [1080p][x264][AC3][6ch].mkv] to [/media/c1p8/SHARE/Cartoni Animati/3D/Cartoni Animati (2004).mkv]
Processed 1 files
If I re-run the program stating the
--lang ITA option, it finds the correct movie title.
It's not possible to have in the log file the URL of the search and the raw result? from TheMovieDB?
Great you added to the black-list, thanks.
Re: Bug in setting "New Names"
Posted: 28 May 2016, 11:29
by rednoah
1.
Default language is English, so if FileBot tries to match the English search results with the Italian filenames, things won't match well. Unfortunately there's a "better fit" among the bad options in this particular case.
If you have Italian filenames, it'll work better if you match with Italian online data.
2.
You can enable debug logging like this:
Code: Select all
-Dnet.filebot.web.WebRequest.log.response=true
You may need to use the latest revision for the second one to work.
FileBot supports the
JAVA_OPTS convention, so you can just set this in your environment:
Code: Select all
export JAVA_OPTS="-Dnet.filebot.logging.debug=ALL -Dnet.filebot.web.WebRequest.log.response=true"