I appreciate the details but a lot of what you are referencing is foreign to me. I am not a code writer.
Since it seems I cannot just use --filter "n != 'Space Debris'", I am trying the .groovy method you mention.
contents of the Groovy file should just be the double quoted section?
filter.groovy content would then be
Or should the .groovy file also contain --filter?
Edit: I tried this, made things worse.
When I now run this code, which will be what resides in QB.
Code: Select all
filebot.launcher.exe -script fn:amc --output "E:\Media" --action duplicate -non-strict "E:\download\sickrage" --filter e:\media\filter.groovy --log-file E:\media\amc.log --def excludeList=amc.txt --def exec="curl 'http:\\localhost:8081\api\<REDACTED>?cmd=show.refresh&tvdbid={info.id}'"
No errors are generated however it is not filtering the miss match and moves the file to the wrong folder for Space Debris.
Here is the Log Output running the command with the --filter + Groovy file:
Code: Select all
Input: E:\Download\Sickrage\Debris.S01E03.Solar.Winds.1080p.HDTV.x264-aFi[xsp]\afi-debris.s01e03.1080p.mkv
xattr: [afi-debris.s01e03.1080p.mkv] => [Space Debris - 1x03 - There Be Monsters]
Group: {Series=space debris} => [afi-debris.s01e03.1080p.mkv]
Rename episodes using [TheTVDB] with [Airdate]
Lookup via [Space Debris]
Fetching episode data for [Space Debris]
Apply filter ["n != 'Space Debris'"] on [14] options
Include [Space Debris - 1x01 - Pilot Error]
Include [Space Debris - 1x02 - Sensor of the Beholder]
Include [Space Debris - 1x03 - There Be Monsters]
Include [Space Debris - 1x04 - Sound in Space]
Include [Space Debris - 1x05 - Casual Friday]
Include [Space Debris - 1x06 - The Best Medicine]
Include [Space Debris - 2x01 - Boys' Club]
Include [Space Debris - 2x02 - The Slip]
Include [Space Debris - 2x03 - The One with Time Travel]
Include [Space Debris - 2x04 - Cult Classic]
Include [Space Debris - 2x05 - The Ol' Switcheroo]
Include [Space Debris - 2x06 - Captain For a Day]
Include [Space Debris - 2x07 - Milton's Brain]
Include [Space Debris - 2x08 - Christmas in Space]
[14] options remaining
[DUPLICATE] from [E:\Download\Sickrage\Debris.S01E03.Solar.Winds.1080p.HDTV.x264-aFi[xsp]\afi-debris.s01e03.1080p.mkv] to [E:\Media\TV Shows\Space Debris\Season 01\Space Debris - S01E03 - There Be Monsters.mkv]
Processed 1 file
Execute: curl 'http:\\localhost:8081\api\<REDACTED>?cmd=show.refresh&tvdbid=329038'
Done ヾ(@⌒ー⌒@)ノ
Even if I look at this shows folder in the GUI for FileBot it miss matches the show.
If I try to run this using a script file...
script.txt containing:
Code: Select all
-script
fn:amc
--output E:\Media
--action duplicate -non-strict E:\download\sickrage
--log-file @path\media\amc.log
--filter E:\Media\filter.groovy
--def excludeList=amc.txt
--def exec=curl `http:\\localhost:8081\api\603a8aa2b3e782787cd19116fce1488b?cmd=show.refresh&tvdbid={info.id}`
This is what happens.
Code: Select all
E:\Media>filebot @e:\media\script.txt
Did you read the manual?
└ https://www.filebot.net/cli.html
Did you quote and escape your arguments correctly?
└ https://www.filebot.net/help/args.html
args[1] = -script
args[2] = fn:amc
args[3] = --output E:\Media
args[4] = --action duplicate -non-strict E:\download\sickrage
args[5] = --log-file @path\media\amc.log
args[6] = --filter E:\Media\filter.groovy
args[7] = --def excludeList=amc.txt
args[8] = --def exec=curl `http:\\localhost:8081\api\<REDACTED>?cmd=show.refresh&tvdbid={info.id}`
Failed to read text file: --filter E:\Media\filter.groovy
I am running all these tests from a command prompt, as I presume that's what QB will be doing.
I also tried removing -non-strict but that did not help.
Could we be chasing a problem that is really with TVDB?
Well while writing my story above I may have the filter working now? but it won't match to the proper show...
I figured out, please correct me if I'm wrong that the content of the .groovy file needed to be:
without the double quotes.
Logs:
Code: Select all
Input: E:\Download\Sickrage\Debris.S01E03.Solar.Winds.1080p.HDTV.x264-aFi[xsp]\afi-debris.s01e03.1080p.mkv
xattr: [afi-debris.s01e03.1080p.mkv] => [Space Debris - 1x03 - There Be Monsters]
Group: {Series=space debris} => [afi-debris.s01e03.1080p.mkv]
Rename episodes using [TheTVDB] with [Airdate]
Lookup via [Space Debris]
Fetching episode data for [Space Debris]
Apply filter [n != 'Space Debris'] on [14] options
Exclude [Space Debris - 1x01 - Pilot Error]
Exclude [Space Debris - 1x02 - Sensor of the Beholder]
Exclude [Space Debris - 1x03 - There Be Monsters]
Exclude [Space Debris - 1x04 - Sound in Space]
Exclude [Space Debris - 1x05 - Casual Friday]
Exclude [Space Debris - 1x06 - The Best Medicine]
Exclude [Space Debris - 2x01 - Boys' Club]
Exclude [Space Debris - 2x02 - The Slip]
Exclude [Space Debris - 2x03 - The One with Time Travel]
Exclude [Space Debris - 2x04 - Cult Classic]
Exclude [Space Debris - 2x05 - The Ol' Switcheroo]
Exclude [Space Debris - 2x06 - Captain For a Day]
Exclude [Space Debris - 2x07 - Milton's Brain]
Exclude [Space Debris - 2x08 - Christmas in Space]
[0] options remaining
Failed to identify or process any files
Finished without processing any files
Abort (×_×)
Looks like the filter worked and BUT instead of going and matching the proper show it decided to completely skip the show and not process it.
Open to other ways to fix this mismatch so that I don't have to manually move the show each time.