Movie mismatch: Chocolat

All your suggestions, requests and ideas for future development
Post Reply
troubadour
Donor
Posts: 4
Joined: 03 Jun 2016, 09:34

Movie mismatch: Chocolat

Post by troubadour »

I use filebot with amc script to rename my downloaded video files (using a bash script).

I have a movie mismatch with the following release :

Code: Select all

input: [ www.CpasBien.cm ] Chocolat.2015.FRENCH.1080p.BluRay.x264-PiNKPANTERS.mkv
mismatch to: Chocolate City (2015)
shoud match: Chocolat (2016)
Here's the command line used:

Code: Select all

 $ filebot --action test -script fn:amc --output "/mnt/nas/video/Films" --log-file "/var/log/rtorrent-postprocess" --conflict override -non-strict --def music=y artwork=n "ut_dir=/mnt/hdd/downloads/[ www.CpasBien.cm ] Chocolat.2015.FRENCH.1080p.BluRay.x264-PiNKPANTERS.mkv" "ut_kind=multi" "ut_title=[ www.CpasBien.cm ] Chocolat.2015.FRENCH.1080p.BluRay.x264-PiNKPANTERS.mkv" "ut_label=Movie" @/srv/rtorrent/movieFormat.txt

Locking /var/log/rtorrent-postprocess
Run script [fn:amc] at [Fri Jun 03 11:33:45 CEST 2016]
Parameter: music = y
Parameter: artwork = n
Parameter: ut_dir = /mnt/hdd/downloads/[ www.CpasBien.cm ] Chocolat.2015.FRENCH.1080p.BluRay.x264-PiNKPANTERS.mkv
Parameter: ut_kind = multi
Parameter: ut_title = [ www.CpasBien.cm ] Chocolat.2015.FRENCH.1080p.BluRay.x264-PiNKPANTERS.mkv
Parameter: ut_label = Movie
Parameter: movieFormat = {n} ({y})/{n} ({y}) {" Part $pi"}{" [$vf $vc $ac $af]"}
Input: /mnt/hdd/downloads/[ www.CpasBien.cm ] Chocolat.2015.FRENCH.1080p.BluRay.x264-PiNKPANTERS.mkv
Group: [mov:chocolate city 2015] => [[ www.CpasBien.cm ] Chocolat.2015.FRENCH.1080p.BluRay.x264-PiNKPANTERS.mkv]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/mnt/hdd/downloads/[ www.CpasBien.cm ] Chocolat.2015.FRENCH.1080p.BluRay.x264-PiNKPANTERS.mkv]
[TEST] Rename [/mnt/hdd/downloads/[ www.CpasBien.cm ] Chocolat.2015.FRENCH.1080p.BluRay.x264-PiNKPANTERS.mkv] to [/mnt/nas/video/Films/Chocolate City (2015)/Chocolate City (2015) [1080p x264 DTS 6ch].mkv]
Processed 1 files
Done ヾ(@⌒ー⌒@)ノ
It looks like the movie years differs from filename and TheMovieDb, so I tried the --filter option:

Code: Select all

--filter "y >= 2016"
But that leads to :

Code: Select all

...
Group: [mov:chocolate city 2015] => [[ www.CpasBien.cm ] Chocolat.2015.FRENCH.1080p.BluRay.x264-PiNKPANTERS.mkv]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/mnt/hdd/downloads/[ www.CpasBien.cm ] Chocolat.2015.FRENCH.1080p.BluRay.x264-PiNKPANTERS.mkv]
Apply Filter: {y >= 2016}
Failed to identify or process any files
net.filebot.cli.CmdlineException: Failed to identify or process any files
        at net.filebot.cli.CmdlineOperations.renameAll(CmdlineOperations.java:590)
        at net.filebot.cli.CmdlineOperations.renameMovie(CmdlineOperations.java:502)
        at net.filebot.cli.CmdlineOperations.rename(CmdlineOperations.java:105)
        at net.filebot.cli.ScriptShellBaseClass.rename(ScriptShellBaseClass.java:336)
        at Script1$_run_closure72.doCall(Script1.groovy:398)
        at Script1.run(Script1.groovy:356)
        at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:62)
        at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:72)
        at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:114)
        at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:29)
        at net.filebot.Main.main(Main.java:120)
Finished without processing any files
Failure (°_°)
Any idea ? What's going on and how can I fix that ?
User avatar
rednoah
The Source
Posts: 22985
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Movie mismatch: Chocolat

Post by rednoah »

The movie is not listed, so the correct option isn't an option in the first place:
https://www.themoviedb.org/search?query=Chocolat+2015

--filter can only filter out bad options so that only good options remain, but in this case this won't help.

You can rename the file and make it 2016, or use GUI/CLI and force the search query "Chocolat" which should include the right option.

e.g.

Code: Select all

-rename --q "Chocolat" --filter "y == 2016"
Note that you can't force the query in the amc script.
:idea: Please read the FAQ and How to Request Help.
troubadour
Donor
Posts: 4
Joined: 03 Jun 2016, 09:34

Re: Movie mismatch: Chocolat

Post by troubadour »

Thanks a lot for you answer.

Anyway it still doesn't match. The movie exists on TheMovieDB, here's the url : https://www.themoviedb.org/movie/369778-chocolat

When I try your options, here's what I get

Code: Select all

filebot --q "Chocolat" --filter "y == 2016" --action test -script fn:amc --output "/mnt/nas/video/Films" --log-file "/var/log/rtorrent-postprocess" --conflict override -non-strict --def music=y artwork=n \
        "ut_dir=/mnt/hdd/downloads/[ www.CpasBien.cm ] Chocolat.2015.FRENCH.1080p.BluRay.x264-PiNKPANTERS.mkv" "ut_kind=multi" "ut_title=[ www.CpasBien.cm ] Chocolat.2015.FRENCH.1080p.BluRay.x264-PiNKPANTERS.mkv" "ut_label=Movie" @/srv/rtorrent/movieFormat.txt
Locking /var/log/rtorrent-postprocess
Run script [fn:amc] at [Fri Jun 03 16:10:19 CEST 2016]
Parameter: music = y
Parameter: artwork = n
Parameter: ut_dir = /mnt/hdd/downloads/[ www.CpasBien.cm ] Chocolat.2015.FRENCH.1080p.BluRay.x264-PiNKPANTERS.mkv
Parameter: ut_kind = multi
Parameter: ut_title = [ www.CpasBien.cm ] Chocolat.2015.FRENCH.1080p.BluRay.x264-PiNKPANTERS.mkv
Parameter: ut_label = Movie
Parameter: movieFormat = {n} ({y})/{n} ({y}) {" Part $pi"}{" [$vf $vc $ac $af]"}
Input: /mnt/hdd/downloads/[ www.CpasBien.cm ] Chocolat.2015.FRENCH.1080p.BluRay.x264-PiNKPANTERS.mkv
Group: [mov:chocolate city 2015] => [[ www.CpasBien.cm ] Chocolat.2015.FRENCH.1080p.BluRay.x264-PiNKPANTERS.mkv]
Rename movies using [TheMovieDB]
Looking up movie by query [Chocolat]
Apply Filter: {y == 2016}
Failed to find a valid match: [Chocolat (2000), Chocolat (2015), Chocolat (1988), Chocolate (2006), Thank You for the Chocolate (2000), The World According to Chocolat (2007), Foottit et Chocolat, IV. Guillaume Tell (1900), Crème glacée, chocolat et autres consolations (2001), Strawberry and Chocolate (1994), Bread and Chocolate (1974), Chocolate (1980), Chocolate (2007), Chocolate (2001), Blood and Chocolate (2007), Charlie and the Chocolate Factory (2005), Like Water for Chocolate (1992), Chocolate City (2015), Panzer Chocolate (2013), Shitsuren Chocolatier (2014)]
net.filebot.cli.CmdlineException: Failed to find a valid match: [Chocolat (2000), Chocolat (2015), Chocolat (1988), Chocolate (2006), Thank You for the Chocolate (2000), The World According to Chocolat (2007), Foottit et Chocolat, IV. Guillaume Tell (1900), Crème glacée, chocolat et autres consolations (2001), Strawberry and Chocolate (1994), Bread and Chocolate (1974), Chocolate (1980), Chocolate (2007), Chocolate (2001), Blood and Chocolate (2007), Charlie and the Chocolate Factory (2005), Like Water for Chocolate (1992), Chocolate City (2015), Panzer Chocolate (2013), Shitsuren Chocolatier (2014)]
        at net.filebot.cli.CmdlineOperations.renameMovie(CmdlineOperations.java:395)
        at net.filebot.cli.CmdlineOperations.rename(CmdlineOperations.java:105)
        at net.filebot.cli.ScriptShellBaseClass.rename(ScriptShellBaseClass.java:336)
        at Script1$_run_closure72.doCall(Script1.groovy:398)
        at Script1.run(Script1.groovy:356)
        at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:62)
        at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:72)
        at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:114)
        at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:29)
        at net.filebot.Main.main(Main.java:120)
Finished without processing any files
Failure (°_°)
User avatar
rednoah
The Source
Posts: 22985
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Movie mismatch: Chocolat

Post by rednoah »

Note that you can't force the query in the amc script.
If you use the amc script, options like --q have no effect.


Use the GUI, or simple -rename calls:

Code: Select all

filebot -rename --db TheMovieDB --q "Chocolat" --filter "y == 2016" /path/to/movie.mkv
:idea: Please read the FAQ and How to Request Help.
troubadour
Donor
Posts: 4
Joined: 03 Jun 2016, 09:34

Re: Movie mismatch: Chocolat

Post by troubadour »

Oh sorry, I've forgot to remove the amc script argument. Thanks it works now !

I have on last question, is it possible to define the format to use from a file, like I do with the amc script using the @ prefix ?
User avatar
rednoah
The Source
Posts: 22985
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Movie mismatch: Chocolat

Post by rednoah »

All arguments can be passed via @files:

Code: Select all

filebot @/path/to/args.txt
:idea: Please read the FAQ and How to Request Help.
Post Reply