TV Show mismatch

Any questions? Need some help?
Post Reply
garyleecn
Donor
Posts: 113
Joined: 19 Nov 2014, 03:48

TV Show mismatch

Post by garyleecn »

I notice filebot seems to be a little 'off' recently. it had a lot of tv show mismatch, like
frequency --> strange frequency
Incorporate --> kids incorporate
humans --> real humans

I had pretty good filename on the source file already, but filebot still can't match it correctly...

any fix?

Code: Select all

[MOVE] Rename [/volume1/Downloads/Completed/Series/Humans.S02E06.1080p.WEB-DL.DD5.1.H264-HMNS-Obfuscated/ad61b59320e74eb0ab9da34dddb3b568.mkv] to [/volume1/Videos/TV Shows/Real Humans/Season 02/Real Humans - S02E06 - Episode 6.mkv]
and the script I used.

Code: Select all

filebot -script fn:amc --output /volume1/Videos/ --log-file /volume1/Downloads/FileBot.log --action move --conflict auto -non-strict /volume1/Downloads/Completed/ --def artwork=y extra=y clean=y deleteAfterExtract=y subtitles=zho,eng,en 
User avatar
rednoah
The Source
Posts: 19156
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: TV Show mismatch

Post by rednoah »

Please post all the file paths that don't work as expected as text.


EDIT:

Here's what I get:

Code: Select all

$ filebot -rename Humans.S02E06.1080p.WEB-DL.DD5.1.H264-HMNS-Obfuscated -non-strict --action test
Rename episodes using [TheTVDB]
Auto-detected query: [Humans]
Fetching episode data for [Humans]
Fetching episode data for [Real Humans]
Fetching episode data for [Humans Mutants]
Fetching episode data for [Humans & Households]
[TEST] Rename [Humans.S02E06.1080p.WEB-DL.DD5.1.H264-HMNS-Obfuscated/ad61b59320e74eb0ab9da34dddb3b568.mkv] to [Humans.S02E06.1080p.WEB-DL.DD5.1.H264-HMNS-Obfuscated/Humans - 2x06 - Episode 6.mkv]
In -non-strict mode, if Humans 2x06 didn't exist at the time, then it may have picked the next best (but wrong) result. Please make sure that episode data is added well in advance, and consider contributing missing data to TheTVDB.
:idea: Please read the FAQ and How to Request Help.
garyleecn
Donor
Posts: 113
Joined: 19 Nov 2014, 03:48

Re: TV Show mismatch

Post by garyleecn »

rednoah wrote:Please post all the file paths that don't work as expected as text.


EDIT:

Here's what I get:

Code: Select all

$ filebot -rename Humans.S02E06.1080p.WEB-DL.DD5.1.H264-HMNS-Obfuscated -non-strict --action test
Rename episodes using [TheTVDB]
Auto-detected query: [Humans]
Fetching episode data for [Humans]
Fetching episode data for [Real Humans]
Fetching episode data for [Humans Mutants]
Fetching episode data for [Humans & Households]
[TEST] Rename [Humans.S02E06.1080p.WEB-DL.DD5.1.H264-HMNS-Obfuscated/ad61b59320e74eb0ab9da34dddb3b568.mkv] to [Humans.S02E06.1080p.WEB-DL.DD5.1.H264-HMNS-Obfuscated/Humans - 2x06 - Episode 6.mkv]
In -non-strict mode, if Humans 2x06 didn't exist at the time, then it may have picked the next best (but wrong) result. Please make sure that episode data is added well in advance, and consider contributing missing data to TheTVDB.

sorry for late reply, I was trying to gather some logs, as there aren't many episodes downloaded everyday.

Code: Select all

[MOVE] Rename [/volume1/Downloads/Completed/Series/Frequency.S01E09.1080p.WEB-DL-Obfuscated/0dccd0688ec3405c92d9f2cc0275b2b7.mkv] to [/volume1/Videos/TV Shows/Strange Frequency/Season 01/Strange Frequency - S01E09 - Time Is On My Side.mkv]

[MOVE] Rename [/volume1/Downloads/Completed/Series/Incorporated.S01E01.1080p.WEBRip.DDP5.1.x264-KiNGS-Obfuscated/75f4916b8a4244d2b0211dfeaacf096b.mkv] to [/volume1/Videos/TV Shows/Kids Incorporated/Season 01/Kids Incorporated - S01E01 - Pilot.mkv

[MOVE] Rename [/volume1/Downloads/Completed/Series/Humans.S02E07.1080p.HDTV.x264-TLA-Obfuscated/325fcaeac1434ba9823c7a6d40837364.mkv] to [/volume1/Videos/TV Shows/Real Humans/Season 02/Real Humans - S02E07 - Episode 7.mkv]

[MOVE] Rename [/volume1/Downloads/Completed/Series/Westworld.S01E04.1080p.HDTV.x264.1-BATv-Obfuscated/47715cf206d845f4a6f4e6d2d0f33783.mkv] to [/volume1/Videos/TV Shows/Beyond Westworld/Season 01/Beyond Westworld - S01E04 - The Lion.mkv]

I'm pretty sure the episode info is available on TVDB, because none of those are 'initial releases'. and my workflow is like:
1. sonarr downloads an initial release, usually in 720p, within an hour after airing. Filebot works fine on those downloads fine what so ever.
2. then sonarr keep search for better quality releases -- 1080p -- afterwards, usually available within a day or a week. and this is where the problem happens.
3. right after filebot send those file to wrong folder, sonarr detects that the download is 'finished', but no new file found (under the correct directory), so it will initiate another download, usually same quality but different source. then filebot will send this to the correct directly, overwriting the 720p file.... I haven't notice filebot failed twice in a role...


if you want I can send you the full filebot log, but it could be a little bit lengthy...
User avatar
rednoah
The Source
Posts: 19156
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: TV Show mismatch

Post by rednoah »

Again, all these files work when I run some tests:

Code: Select all

Input: Completed/Series/Humans.S02E07.1080p.HDTV.x264-TLA-Obfuscated/325fcaeac1434ba9823c7a6d40837364.mkv
Input: Completed/Series/Incorporated.S01E01.1080p.WEBRip.DDP5.1.x264-KiNGS-Obfuscated/75f4916b8a4244d2b0211dfeaacf096b.mkv
Input: Completed/Series/Westworld.S01E04.1080p.HDTV.x264.1-BATv-Obfuscated/47715cf206d845f4a6f4e6d2d0f33783.mkv
Input: Series/Frequency.S01E09.1080p.WEB-DL-Obfuscated/0dccd0688ec3405c92d9f2cc0275b2b7.mkv
Group: [tvs:humans] => [325fcaeac1434ba9823c7a6d40837364.mkv]
Group: [tvs:incorporated] => [75f4916b8a4244d2b0211dfeaacf096b.mkv]
Group: [tvs:westworld] => [47715cf206d845f4a6f4e6d2d0f33783.mkv]
Group: [tvs:frequency] => [0dccd0688ec3405c92d9f2cc0275b2b7.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Humans]
Fetching episode data for [Humans]
Fetching episode data for [Real Humans]
Fetching episode data for [Humans Mutants]
Fetching episode data for [Humans & Households]
[COPY] Rename [Completed/Series/Humans.S02E07.1080p.HDTV.x264-TLA-Obfuscated/325fcaeac1434ba9823c7a6d40837364.mkv] to [TV Shows/Humans/Season 02/Humans - S02E07 - Episode 7.mkv]
Processed 1 files
Rename episodes using [TheTVDB]
Auto-detected query: [Incorporated]
Fetching episode data for [Incorporated]
Fetching episode data for [Kids Incorporated]
Fetching episode data for [Acquisitions Incorporated]
[COPY] Rename [Completed/Series/Incorporated.S01E01.1080p.WEBRip.DDP5.1.x264-KiNGS-Obfuscated/75f4916b8a4244d2b0211dfeaacf096b.mkv] to [TV Shows/Incorporated/Season 01/Incorporated - S01E01 - Vertical Mobility.mkv]
Processed 1 files
Rename episodes using [TheTVDB]
Auto-detected query: [Westworld]
Fetching episode data for [Westworld]
Fetching episode data for [Beyond Westworld]
[COPY] Rename [Completed/Series/Westworld.S01E04.1080p.HDTV.x264.1-BATv-Obfuscated/47715cf206d845f4a6f4e6d2d0f33783.mkv] to [TV Shows/Westworld/Season 01/Westworld - S01E04 - Dissonance Theory.mkv]
Processed 1 files
Rename episodes using [TheTVDB]
Auto-detected query: [Frequency]
Fetching episode data for [Frequency]
Fetching episode data for [Global Frequency]
Fetching episode data for [Strange Frequency]
[COPY] Rename [Series/Frequency.S01E09.1080p.WEB-DL-Obfuscated/0dccd0688ec3405c92d9f2cc0275b2b7.mkv] to [TV Shows/Frequency/Season 01/Frequency - S01E09 - Gray Line.mkv]
Processed 1 files
Done ヾ(@⌒ー⌒@)ノ

You don't need to download new episodes. Just create a few empty files or copy some real files and run the amc script on them. Perhaps you can isolate the problem if you do a few test runs on various files that work / don't work. If you can find a way to reproduce the problem, then I can run some tests and figure out what's going on.
:idea: Please read the FAQ and How to Request Help.
garyleecn
Donor
Posts: 113
Joined: 19 Nov 2014, 03:48

Re: TV Show mismatch

Post by garyleecn »

I tracked down one file, that I triple ran on my server but still had incorrect info. maybe you can try this to see if it works for you?
User avatar
rednoah
The Source
Posts: 19156
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: TV Show mismatch

Post by rednoah »

Slow internet, so I won't be able to test with your sample file until tomorrow.

If you're running things on the same files repeatedly (without test mode) then it probably won't work if files are tagged after the first run which then changes behaviour compared to untagged files.

View or Clear Extended Attributes: viewtopic.php?f=4&t=5#p5394
:idea: Please read the FAQ and How to Request Help.
garyleecn
Donor
Posts: 113
Joined: 19 Nov 2014, 03:48

Re: TV Show mismatch

Post by garyleecn »

rednoah wrote:Slow internet, so I won't be able to test with your sample file until tomorrow.

If you're running things on the same files repeatedly (without test mode) then it probably won't work if files are tagged after the first run which then changes behaviour compared to untagged files.

View or Clear Extended Attributes: viewtopic.php?f=4&t=5#p5394

no I did not 'repeat' the test on one file.
I ran the script, after its sent to wrong directory, I delete the file, then re-download it, and repeated..
User avatar
rednoah
The Source
Posts: 19156
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: TV Show mismatch

Post by rednoah »

I've tried with the real file you provided now, and I still can't reproduce the issue... I can only assume that it had something to do with the correct data not being known to FileBot at the time due to some unknown reason.

Code: Select all

$ filebot -rename -non-strict --action test --db thetvdb Frequency.S01E08.1080p.WEB-DL.DD5.1.H.264-GoApe-Obfuscated
Rename episodes using [TheTVDB]
Auto-detected query: [Frequency]
Fetching episode data for [Frequency]
Fetching episode data for [Global Frequency]
Fetching episode data for [Strange Frequency]
[TEST] Rename [Frequency.S01E08.1080p.WEB-DL.DD5.1.H.264-GoApe-Obfuscated/AMC-TEST/Frequency.S01E08.1080p.WEB-DL.DD5.1.H.264-GoApe-Obfuscated/2926403fce9542029f24e3040b871064.mkv] to [Frequency.S01E08.1080p.WEB-DL.DD5.1.H.264-GoApe-Obfuscated/AMC-TEST/Frequency.S01E08.1080p.WEB-DL.DD5.1.H.264-GoApe-Obfuscated/Frequency - 1x08 - Interference.mkv]

Code: Select all

$ filebot -version
FileBot 4.7.5 (r4600) / Java(TM) SE Runtime Environment 1.8.0_112 / Mac OS X 10.12.1 (x86_64)
:idea: Please read the FAQ and How to Request Help.
garyleecn
Donor
Posts: 113
Joined: 19 Nov 2014, 03:48

Re: TV Show mismatch

Post by garyleecn »

rednoah wrote:I've tried with the real file you provided now, and I still can't reproduce the issue... I can only assume that it had something to do with the correct data not being known to FileBot at the time due to some unknown reason.

Code: Select all

$ filebot -rename -non-strict --action test --db thetvdb Frequency.S01E08.1080p.WEB-DL.DD5.1.H.264-GoApe-Obfuscated
Rename episodes using [TheTVDB]
Auto-detected query: [Frequency]
Fetching episode data for [Frequency]
Fetching episode data for [Global Frequency]
Fetching episode data for [Strange Frequency]
[TEST] Rename [Frequency.S01E08.1080p.WEB-DL.DD5.1.H.264-GoApe-Obfuscated/AMC-TEST/Frequency.S01E08.1080p.WEB-DL.DD5.1.H.264-GoApe-Obfuscated/2926403fce9542029f24e3040b871064.mkv] to [Frequency.S01E08.1080p.WEB-DL.DD5.1.H.264-GoApe-Obfuscated/AMC-TEST/Frequency.S01E08.1080p.WEB-DL.DD5.1.H.264-GoApe-Obfuscated/Frequency - 1x08 - Interference.mkv]

Code: Select all

$ filebot -version
FileBot 4.7.5 (r4600) / Java(TM) SE Runtime Environment 1.8.0_112 / Mac OS X 10.12.1 (x86_64)
I just ran it again and this time it runs correctly... weirdly enough, it was a new file (only 2 days old till now), but the episode isn't. it's actually Nov.30's episode... so how does filebot determine what episode/show it is?
User avatar
rednoah
The Source
Posts: 19156
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: TV Show mismatch

Post by rednoah »

FileBot doesn't determine anything. It'll just pick the most likely File-Episode match out of all possible File-Episode matches. If the correct Episode doesn't exist (something FileBot can't know) then the best File-Episode match FileBot will come up with will still be very wrong.

The -non-strict flag defines if opportunistic or strict behaviour is used.
:idea: Please read the FAQ and How to Request Help.
garyleecn
Donor
Posts: 113
Joined: 19 Nov 2014, 03:48

Re: TV Show mismatch

Post by garyleecn »

sorry for late reply.

so if I remove -non-strict, use 'strict' mode, it will only use the exact match or do nothing right?
User avatar
rednoah
The Source
Posts: 19156
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: TV Show mismatch

Post by rednoah »

Yes, strict mode expects exact matches and fails if a given match is not good enough. Best to run a few tests and see for yourself. ;)
:idea: Please read the FAQ and How to Request Help.
garyleecn
Donor
Posts: 113
Joined: 19 Nov 2014, 03:48

Re: TV Show mismatch

Post by garyleecn »

I've been testing for the last couple of days. and the problem seems to be with the auto-selection

when I remove 'non-strict' from the command, it will just return an error saying something 'auto selection not enabled, multiple options available'.
and take tonight's incorporated as an example, when using strict mode, I do see 'incorporated' as an option in the error message, and when using non-strict mode, it will just match the episode as 'kids incorporated', which was an option as well.... so I guess the problem is NOT there is no info available to match, but how to select the right one.

and this problem only occur to a few certain tv shows, maybe we can adjust how FILEBOT select info to match? like give more recently aired (like within a week, a month?) higher priority to match?
User avatar
rednoah
The Source
Posts: 19156
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: TV Show mismatch

Post by rednoah »

1.
What's the log? In strict mode it'll throw an error if there's multiple options. In non-strict mode it'd just pick the first option.

Here's my log:

Code: Select all

$ filebot -rename Incorporate.S01E01.mp4
Rename episodes using [TheTVDB]
Auto-detected query: [incorporate]
Fetching episode data for [Incorporated]
[MOVE] Rename [Incorporate.S01E01.mp4] to [Incorporated - 1x01 - Vertical Mobility.mp4]
EDIT: I didn't even notice that Incorporate != Incorporated cause it just worked...


2.
The --filter option can be used to include/exclude episodes based on arbitrary rules:
viewtopic.php?t=2127
:idea: Please read the FAQ and How to Request Help.
garyleecn
Donor
Posts: 113
Joined: 19 Nov 2014, 03:48

Re: TV Show mismatch

Post by garyleecn »

here's the log

Code: Select all

Auto-detected query: [Incorporated]
Multiple options: Force auto-select requires non-strict matching: [Incorporated, Kids Incorporated, Acquisitions Incorporated, Scooby-Doo! Mystery Incorporated]
this is for the episode 5 days ago.

also for today's Sherlock, same thing is happening

Code: Select all

Auto-detected query: [Sherlock]
Multiple options: Force auto-select requires non-strict matching: [Sherlock, Sherlock Hound, Sherlock Holmes (1984), Sherlock Holmes, Sherlock Holmes (1965), Elementary, Sherlock Yack - Zoo Detective, Sherlock Holmes and Doctor Watson, Sherlock Holmes in the 22nd Century, The Adventures of Sherlock Holmes and Dr. Watson, Young Sherlock, The Rivals of Sherlock Holmes, The Shock]
garyleecn
Donor
Posts: 113
Joined: 19 Nov 2014, 03:48

Re: TV Show mismatch

Post by garyleecn »

and then I ran with -non-strict mode again, for the incorporated (again, it's the episode 5 days ago)

Code: Select all

Input: /volume1/Downloads/Completed/TV Series/Incorporated.S01E05.1080p.WEB.x264-HEAT-Obfuscated/75caf3ac65bb4632bbf884ad89210b87.mkv
Input: /volume1/Downloads/Completed/TV Series/Incorporated.S01E05.1080p.WEB.x264-HEAT/incorporated.s01e05.1080p.web.x264-heat.mkv
Input: /volume1/Downloads/Completed/TV Series/Incorporated.S01E05.720p.AMZN.WEBRip.DD5.1.x264-KiNGS/a9a94e5622df90138fc309d95fd0c1462fb53962ce6404f92ee2b7109844f783.mkv
Group: [tvs:incorporated] => [75caf3ac65bb4632bbf884ad89210b87.mkv, incorporated.s01e05.1080p.web.x264-heat.mkv, a9a94e5622df90138fc309d95fd0c1462fb53962ce6404f92ee2b7109844f783.mkv]
No matching subtitles found: /volume1/Downloads/Completed/TV Series/Incorporated.S01E05.1080p.WEB.x264-HEAT-Obfuscated/75caf3ac65bb4632bbf884ad89210b87.mkv
No matching subtitles found: /volume1/Downloads/Completed/TV Series/Incorporated.S01E05.1080p.WEB.x264-HEAT/incorporated.s01e05.1080p.web.x264-heat.mkv
No matching subtitles found: /volume1/Downloads/Completed/TV Series/Incorporated.S01E05.720p.AMZN.WEBRip.DD5.1.x264-KiNGS/a9a94e5622df90138fc309d95fd0c1462fb53962ce6404f92ee2b7109844f783.mkv
Auto-detected query: [Incorporated]
Fetching episode data for [Incorporated]
Fetching episode data for [Kids Incorporated]
Fetching episode data for [Acquisitions Incorporated]
[MOVE] Rename [/volume1/Downloads/Completed/TV Series/Incorporated.S01E05.1080p.WEB.x264-HEAT-Obfuscated/75caf3ac65bb4632bbf884ad89210b87.mkv] to [/volume1/Videos/TV Shows/Kids Incorporated/Season 01/Kids Incorporated - S01E05 - The Joker.mkv]
[MOVE] Rename [/volume1/Downloads/Completed/TV Series/Incorporated.S01E05.1080p.WEB.x264-HEAT/incorporated.s01e05.1080p.web.x264-heat.mkv] to [/volume1/Videos/TV Shows/Incorporated/Season 01/Incorporated - S01E05 - Profit and Loss.mkv]
[MOVE] Rename [/volume1/Downloads/Completed/TV Series/Incorporated.S01E05.720p.AMZN.WEBRip.DD5.1.x264-KiNGS/a9a94e5622df90138fc309d95fd0c1462fb53962ce6404f92ee2b7109844f783.mkv] to [/volume1/Videos/TV Shows/Acquisitions Incorporated/Season 01/Acquisitions Incorporated - S01E05 - Episode 5.mkv]
Fetching series artwork for [Acquisitions Incorporated / Season 1] to [/volume1/Videos/TV Shows/Acquisitions Incorporated/Season 01]
Generate Series NFO: Acquisitions Incorporated [312825]
Banner already exists: /volume1/Videos/TV Shows/Acquisitions Incorporated/poster.jpg
Banner already exists: /volume1/Videos/TV Shows/Acquisitions Incorporated/banner.jpg
Banner already exists: /volume1/Videos/TV Shows/Acquisitions Incorporated/fanart.jpg
Banner not found: /volume1/Videos/TV Shows/Acquisitions Incorporated/Season 01/poster.jpg / season:season
Banner not found: /volume1/Videos/TV Shows/Acquisitions Incorporated/Season 01/banner.jpg / seasonwide:seasonwide
Fanart not found: /volume1/Videos/TV Shows/Acquisitions Incorporated/clearart.png / hdclearart
Fanart not found: /volume1/Videos/TV Shows/Acquisitions Incorporated/clearart.png / clearart
Fanart not found: /volume1/Videos/TV Shows/Acquisitions Incorporated/logo.png / hdtvlogo
Fanart not found: /volume1/Videos/TV Shows/Acquisitions Incorporated/logo.png / clearlogo
Fanart not found: /volume1/Videos/TV Shows/Acquisitions Incorporated/landscape.jpg / tvthumb
Fanart not found: /volume1/Videos/TV Shows/Acquisitions Incorporated/Season 01/landscape.jpg / seasonthumb
you see the problem is.... problematic...




and would you please explain a little how this works?

Code: Select all

--filter "!readLines('/path/to/excludes.txt').contains(n)"
any specific format I need for the excludes.txt?
User avatar
rednoah
The Source
Posts: 19156
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: TV Show mismatch

Post by rednoah »

1.
Works for me:

Code: Select all

Input: TV Series/Incorporated.S01E05.1080p.WEB.x264-HEAT-Obfuscated/75caf3ac65bb4632bbf884ad89210b87.mkv
Group: [tvs:incorporated] => [75caf3ac65bb4632bbf884ad89210b87.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Incorporated]
Fetching episode data for [Incorporated]
Fetching episode data for [Kids Incorporated]
Fetching episode data for [Acquisitions Incorporated]
[COPY] Rename [TV Series/Incorporated.S01E05.1080p.WEB.x264-HEAT-Obfuscated/75caf3ac65bb4632bbf884ad89210b87.mkv] to [TV Shows/Incorporated/Season 01/Incorporated - S01E05 - Profit and Loss.mkv]
Processed 1 files
Since it didn't work for you some time ago, but it does for me now, the reason is most likely that the online episode data was different at the time (i.e. 1x05 didn't exist then).

Since Episode data for 1x01 to 1x10 is now complete. I predict that this issue won't reoccur until at least 1x11 (unless it's added in advance of course).


2.
Open the Format Editor GUI and play with it:

Code: Select all

readLines('/path/to/excludes.txt')

Code: Select all

readLines('/path/to/excludes.txt').contains('Kids Incorporated')

Code: Select all

!readLines('/path/to/excludes.txt').contains('Kids Incorporated')
readLines() ... reads lines and gives you a List of lines, so the expected text file format is one list item per line.
:idea: Please read the FAQ and How to Request Help.
garyleecn
Donor
Posts: 113
Joined: 19 Nov 2014, 03:48

Re: TV Show mismatch

Post by garyleecn »

rednoah wrote:1.
Works for me:

Code: Select all

Input: TV Series/Incorporated.S01E05.1080p.WEB.x264-HEAT-Obfuscated/75caf3ac65bb4632bbf884ad89210b87.mkv
Group: [tvs:incorporated] => [75caf3ac65bb4632bbf884ad89210b87.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Incorporated]
Fetching episode data for [Incorporated]
Fetching episode data for [Kids Incorporated]
Fetching episode data for [Acquisitions Incorporated]
[COPY] Rename [TV Series/Incorporated.S01E05.1080p.WEB.x264-HEAT-Obfuscated/75caf3ac65bb4632bbf884ad89210b87.mkv] to [TV Shows/Incorporated/Season 01/Incorporated - S01E05 - Profit and Loss.mkv]
Processed 1 files
Since it didn't work for you some time ago, but it does for me now, the reason is most likely that the online episode data was different at the time (i.e. 1x05 didn't exist then).

Since Episode data for 1x01 to 1x10 is now complete. I predict that this issue won't reoccur until at least 1x11 (unless it's added in advance of course).


2.
Open the Format Editor GUI and play with it:

Code: Select all

readLines('/path/to/excludes.txt')

Code: Select all

readLines('/path/to/excludes.txt').contains('Kids Incorporated')

Code: Select all

!readLines('/path/to/excludes.txt').contains('Kids Incorporated')
readLines() ... reads lines and gives you a List of lines, so the expected text file format is one list item per line.
1.
the log was generated today, minutes before I posted the reply... so I guess the problem lies either with my network (not likely), or my client...

2. so if I want to exclude Kids Incorporated, I should create a exclude.txt, and put it like this
kids incorporated
Acquisitions Incorporated
...

and add this to the end of my code

Code: Select all

readLines('/path/to/excludes.txt')
am I on the right track?

thanks :)
User avatar
rednoah
The Source
Posts: 19156
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: TV Show mismatch

Post by rednoah »

I'm not a Groovy interpreter. :P Run it and see what happens.
:idea: Please read the FAQ and How to Request Help.
garyleecn
Donor
Posts: 113
Joined: 19 Nov 2014, 03:48

Re: TV Show mismatch

Post by garyleecn »

rednoah wrote:I'm not a Groovy interpreter. :P Run it and see what happens.
well, it couldn't even fine 'readline'

Code: Select all

ash-4.3# filebot -script fn:amc --output /volume1/Video/ --action move --conflict auto -non-strict /volume1/Downloads/Completed/ --def  artwork=y extra=y clean=y --filter "!readLines('/volume1/Downloads/exclude.txt').contains(n)"
ash: !readLines: event not found
ash-4.3#
User avatar
rednoah
The Source
Posts: 19156
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: TV Show mismatch

Post by rednoah »

In all honesty, did you actually bother at all to try any of this in the Format Editor GUI?

If only you could test the Groovy code independently of Unix shell complications...



PS: If the Shell complains and FileBot is never called, then it falls into the "I will not fix your broken command-line call" category. ;)
:idea: Please read the FAQ and How to Request Help.
garyleecn
Donor
Posts: 113
Joined: 19 Nov 2014, 03:48

Re: TV Show mismatch

Post by garyleecn »

oh. I was using on Synology box, so doesn't really have a GUI... I guess I will just try different formats/approaches and figure it out myself. thanks though.


btw, I know amc has a notify plex feature to update the library, can it also notify Synology video station to update the library as well?
User avatar
rednoah
The Source
Posts: 19156
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: TV Show mismatch

Post by rednoah »

1.
Your Desktop has a GUI. Install FileBot and use the Format Editor GUI. Once you've got it you can copy and paste your format expression into your SSH terminal.


2.
Have you tried calling synoindex after adding new files?

Code: Select all

--def exec="synoindex -R all"
:idea: Please read the FAQ and How to Request Help.
garyleecn
Donor
Posts: 113
Joined: 19 Nov 2014, 03:48

Re: TV Show mismatch

Post by garyleecn »

rednoah wrote:1.
Your Desktop has a GUI. Install FileBot and use the Format Editor GUI. Once you've got it you can copy and paste your format expression into your SSH terminal.


2.
Have you tried calling synoindex after adding new files?

Code: Select all

--def exec="synoindex -R all"
sorry for late reply, but the command will rescan ALL media file, which takes a lot of time and resources.
is it possible to pass through the destination from filebot down to the exec command?

like if filebot is ran on game of throne, season 3, then let the following command only scan /tv/GameofThrone/season3.

now Ive used this command

Code: Select all

/usr/syno/bin/synoindex -A /volume1/Video/
, you can see I'll need to rescan the entire video directory.
User avatar
rednoah
The Source
Posts: 19156
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: TV Show mismatch

Post by rednoah »

Just call synoindex for each file then:

Code: Select all

--def exec="synoindex -a '{file}'"
:idea: Please read the FAQ and How to Request Help.
Post Reply