Strict matching isn't

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
politby
Posts: 14
Joined: 09 Jul 2016, 08:10

Strict matching isn't

Post by politby »

Hi
I'm using Filebot to organize TV recordings. The TV guide data from some channels is not that great so I have to use strict matching. But it seems Filebot is using opportunistic matching because I end up with moves which shouldn't happen, e.g.

Original Name New Name New Location
Shetland-E01.ts The Shetland Experience (1977).ts /media/nasshare/movies/The Shetland Experience (1977)

"Shetland" being a TV show - and in this case missing the season number - should not be matched as a movie when "non-strict" is not being used. Below is the script I'm using - how can I improve it?

Code: Select all

/snap/bin/filebot -script fn:amc \
	--output "/media/nasshare/movies" \
	--log-file /root/filebot/logs/amc-tv.log \
	--action move \
	--conflict auto \
	"/media/record" \
	--def \
	excludeList=/root/filebot/logs/filebot-history-tv.log \
	mail="xxx" \
	mailto="yyy" \
	"ut_label=TV" \
	seriesFormat="/media/nasshare2/series/{n}/Season {s.pad(2)}/{s00e00} - {t}" \

/snap/bin/filebot -script fn:amc \
	--output "/media/nasshare/movies" \
	--log-file /root/filebot/logs/amc-movies.log \
	--action move \
	--conflict auto \
	"/media/record" \
	--def \
	excludeList=/root/filebot/logs/filebot-history-movies.log \
	mail="xxx" \
	mailto="yyy" \
	"ut_label=Movie" \
	movieFormat="/media/nasshare/movies/{n} ({y})/{n} ({y})"
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Strict matching isn't

Post by rednoah »

Please post the log so I can see what's going on.
:idea: Please read the FAQ and How to Request Help.
politby
Posts: 14
Joined: 09 Jul 2016, 08:10

Re: Strict matching isn't

Post by politby »

rednoah wrote: 26 Feb 2018, 11:15 Please post the log so I can see what's going on.

Code: Select all

Run script [fn:amc] at [Mon Feb 26 09:43:08 CET 2018]
Parameter: excludeList = /root/filebot/logs/filebot-history-movies.log
Parameter: mail = *****
Parameter: mailto = *****
Parameter: ut_label = Movie
Parameter: movieFormat = /media/nasshare/movies/{n} ({y})/{n} ({y})
Argument[0]: /media/record
Use excludes: /root/filebot/logs/filebot-history-movies.log
Ignore system path: /media/record/lost+found
Input: /media/record/Shetland-E01.ts
Input: /media/record/Shetland-E02.ts
Input: /media/record/Skavlan-E07.ts
Input: /media/record/Skavlan-E07_15-10260000-1519477500.ts
Group: [mov:the shetland experience 1977] => [Shetland-E01.ts, Shetland-E02.ts]
Group: [mov:null] => [Skavlan-E07.ts, Skavlan-E07_15-10260000-1519477500.ts]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/media/record/Shetland-E01.ts]
Auto-detect movie from context: [/media/record/Shetland-E02.ts]
[MOVE] From [/media/record/Shetland-E01.ts] to [/media/nasshare/movies/The Shetland Experience (1977)/The Shetland Experience (1977).ts]
[OVERRIDE] Delete [/media/nasshare/movies/The Shetland Experience (1977)/The Shetland Experience (1977).ts]
[MOVE] From [/media/record/Shetland-E02.ts] to [/media/nasshare/movies/The Shetland Experience (1977)/The Shetland Experience (1977).ts]
Processed 2 files

Done ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Strict matching isn't

Post by rednoah »

Good News!

This problem has been fixed a long time ago:

Code: Select all

filebot -rename Shetland-E01.ts --db TheMovieDB
Rename movies using [TheMovieDB]
Auto-detect movie from context: [Shetland-E01.ts]
Failed to identify or process any files

Bad News!

I see you're using the SNAP package, which probably means you're using FileBot 4.7.9 which is currently the last freely available version of FileBot. Unfortunately, newer versions are only available as paid purchase on Windows and Mac.

If you're on Linux, then you might be able to use the latest portable package, and combine that with the latest beta jar, i.e. some assembly required.
:idea: Please read the FAQ and How to Request Help.
politby
Posts: 14
Joined: 09 Jul 2016, 08:10

Re: Strict matching isn't

Post by politby »

rednoah wrote: 27 Feb 2018, 04:40 Good News!

This problem has been fixed a long time ago:

Code: Select all

filebot -rename Shetland-E01.ts --db TheMovieDB
Rename movies using [TheMovieDB]
Auto-detect movie from context: [Shetland-E01.ts]
Failed to identify or process any files

Bad News!

I see you're using the SNAP package, which probably means you're using FileBot 4.7.9 which is currently the last freely available version of FileBot. Unfortunately, newer versions are only available as paid purchase on Windows and Mac.

If you're on Linux, then you might be able to use the latest portable package, and combine that with the latest beta jar, i.e. some assembly required.
Ah. I could run it on Windows but it would have to be Server 2016 which doesn't have a Store...
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Strict matching isn't

Post by rednoah »

Sorry. With Windows Server 2016 you'd have the same problem as with SNAP, in that only older versions are available for free.
:idea: Please read the FAQ and How to Request Help.
politby
Posts: 14
Joined: 09 Jul 2016, 08:10

Re: Strict matching isn't

Post by politby »

rednoah wrote: 05 Mar 2018, 08:51 Sorry. With Windows Server 2016 you'd have the same problem as with SNAP, in that only older versions are available for free.
Okay so I ponied up the 19.99 and fired up a Windows 10 VM. It's no longer mis-sorting "Shetand" but it's doing other weird stuff.

Code: Select all

filebot -script fn:amc ^
	--output "\\192.168.2.7\share\movies" ^
	--log-file "\\192.168.2.60\record\logs\amc-movies.log" ^
	--action move ^
	--conflict auto ^
	"\\192.168.2.60\record" ^
	--def ^
	excludeList="\\192.168.2.60\record\logs\filebot-history-movies.log" ^
	mail="xxx" ^
	mailto="yyy" ^
	"ut_label=Movie" ^
	movieFormat="\\192.168.2.7\share\movies\{n} ({y})/{n} ({y})"
results in (note the last line)

Code: Select all

Run script [fn:amc] at [Mon Mar 05 19:29:14 CET 2018]
Parameter: excludeList = \\192.168.2.60\record\logs\filebot-history-movies.log
Parameter: mail = *****
Parameter: mailto = *****
Parameter: ut_label = Movie
Parameter: movieFormat = \\192.168.2.7\share\movies\{n} ({y})/{n} ({y})
Argument[0]: \\192.168.2.60\record
Use excludes: \\192.168.2.60\record\logs\filebot-history-movies.log
Input: \\192.168.2.60\record\Skavlan-E07_15-10260000-1519477500.ts
Input: \\192.168.2.60\record\Skavlan-E07_15-10260000-1519644600.ts
Input: \\192.168.2.60\record\Skavlan-E07_15-10260000-1519907400.ts
Input: \\192.168.2.60\record\Skavlan-E08.ts
Input: \\192.168.2.60\record\Skavlan-E08_15-10260000-1520249100.ts
Input: \\192.168.2.60\record\Veckans brott-S16E08.ts
Group: [mov:record 2014] => [Skavlan-E07_15-10260000-1519477500.ts, Skavlan-E07_15-10260000-1519644600.ts, Skavlan-E07_15-10260000-1519907400.ts, Skavlan-E08.ts, Skavlan-E08_15-10260000-1520249100.ts, Veckans brott-S16E08.ts]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [\\192.168.2.60\record\Skavlan-E07_15-10260000-1519477500.ts]
Auto-detect movie from context: [\\192.168.2.60\record\Skavlan-E07_15-10260000-1519644600.ts]
Auto-detect movie from context: [\\192.168.2.60\record\Skavlan-E07_15-10260000-1519907400.ts]
Auto-detect movie from context: [\\192.168.2.60\record\Skavlan-E08.ts]
Auto-detect movie from context: [\\192.168.2.60\record\Skavlan-E08_15-10260000-1520249100.ts]
Auto-detect movie from context: [\\192.168.2.60\record\Veckans brott-S16E08.ts]
[MOVE] From [\\192.168.2.60\record\Skavlan-E07_15-10260000-1519477500.ts] to [\\192.168.2.7\share\movies\Record (2014)\Record (2014).ts]
Why is it thinking the source directory is a movie?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Strict matching isn't

Post by rednoah »

Not sure. It kinda looks like you're processing episode files, and forcing FileBot to interpret them as movie files.
rednoah wrote:You can (and should) force Movie/Series/Anime mode or force ignore files via labels, e.g. label as Movie to force TheMovieDB, Series to force TheTVDB, Anime to force AniDB, or other to ignore all files. Alternatively, folder names such as Movies/TV Shows/Anime may also be used to force a specific mode.
What would be the correct behaviour you expect?
:idea: Please read the FAQ and How to Request Help.
politby
Posts: 14
Joined: 09 Jul 2016, 08:10

Re: Strict matching isn't

Post by politby »

rednoah wrote: 05 Mar 2018, 18:53 Not sure. It kinda looks like you're processing episode files, and forcing FileBot to interpret them as movie files.
rednoah wrote:You can (and should) force Movie/Series/Anime mode or force ignore files via labels, e.g. label as Movie to force TheMovieDB, Series to force TheTVDB, Anime to force AniDB, or other to ignore all files. Alternatively, folder names such as Movies/TV Shows/Anime may also be used to force a specific mode.
What would be the correct behaviour you expect?
How can it take the name of the input directory and process that as a movie?

[MOVE] From [\\192.168.2.60\record\Skavlan-E07_15-10260000-1519477500.ts] to [\\192.168.2.7\share\movies\Record (2014)\Record (2014).ts]

I actually have two scripts, one for movies and one for episodes. They have the same input directory (where my DVR software stores recordings) but different output directories as set in the series/movie_format parameters. They are run separately every other day.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Strict matching isn't

Post by rednoah »

1.
You gave me an example of incorrect behaviour. But what is the correct behaviour? What is the correct match? Can you give me a TheTVDB link for the correct episode match? ;)

Yes, the bad match "Record" is clearly a result of the parent folder being named "record". But that doesn't tell me what the correct behaviour should be. In the absence of a movie called "Skavlan" the most likely match is "Record". You can't tell FileBot to interpret all files as movies, and then pass in episode files, and expect that to work. ;)

:idea: If you process episode files, then you must not use --def ut_label=Movie. You should use --def ut_label=TV instead.



2.
What episode is Skavlan-E07_15-10260000-1519477500.ts supposed to be? I don't watch that show, and I didn't record that show, so you have to tell me what the correct behaviour would be. ;)

e.g. I don't know what the correct match is supposed to be, so I'm just gonna tell FileBot to assume that this is an Episode of Season 1:

Code: Select all

$ filebot -rename Skavlan-E07.mp4 --db TheTVDB -non-strict --filter 's == 1' --log INFO --action TEST
[TEST] From [Skavlan-E07.mp4] to [Skavlan - 1x07 - Liza Marklund, Mads Mikkelsen, Stellan Skarsgård, Alice Bah Kuhnke, Amos Oz, Tomas Ledin.mp4]
:idea: If you process files that don't contain enough information to be identified correctly, then you may need to use --filter to give FileBot a few extra hints. The Advanced Fine-Tuning section of the amc manual would be a good place to start reading up on that.



3.
I've added "record" to the blacklist:
viewtopic.php?f=3&t=360
:idea: Please read the FAQ and How to Request Help.
politby
Posts: 14
Joined: 09 Jul 2016, 08:10

Re: Strict matching isn't

Post by politby »

You gave me an example of incorrect behaviour. But what is the correct behaviour? What is the correct match? Can you give me a TheTVDB link for the correct episode match? ;)
Sorry about that ;) . I wasn't being clear - the file names are created from EPG data which, depending on the channel, can be anything from meaningless to almost accurate so I am always going to have failed matches. In the "Skavlan-E07_15-10260000-1519477500.ts" case the desired behavior would be to simply ignore it if no exact match.
Yes, the bad match "Record" is clearly a result of the parent folder being named "record". But that doesn't tell me what the correct behaviour should be. In the absence of a movie called "Skavlan" the most likely match is "Record". You can't tell FileBot to interpret all files as movies, and then pass in episode files, and expect that to work. ;)

:idea: If you process episode files, then you must not use --def ut_label=Movie. You should use --def ut_label=TV instead.
I get that and that's why have two scripts, one for movies and one for series:

Code: Select all

filebot -script fn:amc ^
	--output "\\192.168.2.7\share\movies" ^
	--log-file "\\192.168.2.60\record\logs\amc-movies.log" ^
	--action move ^
	--conflict auto ^
	"\\192.168.2.60\record" ^
	--def ^
	excludeList="\\192.168.2.60\record\logs\filebot-history-movies.log" ^
	mail="xxx" ^
	mailto="yyy" ^
	emby="192.168.2.2:0d0d3b2308b9431fbec57d95b05e5783" ^
	"ut_label=Movie" ^
	movieFormat="\\192.168.2.7\share\movies\{n} ({y})/{n} ({y})"

Code: Select all

filebot -script fn:amc 	^
	--output "\\192.168.2.7\share2\series" ^
	--log-file "\\192.168.2.60\record\logs\amc-tv.log" ^
	--action move 	^
	--conflict auto ^
	-non-strict ^
	"\\192.168.2.60\record" ^
	--def excludeList="\\192.168.2.60\record\logs\filebot-history-tv.log" ^
	mail="xxx" ^
	mailto="yyy" ^
	"ut_label=TV" ^
	seriesFormat="\\192.168.2.7\share2\series\{n}\Season {s.pad(2)}\{s00e00} - {t}" 
where the first one is expected to match movies and the second to match episodes.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Strict matching isn't

Post by rednoah »

1.
I recommend renaming your "record" folders to "recordings" to avoid this kind of issue:
https://github.com/filebot/data/blob/ma ... t.txt#L216



2.
Running files through full processing just to see if it works is not supported. You can't use -non-strict to check if any of your episode files are movie files. The amc script generally does not support -non-strict. This usage is never tested.


TL;DR You have an episode file. But you run with --def ut_label=Movie. Why?


NO (if you don't know what it is, you don't tell FileBot that it's both at the same time)

Code: Select all

filebot -script fn:amc /record/A --def ut_label=Movie ...
filebot -script fn:amc /record/A --def ut_label=TV ...
YES (if you know what it is, you tell FileBot what it is)

Code: Select all

filebot -script fn:amc /record/A --def ut_label=Movie ...
filebot -script fn:amc /record/B --def ut_label=TV ...
YES (if you don't know what it is, you don't tell FileBot what it is)

Code: Select all

filebot -script fn:amc /record/A ...


3.
Here's how I'd process this particular file:

Code: Select all

$ filebot -rename *.ts --db TheTVDB -non-strict --filter 'age < 30' --action TEST
Rename episodes using [TheTVDB]
Auto-detected query: [Skavlan]
Fetching episode data for [Skavlan]
Apply filter [age < 30] on [230] items
Include [Skavlan - 19x05 - Tove Lo, Anna Hage, Petter Stordalen, Vegard Ylvisåker, Bård Ylvisåker]
Include [Skavlan - 19x06 - Matt LeBlanc, Jojo Moyes, Christiane Amanpour, Shiori Ito, Rag'n'Bone Man]
Include [Skavlan - 19x07 - Fredrik Lindström, Ari Behn, Lene Cecilia Sparrok, Sofia Haugan, Halie]
Include [Skavlan - 19x08 - Fares Fares, Filip Hammar, Joan Baez, Pernille Sørensen]
[TEST] From [Skavlan-E07_15-10260000-1519477500.ts] to [Skavlan - 19x07 - Fredrik Lindström, Ari Behn, Lene Cecilia Sparrok, Sofia Haugan, Halie.ts]
Processed 1 files
I'm using the age filter approach because we can assume that you're processing each episode within a few days of the original airdate, so we use --filter to tell FileBot to only consider episodes aired within the last few days for matching.
:idea: Please read the FAQ and How to Request Help.
politby
Posts: 14
Joined: 09 Jul 2016, 08:10

Re: Strict matching isn't

Post by politby »

It's been a while since I last used to run FileBot so my scripts were out of date, I think. This appears to work much better

Code: Select all

filebot -script fn:amc ^
	--output "\\192.168.2.7\share\movies" ^
	--log-file "C:\ProgramData\filebot\logs\amc.log" ^
	--action move ^
	--conflict auto ^
	"\\192.168.2.60\inspeladtv" ^
	--def ^
	excludeList="C:\ProgramData\filebot\logs\filebot-history.log" ^
	mail="yyy" ^
	mailto="xxx" ^
	emby="192.168.2.2:0d0d3b2308b9431fbec57d95b05e5783" ^
	movieFormat="\\192.168.2.7\share\movies\{n} ({y})/{n} ({y})" ^
	seriesFormat="\\192.168.2.7\share2\series\{n}\Season {s.pad(2)}\{s00e00} - {t}" 

Code: Select all

Run script [fn:amc] at [Tue Mar 06 18:42:36 CET 2018]
Parameter: excludeList = C:\ProgramData\filebot\logs\filebot-history.log
Parameter: mail = *****
Parameter: mailto = *****
Parameter: emby = 192.168.2.2:0d0d3b2308b9431fbec57d95b05e5783
Parameter: movieFormat = \\192.168.2.7\share\movies\{n} ({y})/{n} ({y})
Parameter: seriesFormat = \\192.168.2.7\share2\series\{n}\Season {s.pad(2)}\{s00e00} - {t}
Argument[0]: \\192.168.2.60\inspeladtv
Use excludes: C:\ProgramData\filebot\logs\filebot-history.log
Input: \\192.168.2.60\inspeladtv\Husdrömmar-E06_19-10260000-1520337900.ts
Input: \\192.168.2.60\inspeladtv\Skavlan-E07_15-10260000-1519477500.ts
Input: \\192.168.2.60\inspeladtv\Skavlan-E07_15-10260000-1519644600.ts
Input: \\192.168.2.60\inspeladtv\Skavlan-E07_15-10260000-1519907400.ts
Input: \\192.168.2.60\inspeladtv\Skavlan-E08.ts
Input: \\192.168.2.60\inspeladtv\Skavlan-E08_15-10260000-1520249100.ts
Input: \\192.168.2.60\inspeladtv\Veckans brott-S16E08.ts
Husdrömmar-E06_19-10260000-1520337900.ts [series: inspeladtv, movie: null]
Skavlan-E07_15-10260000-1519477500.ts [series: Skavlan, movie: null]
Skavlan-E07_15-10260000-1519644600.ts [series: Skavlan, movie: null]
Skavlan-E07_15-10260000-1519907400.ts [series: Skavlan, movie: null]
Skavlan-E08.ts [series: Skavlan, movie: null]
Skavlan-E08_15-10260000-1520249100.ts [series: Skavlan, movie: null]
Group: [tvs:inspeladtv, mov:null] => [Husdrömmar-E06_19-10260000-1520337900.ts]
Group: [tvs:skavlan, mov:null] => [Skavlan-E07_15-10260000-1519477500.ts, Skavlan-E07_15-10260000-1519644600.ts, Skavlan-E07_15-10260000-1519907400.ts, Skavlan-E08.ts, Skavlan-E08_15-10260000-1520249100.ts]
Group: [tvs:veckans brott] => [Veckans brott-S16E08.ts]
Rename episodes using [TheTVDB]
Auto-detected query: [inspeladtv]
Fetch failed: Try again in 5 seconds (2 more) => java.io.IOException: Server returned HTTP response code: 403 for URL: http://thetvdb.com/api/694FAD89942D3827/mirrors.xml
Fetch failed: Try again in 10 seconds (1 more) => java.io.IOException: Server returned HTTP response code: 403 for URL: http://thetvdb.com/api/694FAD89942D3827/mirrors.xml
Fetch failed: http://thetvdb.com/api/694FAD89942D3827/mirrors.xml
java.io.IOException: Server returned HTTP response code: 403 for URL: http://thetvdb.com/api/694FAD89942D3827/mirrors.xml
	at net.filebot.web.WebRequest.fetch(WebRequest.java:143)
	at net.filebot.CachedResource.lambda$fetchIfModified$9(CachedResource.java:215)
	at net.filebot.CachedResource.lambda$null$0(CachedResource.java:87)
	at net.filebot.CachedResource.retry(CachedResource.java:121)
	at net.filebot.CachedResource.retry(CachedResource.java:133)
	at net.filebot.CachedResource.retry(CachedResource.java:133)
	at net.filebot.CachedResource.lambda$get$1(CachedResource.java:87)
	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.getMirror(TheTVDBClientV1.java:243)
	at net.filebot.web.TheTVDBClientV1.getResource(TheTVDBClientV1.java:273)
	at net.filebot.web.TheTVDBClientV1.lambda$getXmlResource$8(TheTVDBClientV1.java:269)
	at net.filebot.CachedResource.lambda$get$1(CachedResource.java:83)
	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:149)
Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: http://thetvdb.com/api/694FAD89942D3827/mirrors.xml
	at net.filebot.web.WebRequest.fetch(WebRequest.java:140)
	... 19 more
...although there seems to be a problem with thetvdb. Have I been banned? :o
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Strict matching isn't

Post by rednoah »

Did you revert back to an old version of FileBot? The log you posted was produced by Filebot 4.7.9 or older.

The latest version of FileBot doesn't use TheTVDBClientV1 (the old XML API) anymore:

Code: Select all

net.filebot.web.TheTVDBClientV1.getXmlResource(TheTVDBClientV1.java:269)
:idea: Please read the FAQ and How to Request Help.
politby
Posts: 14
Joined: 09 Jul 2016, 08:10

Re: Strict matching isn't

Post by politby »

rednoah wrote: 06 Mar 2018, 18:01 Did you revert back to an old version of FileBot? The log you posted was produced by Filebot 4.7.9 or older.

The latest version of FileBot doesn't use TheTVDBClientV1 (the old XML API) anymore:

Code: Select all

net.filebot.web.TheTVDBClientV1.getXmlResource(TheTVDBClientV1.java:269)
Installed from the Microsoft store yesterday - but the http error is gone now so that was probably a temporary glitch. I changed the name of the source directory but it still tries to match it:

Code: Select all

Run script [fn:amc] at [Tue Mar 06 19:10:55 CET 2018]
Parameter: excludeList = C:\ProgramData\filebot\logs\filebot-history.log
Parameter: mail = *****
Parameter: mailto = *****
Parameter: emby = 192.168.2.2:0d0d3b2308b9431fbec57d95b05e5783
Parameter: movieFormat = \\192.168.2.7\share\movies\{n} ({y})/{n} ({y})
Parameter: seriesFormat = \\192.168.2.7\share2\series\{n}\Season {s.pad(2)}\{s00e00} - {t}
Argument[0]: \\192.168.2.60\inspeladtv
Use excludes: C:\ProgramData\filebot\logs\filebot-history.log
Input: \\192.168.2.60\inspeladtv\Husdrömmar-E06_19-10260000-1520337900.ts
Input: \\192.168.2.60\inspeladtv\Skavlan-E07_15-10260000-1519477500.ts
Input: \\192.168.2.60\inspeladtv\Skavlan-E07_15-10260000-1519644600.ts
Input: \\192.168.2.60\inspeladtv\Skavlan-E07_15-10260000-1519907400.ts
Input: \\192.168.2.60\inspeladtv\Skavlan-E08.ts
Input: \\192.168.2.60\inspeladtv\Skavlan-E08_15-10260000-1520249100.ts
Input: \\192.168.2.60\inspeladtv\Veckans brott-S16E08.ts
Husdrömmar-E06_19-10260000-1520337900.ts [series: inspeladtv, movie: null]
Skavlan-E07_15-10260000-1519477500.ts [series: Skavlan, movie: null]
Skavlan-E07_15-10260000-1519644600.ts [series: Skavlan, movie: null]
Skavlan-E07_15-10260000-1519907400.ts [series: Skavlan, movie: null]
Skavlan-E08.ts [series: Skavlan, movie: null]
Skavlan-E08_15-10260000-1520249100.ts [series: Skavlan, movie: null]
Group: [tvs:inspeladtv, mov:null] => [Husdrömmar-E06_19-10260000-1520337900.ts]
Group: [tvs:skavlan, mov:null] => [Skavlan-E07_15-10260000-1519477500.ts, Skavlan-E07_15-10260000-1519644600.ts, Skavlan-E07_15-10260000-1519907400.ts, Skavlan-E08.ts, Skavlan-E08_15-10260000-1520249100.ts]
Group: [tvs:veckans brott] => [Veckans brott-S16E08.ts]
Rename episodes using [TheTVDB]
Auto-detected query: [inspeladtv]
Failed to fetch episode data: [inspeladtv]
CmdlineException: Failed to match files to episode data
Rename episodes using [TheTVDB]
Auto-detected query: [Skavlan]
Fetching episode data for [Skavlan]
No matching episode: Skavlan-E07_15-10260000-1519477500.ts
No matching episode: Skavlan-E07_15-10260000-1519644600.ts
No matching episode: Skavlan-E07_15-10260000-1519907400.ts
CmdlineException: Failed to match files to episode data
Rename episodes using [TheTVDB]
Auto-detected query: [Veckans brott]
Fetching episode data for [Veckans brott]
Skipped [\\192.168.2.60\inspeladtv\Veckans brott-S16E08.ts] because [\\192.168.2.7\share2\series\Season 16\S16E08 -.ts] already exists
Processed 0 files
Finished without processing any files
Failure (°_°)
And it still tries to rename bad matches. "Veckans brott-S16E08.ts" becomes "null - 16x8 -null" and is put in a series folder named "Season 16" :?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Strict matching isn't

Post by rednoah »

Please run filebot -script fn:sysinfo and post the output.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Strict matching isn't

Post by rednoah »

You can fix missing data issues for Norwegian shows yourself by going to TheTVDB and adding the missing English basic data (e.g. show name).

If you choose Norwegian language preference it'll work, and FileBot will fetch and default to English data if something is missing. The other way around doesn't work however, because if English data is missing, then FileBot can't guess for which non-English language there may or may not be any data (without checking all languages).

You can use the {localize} binding in your custom format though, to default to Norwegian yourself if the default bindings don't yield any useful data.

:idea: This is a separate issue and should be handled in a separate thread though. ;)
:idea: Please read the FAQ and How to Request Help.
politby
Posts: 14
Joined: 09 Jul 2016, 08:10

Re: Strict matching isn't

Post by politby »

rednoah wrote: 06 Mar 2018, 18:53 Please run filebot -script fn:sysinfo and post the output.

Code: Select all

FileBot 4.7.9 (r4984)
JNA Native: 5.1.0
MediaInfo: 0.7.93
7-Zip-JBinding: 9.20
Chromaprint: 1.4.2
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2018-03-03 (r514)
Groovy: 2.4.10
JRE: Java(TM) SE Runtime Environment 1.8.0_144
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 1 GB Max Memory / 39 MB Used Memory
OS: Windows 10 (amd64)
Package: MSI

------------------- UPDATE AVAILABLE: FileBot 4.7.19 (r5305) -------------------

Done ?(?????)?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Strict matching isn't

Post by rednoah »

You're using FileBot 4.7.9 and not the version you purchased from the Store. Please uninstall all versions of FileBot, and then only install FileBot via the Store.
:idea: Please read the FAQ and How to Request Help.
politby
Posts: 14
Joined: 09 Jul 2016, 08:10

Re: Strict matching isn't

Post by politby »

Is this correct? but how can 4.7.21 be newer than 4.7.9?

Code: Select all

FileBot 4.7.21 (r5319)
JNA Native: 5.2.0
MediaInfo: 0.7.99
7-Zip-JBinding: 9.20
Chromaprint: 1.4.2
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2018-03-03 (r514)
Groovy: 2.4.13
JRE: Java(TM) SE Runtime Environment 9.0.4
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 1 GB Max Memory / 45 MB Used Memory
OS: Windows 10 (amd64)
Package: APPX
Done ?(?????)?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Strict matching isn't

Post by rednoah »

Yes, FileBot 4.7.21 (r5319) is barely a day old. It's the latest and greatest. 21 is greater than 9. The revision number is all that matters though.
:idea: Please read the FAQ and How to Request Help.
politby
Posts: 14
Joined: 09 Jul 2016, 08:10

Re: Strict matching isn't

Post by politby »

Still insists on trying to match the source directory and thinking Veckans brott-S16E08.ts is a show called "Season 16". Even if it can't find the show name, that shouldn't be the result. I have no problem with a low hit rate but it shouldn't rename files not even close to a match.

Code: Select all

Run script [fn:amc] at [Wed Mar 07 13:28:37 CET 2018]
Parameter: excludeList = C:\ProgramData\filebot\logs\filebot-history.log
Parameter: mail = *****
Parameter: mailto = *****
Parameter: emby = 192.168.2.2:0d0d3b2308b9431fbec57d95b05e5783
Parameter: movieFormat = \\192.168.2.7\share\movies\{n} ({y})/{n} ({y})
Parameter: seriesFormat = \\192.168.2.7\share2\series\{n}\Season {s.pad(2)}\{s00e00} - {t}
Argument[0]: \\192.168.2.60\inspeladtv
Use excludes: C:\ProgramData\filebot\logs\filebot-history.log
Input: \\192.168.2.60\inspeladtv\Husdrömmar-E06_19-10260000-1520337900.ts
Input: \\192.168.2.60\inspeladtv\Skavlan-E07_15-10260000-1519477500.ts
Input: \\192.168.2.60\inspeladtv\Skavlan-E07_15-10260000-1519644600.ts
Input: \\192.168.2.60\inspeladtv\Skavlan-E07_15-10260000-1519907400.ts
Input: \\192.168.2.60\inspeladtv\Skavlan-E08.ts
Input: \\192.168.2.60\inspeladtv\Skavlan-E08_15-10260000-1520249100.ts
Input: \\192.168.2.60\inspeladtv\Veckans brott-S16E08.ts
Husdrömmar-E06_19-10260000-1520337900.ts [series: inspeladtv, movie: null]
Skavlan-E07_15-10260000-1519477500.ts [series: Skavlan, movie: null]
Skavlan-E07_15-10260000-1519644600.ts [series: Skavlan, movie: null]
Skavlan-E07_15-10260000-1519907400.ts [series: Skavlan, movie: null]
Skavlan-E08.ts [series: Skavlan, movie: null]
Skavlan-E08_15-10260000-1520249100.ts [series: Skavlan, movie: null]
Group: [tvs:inspeladtv, mov:null] => [Husdrömmar-E06_19-10260000-1520337900.ts]
Group: [tvs:skavlan, mov:null] => [Skavlan-E07_15-10260000-1519477500.ts, Skavlan-E07_15-10260000-1519644600.ts, Skavlan-E07_15-10260000-1519907400.ts, Skavlan-E08.ts, Skavlan-E08_15-10260000-1520249100.ts]
Group: [tvs:veckans brott] => [Veckans brott-S16E08.ts]
Rename episodes using [TheTVDB]
Auto-detected query: [inspeladtv]
Resource not found: https://api.thetvdb.com/search/series?name=inspeladtv
Failed to fetch episode data: [inspeladtv]
CmdlineException: Failed to match files to episode data
Rename episodes using [TheTVDB]
Auto-detected query: [Skavlan]
Fetching episode data for [Skavlan]
No matching episode: Skavlan-E07_15-10260000-1519477500.ts
No matching episode: Skavlan-E07_15-10260000-1519644600.ts
No matching episode: Skavlan-E07_15-10260000-1519907400.ts
CmdlineException: Failed to match files to episode data
Rename episodes using [TheTVDB]
Auto-detected query: [Veckans brott]
Resource not found: https://api.thetvdb.com/search/series?name=Veckans+brott
Fetching episode data for [Veckans brott]
[MOVE] from [\\192.168.2.60\inspeladtv\Veckans brott-S16E08.ts] to [\\192.168.2.7\share2\series\Season 16\S16E08 -.ts]
Failed to set xattr: NoSuchFileException: \\192.168.2.7\share2\series\Season 16\S16E08 -.ts:net.filebot.metadata
Processed 1 files
Notify Emby: [host:192.168.2.2, token:0d0d3b2308b9431fbec57d95b05e5783]
POST: http://192.168.2.2:8096/Library/Refresh?api_key=0d0d3b2308b9431fbec57d95b05e5783
Done ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Strict matching isn't

Post by rednoah »

1.
inspeladtv is not blacklisted and is therefore a potential series match. I recommend using folder names that make sense to English speaking people (such as FileBot). Use folder names such as Downloads, TV Shows, Share, anything that FileBot knows to not be a series name.


2.
You're dealing with an odd show were nobody has bothered to add the English title on TheTVDB. If {n} is undefined, then \{n}\ becomes \\ becomes \ and thus the series folder is missing. This is extremely rare and probably only happens with very odd foreign shows.

This show will have to be fixed in the database, by adding "Veckans brott" as English title. Please report the issue in the TheTVDB forums:
https://forums.thetvdb.com/viewforum.php?f=7

In the meanwhile, you could modify your format to use the numeric id if the series name is undefined:

Code: Select all

any{n}{id}
In this particular case, because we know that TheTVDB has good Swedish data, we can just tell FileBot to use the Swedish data:

Code: Select all

--lang SWE
:idea: Please read the FAQ and How to Request Help.
politby
Posts: 14
Joined: 09 Jul 2016, 08:10

Re: Strict matching isn't

Post by politby »

inspeladtv is not blacklisted and is therefore a potential series match. I recommend using folder names that make sense to English speaking people (such as FileBot). Use folder names such as Downloads, TV Shows, Share, anything that FileBot knows to not be a series name.
Fine, but inspeladtv is the top level input folder. It shouldn't be trying to match that in the first place!
You're dealing with an odd show were nobody has bothered to add the English title on TheTVDB. If {n} is undefined, then \{n}\ becomes \\ becomes \ and thus the series folder is missing. This is extremely rare and probably only happens with very odd foreign shows.
You're missing my point again. I want FileBot to disregard files where it doesn't find a match, not rename them to something meaningless. I'm always going to have a lot of failed matches because my material is recorded TV. But I want non-matches to be left alone.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Strict matching isn't

Post by rednoah »

1.
Good point. If the case of UNC paths, the first two levels \\host\share can be assumed to be meaningless.

Please use the workaround suggested above in the meanwhile.


2.
I recall that you're using -non-strict for TV shows. I'm pretty sure that the files above would simply be ignored in strict mode since they don't contain a proper S00E00 pattern required for a good match.

I reckon that you're using non-strict precisely because strict mode doesn't work for your files?

Note that in the example above it did find a match. It did not not find a match. It just so happens that TheTVDB data is incomplete for English data which is a unique case I have not seen before.


3.
What's wrong with using an age filter? Didn't I already give you an example how you can match this file to the correct episode data? How is it not a solution to your problem?

If you pass in the right hints from the get-go, then making it work all the time should be quite easy.
:idea: Please read the FAQ and How to Request Help.
Post Reply