fn:utorrent-postprocess mismatch: Saving Private Ryan (1998)

All your suggestions, requests and ideas for future development
Post Reply
verysofttoiletpaper
Posts: 141
Joined: 05 Jul 2012, 09:44

fn:utorrent-postprocess mismatch: Saving Private Ryan (1998)

Post by verysofttoiletpaper »

In this case the subtitles are causing the problems. It works fine only with the .avi

Code: Select all

Input: /mnt/media/Media/Deluge/completed/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON/SUBS/Dutch.srt
Input: /mnt/media/Media/Deluge/completed/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON/SUBS/English.srt
Input: /mnt/media/Media/Deluge/completed/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON.avi
Jul 27, 2012 2:21:40 AM net.sourceforge.filebot.web.TMDbClient getMovies
INFO: Ignore movie [Dirty Dutch 2008 Aftershock]: Missing data: year
Jul 27, 2012 2:21:40 AM net.sourceforge.filebot.web.TMDbClient getMovies
INFO: Ignore movie [Hit the Dutchman]: Missing data: year
Dutch.srt [series: Ryan, movie: Saving Private Ryan (1998)]
Jul 27, 2012 2:21:42 AM net.sourceforge.filebot.web.TMDbClient getMovies
INFO: Ignore movie [Dirty Dutch 2008 Aftershock]: Missing data: year
Jul 27, 2012 2:21:42 AM net.sourceforge.filebot.web.TMDbClient getMovies
INFO: Ignore movie [Hit the Dutchman]: Missing data: year
Exception: Media detection failed
java.lang.Exception: Media detection failed
	at Script3$_run_closure5.doCall(Script3.groovy:60)
	at Script3.run(Script3.groovy:36)
	at net.sourceforge.filebot.cli.ScriptShell.evaluate(Unknown Source)
	at net.sourceforge.filebot.cli.ScriptShell.runScript(Unknown Source)
	at net.sourceforge.filebot.cli.ArgumentProcessor.process(Unknown Source)
	at net.sourceforge.filebot.Main.main(Unknown Source)
Failure (°_°)
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: fn:utorrent-postprocess mismatch: Saving Private Ryan (1

Post by rednoah »

Fixed, but it'll need FileBot r1163+ and the script from r1163+

I won't update the online stuff until a little while after next release to give people time to update. Later I'll just have to break things for people that didn't update... :P
:idea: Please read the FAQ and How to Request Help.
verysofttoiletpaper
Posts: 141
Joined: 05 Jul 2012, 09:44

Re: fn:utorrent-postprocess mismatch: Saving Private Ryan (1

Post by verysofttoiletpaper »

Thanks! Can the new script be found online?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: fn:utorrent-postprocess mismatch: Saving Private Ryan (1

Post by rednoah »

updated all the stuff in the svn again, now it's included along in the script with some other stuff
:idea: Please read the FAQ and How to Request Help.
verysofttoiletpaper
Posts: 141
Joined: 05 Jul 2012, 09:44

Re: fn:utorrent-postprocess mismatch: Saving Private Ryan (1

Post by verysofttoiletpaper »

Thanks :D

It' throwing an error though..
I've installed filebot-2.64-r1175-sths.jar and it works fin with fn:utorrent-postprocess but it fails using the script from HEAD:

Code: Select all

MissingPropertyException: No such property: bindings for class: net.sourceforge.filebot.cli.ArgumentBean
groovy.lang.MissingPropertyException: No such property: bindings for class: net.sourceforge.filebot.cli.ArgumentBean
	at Script3.run(Script3.groovy:6)
	at net.sourceforge.filebot.cli.ScriptShell.evaluate(Unknown Source)
	at net.sourceforge.filebot.cli.ScriptShell.runScript(Unknown Source)
	at net.sourceforge.filebot.cli.ArgumentProcessor.process(Unknown Source)
	at net.sourceforge.filebot.Main.main(Unknown Source)
Failure (°_°)
verysofttoiletpaper
Posts: 141
Joined: 05 Jul 2012, 09:44

Re: fn:utorrent-postprocess mismatch: Saving Private Ryan (1

Post by verysofttoiletpaper »

Probably something related with this?

Code: Select all

// filebot -script "fn:utorrent-postprocess" --output "X:/media" --action copy --conflict override --def xbmc=localhost "ut_dir=%D" "ut_file=%F" "ut_kind=%K" "ut_label=%L" "ut_state=%S"
But when I tried this form I got

Code: Select all

"--def" is not a valid option
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: fn:utorrent-postprocess mismatch: Saving Private Ryan (1

Post by rednoah »

Sorry, things are workin progress right now... been rewriting some stuff and decided to change that ugly -Xname=val syntax while I'm at it. It's now --def a=1 b=2 c=3 ...

Uploaded r1178 which should work with the latest script from SVN.
:idea: Please read the FAQ and How to Request Help.
verysofttoiletpaper
Posts: 141
Joined: 05 Jul 2012, 09:44

Re: fn:utorrent-postprocess mismatch: Saving Private Ryan (1

Post by verysofttoiletpaper »

Bingo, but.. Now it matches the subtitles movie correctly but still tries to fetch new subltitles, and then some confusion in the end.
Besides it's complaining about missing http://filebot.sourceforge.net/scripts/lib/htpc.groovy

Code: Select all

Input: /mnt/media/Media/Deluge/completed/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON/SUBS/Dutch.srt
Input: /mnt/media/Media/Deluge/completed/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON/SUBS/English.srt
Input: /mnt/media/Media/Deluge/completed/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON.avi
FileNotFoundException: http://filebot.sourceforge.net/scripts/lib/htpc.groovy
Dutch.srt [series: Ryan, movie: Saving Private Ryan (1998)]
Exclude Series: Ryan
English.srt [series: Ryan, movie: Saving Private Ryan (1998)]
Exclude Series: Ryan
Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON.avi [series: Ryan, movie: Saving Private Ryan (1998)]
Exclude Series: Ryan
Missing subtitles for 1 video files
Looking up subtitles by filehash via OpenSubtitles
Looking up subtitles by filehash via Sublight
Lookup by hash failed: java.lang.IllegalStateException: Sublight login has not been configured
Searching for [Private Ryan, Ryan, Saving Private Ryan] at [OpenSubtitles]
Matched [Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON.avi] to [Saving Private Ryan [1998]] via filename
Fetching [Saving Private Ryan [1998].srt]
Export [Saving Private Ryan [1998].srt] as: SubRip / UTF-8
Writing [Saving Private Ryan [1998].srt] to [Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON.eng.srt]
Rename movies using [TheMovieDB]
Looking up movie by filehash via [TheMovieDB]
TheMovieDB: Hash lookup not supported
Auto-detect movie from context: [/mnt/media/Media/Deluge/completed/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON/SUBS/Dutch.srt]
Exception: [Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON/Dutch.srt] Failed to auto-select search result: [Saving Private Ryan (1998), Private Ryan (1998), Dutch (1991), In Dutch (1946), Dutch Treat (1987), Dutch Girls (1985), Alice Gets in Dutch (1924), Dutchman (1967), Pandora and the Flying Dutchman (1951), Andre Rieu - The Flying Dutchman (2005)]
Auto-detect movie from context: [/mnt/media/Media/Deluge/completed/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON/SUBS/English.srt]
Exception: [Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON/English.srt] Failed to auto-select search result: [Saving Private Ryan (1998), Private Ryan (1998), An A to Z of English (1995), The English Patient (1996), A Rather English Marriage (1999), English Vinglish (2012), Johnny English (2003), Broken English (2007), Two English Girls (1971), Pure English Murder (1974), Brainy Baby English (2004), Johnny English Reborn (2011), Please Teach Me English (2003), Mad Dogs And Englishmen (1995), The Englishman Who Went Up a Hill But Came Down a Mountain (1995), The Romantic Englishwoman (1975), Mad Dogs & Englishmen (1971), An Englishman Abroad (1983), An Englishman in New York (2009), Thomas Paine: The Most Valuable Englishman Ever (1982), Deserter (2002), How to Kill Your Neighbor's Dog (2000)]
[COPY] Rename [/mnt/media/Media/Deluge/completed/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON.avi] to [/mnt/media/Media/Movies/Saving Private Ryan (1998)/Saving Private Ryan (1998).avi]
verysofttoiletpaper
Posts: 141
Joined: 05 Jul 2012, 09:44

Re: fn:utorrent-postprocess mismatch: Saving Private Ryan (1

Post by verysofttoiletpaper »

With htpc fixed, still problems with the subtitles:

Code: Select all

Input: /mnt/media/Media/Deluge/completed/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON/SUBS/Dutch.srt
Input: /mnt/media/Media/Deluge/completed/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON/SUBS/English.srt
Input: /mnt/media/Media/Deluge/completed/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON.avi
Dutch.srt [series: Ryan, movie: Saving Private Ryan (1998)]
Exclude Series: Ryan
English.srt [series: Ryan, movie: Saving Private Ryan (1998)]
Exclude Series: Ryan
Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON.avi [series: Ryan, movie: Saving Private Ryan (1998)]
Exclude Series: Ryan
Missing subtitles for 1 video files
Looking up subtitles by filehash via OpenSubtitles
Looking up subtitles by filehash via Sublight
Lookup by hash failed: java.lang.IllegalStateException: Sublight login has not been configured
Searching for [Private Ryan, Ryan, Saving Private Ryan] at [OpenSubtitles]
Matched [Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON.avi] to [Saving Private Ryan [1998]] via filename
Fetching [Saving Private Ryan [1998].srt]
Export [Saving Private Ryan [1998].srt] as: SubRip / UTF-8
Writing [Saving Private Ryan [1998].srt] to [Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON.eng.srt]
Rename movies using [TheMovieDB]
Looking up movie by filehash via [TheMovieDB]
TheMovieDB: Hash lookup not supported
Auto-detect movie from context: [/mnt/media/Media/Deluge/completed/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON/SUBS/Dutch.srt]
Exception: [Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON/Dutch.srt] Failed to auto-select search result: [Saving Private Ryan (1998), Private Ryan (1998), Dutch (1991), In Dutch (1946), Dutch Treat (1987), Dutch Girls (1985), Alice Gets in Dutch (1924), Dutchman (1967), Pandora and the Flying Dutchman (1951), Andre Rieu - The Flying Dutchman (2005)]
Auto-detect movie from context: [/mnt/media/Media/Deluge/completed/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON/SUBS/English.srt]
Exception: [Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON/English.srt] Failed to auto-select search result: [Saving Private Ryan (1998), Private Ryan (1998), An A to Z of English (1995), The English Patient (1996), A Rather English Marriage (1999), English Vinglish (2012), Johnny English (2003), Broken English (2007), Two English Girls (1971), Pure English Murder (1974), Brainy Baby English (2004), Johnny English Reborn (2011), Please Teach Me English (2003), Mad Dogs And Englishmen (1995), The Englishman Who Went Up a Hill But Came Down a Mountain (1995), The Romantic Englishwoman (1975), Mad Dogs & Englishmen (1971), An Englishman Abroad (1983), An Englishman in New York (2009), Thomas Paine: The Most Valuable Englishman Ever (1982), Deserter (2002), How to Kill Your Neighbor's Dog (2000)]
Exception: File already exists: /mnt/media/Media/Movies/Saving Private Ryan (1998)/Saving Private Ryan (1998).avi
NullPointerException: Cannot invoke method mapByFolder() on null object
java.lang.NullPointerException: Cannot invoke method mapByFolder() on null object
	at Script3$_run_closure6.doCall(Script3.groovy:93)
	at Script3.run(Script3.groovy:67)
	at net.sourceforge.filebot.cli.ScriptShell.evaluate(Unknown Source)
	at net.sourceforge.filebot.cli.ScriptShell.runScript(Unknown Source)
	at net.sourceforge.filebot.cli.ArgumentProcessor.process(Unknown Source)
	at net.sourceforge.filebot.Main.main(Unknown Source)
Failure (°_°)
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: fn:utorrent-postprocess mismatch: Saving Private Ryan (1

Post by rednoah »

1. In strict mode it won't fetch subtitles when it's not sure what movie/series to select. You can set -non-strict to just select everything end let it figure things out later.

But it's soo many options, looks like it's detecting possible movie names from those subtitles folders... fixed that with r1180.

2. Changed how scripts are resolved to better work with relative includes inside the first script.

btw with r1180+ you can do this to work with the latest script from the svn:
filebot -clear svn:utorrent-postprocess ...

3. I'm letting the script crash if --conflict fail is set. Otherwise it wouldn't let that NullPointerException happen.
:idea: Please read the FAQ and How to Request Help.
verysofttoiletpaper
Posts: 141
Joined: 05 Jul 2012, 09:44

Re: fn:utorrent-postprocess mismatch: Saving Private Ryan (1

Post by verysofttoiletpaper »

Working now, but still not taking advantage of existing subtitles. It interprets them as CD1 and CD2 subs..

Code: Select all

filebot -script "/mnt/media/Media/filebot/utorrent-postprocess.groovy" --output "/mnt/media/Media" --action copy --conflict fail -non-strict -trust-script --def xbmc=localhost "ut_dir=/mnt/media/Media/Deluge/completed/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON" "ut_kind=multi"
Parameter: xbmc = localhost
Parameter: ut_dir = /mnt/media/Media/Deluge/completed/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON
Parameter: ut_kind = multi
Input: /mnt/media/Media/Deluge/completed/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON/SUBS/Dutch.srt
Input: /mnt/media/Media/Deluge/completed/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON/SUBS/English.srt
Input: /mnt/media/Media/Deluge/completed/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON.avi
Dutch.srt [series: Ryan, movie: Saving Private Ryan (1998)]
Exclude Series: Ryan
English.srt [series: Ryan, movie: Saving Private Ryan (1998)]
Exclude Series: Ryan
Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON.avi [series: Ryan, movie: Saving Private Ryan (1998)]
Exclude Series: Ryan
Missing subtitles for 1 video files
Looking up subtitles by filehash via OpenSubtitles
Looking up subtitles by filehash via Sublight
Lookup by hash failed: java.lang.IllegalStateException: Sublight login has not been configured
Searching for [Private, Private Ryan, Ryan, Saving Private Ryan] at [OpenSubtitles]
Matched [Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON.avi] to [Saving Private Ryan [1998]] via filename
Fetching [Saving Private Ryan [1998].srt]
Export [Saving Private Ryan [1998].srt] as: SubRip / UTF-8
Writing [Saving Private Ryan [1998].srt] to [Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON.eng.srt]
Rename movies using [TheMovieDB]
Looking up movie by filehash via [TheMovieDB]
TheMovieDB: Hash lookup not supported
Auto-detect movie from context: [/mnt/media/Media/Deluge/completed/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON/SUBS/Dutch.srt]
Auto-detect movie from context: [/mnt/media/Media/Deluge/completed/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON/SUBS/English.srt]
[COPY] Rename [/mnt/media/Media/Deluge/completed/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON.avi] to [/mnt/media/Media/Movies/Saving Private Ryan (1998)/Saving Private Ryan (1998).avi]
[COPY] Rename [/mnt/media/Media/Deluge/completed/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON.eng.srt] to [/mnt/media/Media/Movies/Saving Private Ryan (1998)/Saving Private Ryan (1998).eng.srt]
[COPY] Rename [/mnt/media/Media/Deluge/completed/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON/SUBS/Dutch.srt] to [/mnt/media/Media/Movies/Saving Private Ryan (1998)/Saving Private Ryan (1998) CD1.dut.srt]
[COPY] Rename [/mnt/media/Media/Deluge/completed/Saving.Private.Ryan.1998.720p.BRRip.XviD.AC3-ViSiON/SUBS/English.srt] to [/mnt/media/Media/Movies/Saving Private Ryan (1998)/Saving Private Ryan (1998) CD2.eng.srt]
Processed 4 files
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: fn:utorrent-postprocess mismatch: Saving Private Ryan (1

Post by rednoah »

Can't be helped. Those subs don't match the movie file.

Like this they're treated as subs without video. Just happens to work out this way in this case.
:idea: Please read the FAQ and How to Request Help.
Post Reply