Wrong match mit CLI

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
Massaguana
Posts: 35
Joined: 18 Mar 2018, 14:30

Wrong match mit CLI

Post by Massaguana »

Hello,

having problems to have correct match with CLI with short names...

This is my line:

Code: Select all

filebot --lang German -non-strict -script fn:amc /home/hd3/massaguana/RcloneIng/temp/*.mkv --output /home/hd3/massaguana/RcloneIng/temp/ --def @/home/hd3/massaguana/RcloneIng/filebot.txt
filebot.txt

Code: Select all

movieFormat={ny}/{ny}{' CD'+pi}{subt} - [GERMAN{fn.after(/German/)}]
seriesFormat={n} ({y})/{episode.special ? 'Specials' : 'Season '+s.pad(2)}/{n} ({y}) - {episode.special ? 's00e'+special.pad(2) : s00e00} - {t.replaceAll(/[`´‘’ʻ]/, /'/).replaceAll(/[!?.]+$$

Filename INPUT:

See.S01E04.GERMAN.DL.720p.WEB.H264-FENDT.mkv
See.S01E05.GERMAN.DL.720p.WEB.H264-FENDT.mkv

OUTPUT:

See Dad Run (2012)/Season 01/See Dad Run (2012) - S01E04 - Dad ist ein Zombie - [GERMAN.DL.720p.WEB.H264-FENDT].mkv
See No Evil (2015) (2015)/Season 01/See No Evil (2015) (2015) - S01E05 - Mansion Murder Cam - [GERMAN.DL.720p.WEB.H264-FENDT].mkv

Why 2 different matches? Is it possible to "fix" my line ti match short Names like this?

regards

Massaguana
User avatar
rednoah
The Source
Posts: 19140
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Wrong match mit CLI

Post by rednoah »

You could use the --filter option to help auto-detection a long a little bit:
viewtopic.php?t=2127


:?: Which one of those shows is the correct match anyway?
:idea: Please read the FAQ and How to Request Help.
ZeroByDivide
402
Posts: 157
Joined: 16 Dec 2014, 01:39

Re: Wrong match mit CLI

Post by ZeroByDivide »

rednoah wrote: 16 Nov 2019, 20:53 :?: Which one of those shows is the correct match anyway?
just going to chime in and say that neither of those matches that he posted above are correct, "See" is a new show that just came out recently (november 1st), and his two outputs are from 2012 and 2015.
kim
Power User
Posts: 1046
Joined: 15 May 2014, 16:17

Re: Wrong match mit CLI

Post by kim »

because of
--lang German
= wrong name

the correct name is
See: Reich der Blinden
or use
--lang English
User avatar
rednoah
The Source
Posts: 19140
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Wrong match mit CLI

Post by rednoah »

ZeroByDivide wrote: 16 Nov 2019, 23:25 just going to chime in and say that neither of those matches that he posted above are correct, "See" is a new show that just came out recently (november 1st), and his two outputs are from 2012 and 2015.
Ah! Yeah, FileBot is probably going through the same process as me, and simply isn't aware of that new series at all.


@Massaguana Does it work if you use --lang English? Does it work with --lang German if you pre-process files first to make sure the files include the German title?
:idea: Please read the FAQ and How to Request Help.
Massaguana
Posts: 35
Joined: 18 Mar 2018, 14:30

Re: Wrong match mit CLI

Post by Massaguana »

In moment FileBot CLI gives my this error message

Code: Select all

filebot -non-strict -script fn:amc /home/hd3/massaguana/RcloneIng/temp/*.mkv --output /home/hd3/massaguana/RcloneIng/temp/ --def @/home/hd3/massaguana/RcloneIng/filebot.txt
Run script [fn:amc] at [Sun Nov 17 14:11:52 CET 2019]
Parameter: movieFormat = {ny}/{ny}{' CD'+pi}{subt} - [GERMAN{fn.after(/German/)}]
Parameter: seriesFormat = {n} ({y})/{episode.special ? 'Specials' : 'Season '+s.pad(2)}/{n} ({y}) - {episode.special ? 's00e'+special.pad(2) : s00e00} - {t.replaceAll(/[`´‘’ʻ]/, /'/).replaceAll(/[!?.]+$/).replacePart(', Part $1')}{'.'+lang} - [GERMAN{fn.after(/German/)}]
Argument[0]: /home/hd3/massaguana/RcloneIng/temp/See.S01E05.GERMAN.DL.720p.WEB.H264-FENDT.mkv

----------------------------------- <README> -----------------------------------

Dear Linux user, massaguana,

FileBot currently only officially supports Windows 10 and macOS because these platforms make it easy to sell FileBot via their respective app stores. Unfortunately, selling software on Ubuntu, Debian, Red Hat, SUSE, Synology NAS, QNAP NAS, etc is not as easy and not really worth the effort considering the small number of users willing to support the project. This Patreon is an experiment to see how many users are willing to financially contribute towards freely available donation-supported new releases on these platforms.

Please support FileBot for Linux with a pledge of $1 per release on Patreon:

=> https://www.patreon.com/filebot

If every other Linux user were to pledge a small amount of money to the FileBot project, then you could easily fund the project ten times over. Please financially support the software you use and rely on, be it FileBot or any other tool. It's just polite, and it helps the ecosystem.

Thank you,
The FileBot Team

---------------------------------- </README> -----------------------------------

Input: /home/hd3/massaguana/RcloneIng/temp/See.S01E05.GERMAN.DL.720p.WEB.H264-FENDT.mkv
Group: [tvs:see] => [See.S01E05.GERMAN.DL.720p.WEB.H264-FENDT.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [see]
Fetch failed: http://thetvdb.com/api/GetSeries.php?seriesname=see&language=en
net.filebot.InvalidResponseException: Invalid XML: SAXParseException: The element type "hr" must be terminated by the matching end-tag "</hr>".
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>CloudFront</center>
</body>
</html>

	at net.filebot.CachedResource.lambda$validateXml$5(CachedResource.java:173)
	at net.filebot.CachedResource.lambda$get$1(CachedResource.java:99)
	at net.filebot.Cache.computeIf(Cache.java:90)
	at net.filebot.CachedResource.get(CachedResource.java:82)
	at net.filebot.web.TheTVDBClientV1.getXmlResource(TheTVDBClientV1.java:269)
	at net.filebot.web.TheTVDBClientV1.fetchSearchResult(TheTVDBClientV1.java:86)
	at net.filebot.WebServices$TheTVDBClientWithLocalSearch.access$001(WebServices.java:129)
	at net.filebot.WebServices$TheTVDBClientWithLocalSearch.lambda$fetchSearchResult$4(WebServices.java:151)
Caused by: org.xml.sax.SAXParseException; lineNumber: 6; columnNumber: 3; The element type "hr" must be terminated by the matching end-tag "</hr>".
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177)
	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400)
	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)
	at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1472)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1749)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2967)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
	at net.filebot.web.WebRequest.validateXml(WebRequest.java:324)
	at net.filebot.CachedResource.lambda$validateXml$5(CachedResource.java:170)
	... 7 more

ExecutionException: net.filebot.InvalidResponseException: Invalid XML: SAXParseException: The element type "hr" must be terminated by the matching end-tag "</hr>".
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>CloudFront</center>
</body>
</html>

Finished without processing any files
Failure (°_°)
User avatar
rednoah
The Source
Posts: 19140
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Wrong match mit CLI

Post by rednoah »

:idea: Please read the FAQ and How to Request Help.
Massaguana
Posts: 35
Joined: 18 Mar 2018, 14:30

Re: Wrong match mit CLI

Post by Massaguana »

Okay,

update the CLI Version to the last one with licence

with --lang English the match are correct, with --lang German the match are wrong
User avatar
rednoah
The Source
Posts: 19140
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Wrong match mit CLI

Post by rednoah »

Massaguana wrote: 18 Nov 2019, 12:44 with --lang English the match are correct, with --lang German the match are wrong
In that case, use --lang English for matching, and then use the {localize} binding in the format to get German episode titles:
viewtopic.php?t=3761

e.g.

Code: Select all

{localize.de.t}
:idea: Please read the FAQ and How to Request Help.
Massaguana
Posts: 35
Joined: 18 Mar 2018, 14:30

Re: Wrong match mit CLI

Post by Massaguana »

Okay, in moment it looks like it works... i test it the next days with many more TV shows
Massaguana
Posts: 35
Joined: 18 Mar 2018, 14:30

Re: Wrong match mit CLI

Post by Massaguana »

Here are an new wrong match

Input: The.Mandalorian.S01E03.GERMAN.DL.720p.WEB.H264.iNTERNAL-FENDT.mkv
Output: The Mandaloriano con las tetas en la mano (2019)/Season 01/The Mandaloriano con las tetas en la mano (2019) - S01E03 - Chapter 3 The Sin Kapitel 3 Der Fehler - [GERMAN.DL.720p.WEB.H264.iNTERNAL-FENDT].mkv

Here are 2 Languages mixed together, Germany and i think Spanish
User avatar
rednoah
The Source
Posts: 19140
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Wrong match mit CLI

Post by rednoah »

Here's what I get:

Code: Select all

$ filebot -rename The.Mandalorian.S01E03.GERMAN.DL.720p.WEB.H264.iNTERNAL-FENDT.mkv --log INFO
[MOVE] from [The.Mandalorian.S01E03.GERMAN.DL.720p.WEB.H264.iNTERNAL-FENDT.mkv] to [The Mandalorian - 1x03 - Chapter 3 The Sin.mkv]
:idea: Please read the FAQ and How to Request Help.
Massaguana
Posts: 35
Joined: 18 Mar 2018, 14:30

Re: Wrong match mit CLI

Post by Massaguana »

Yes, this is the "English" match... i setup an "German" match...
User avatar
rednoah
The Source
Posts: 19140
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Wrong match mit CLI

Post by rednoah »

Code: Select all

filebot -rename The.Mandalorian.S01E03.GERMAN.DL.720p.WEB.H264.iNTERNAL-FENDT.mkv --log INFO --lang German
[MOVE] from [The.Mandalorian.S01E03.GERMAN.DL.720p.WEB.H264.iNTERNAL-FENDT.mkv] to [The Mandalorian - 1x03 - Kapitel 3 Der Fehler.mkv]
:idea: Please read the FAQ and How to Request Help.
Massaguana
Posts: 35
Joined: 18 Mar 2018, 14:30

Re: Wrong match mit CLI

Post by Massaguana »

Code: Select all

filebot --log INFO --lang English -non-strict -script fn:amc /home/hd3/massaguana/RcloneIng/temp/*.mkv --output /home/hd3/massaguana/RcloneIng/temp/ --def @/home/hd3/massaguana/RcloneIng/filebot.txt
[MOVE] from [/home/hd3/massaguana/RcloneIng/temp/The.Mandalorian.S01E03.GERMAN.DL.720p.WEB.H264.iNTERNAL-FENDT.mkv] to [/home/hd3/massaguana/RcloneIng/temp/The Mandalorian (2019)/Season 01/The Mandalorian (2019) - S01E03 - Chapter 3 The Sin Kapitel 3 Der Fehler - [GERMAN.DL.720p.WEB.H264.iNTERNAL-FENDT].mkv]
filebot.txt

Code: Select all

movieFormat={ny}/{ny}{' CD'+pi}{subt} - [GERMAN{fn.after(/German/)}]
seriesFormat={n} ({y})/{episode.special ? 'Specials' : 'Season '+s.pad(2)}/{n} ({y}) - {episode.special ? 's00e'+special.pad(2) : s00e00} - {t.replaceAll(/[`´‘’ʻ]/, /'/).replaceAll(/[!?.]+$$
and here with GERMAN

Code: Select all

filebot --log INFO --lang German -non-strict -script fn:amc /home/hd3/massaguana/RcloneIng/temp/*.mkv --output /home/hd3/massaguana/RcloneIng/temp/ --def @/home/hd3/massaguana/RcloneIng/filebot.txt
[MOVE] from [/home/hd3/massaguana/RcloneIng/temp/The.Mandalorian.S01E03.GERMAN.DL.720p.WEB.H264.iNTERNAL-FENDT.mkv] to [/home/hd3/massaguana/RcloneIng/temp/The Mandalorian (2019)/Season 01/The Mandalorian (2019) - S01E03 - Kapitel 3 Der Fehler Kapitel 3 Der Fehler - [GERMAN.DL.720p.WEB.H264.iNTERNAL-FENDT].mkv]
User avatar
rednoah
The Source
Posts: 19140
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Wrong match mit CLI

Post by rednoah »

Looks good to me. Which part of these logs does not work as expected? English series name. German episode title. Check. Check.


EDIT:

Note that I spot discrepancies between your format and the output path. Where does the [GERMAN.DL.720p.WEB.H264.iNTERNAL-FENDT] bit come from in the output file path? Doesn't look like the format is producing that, so the format you posted isn't the format that is being used here.
:idea: Please read the FAQ and How to Request Help.
Post Reply