TV Show Warrior (2019) incorrectly matched

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
plittlefield
Posts: 78
Joined: 09 Mar 2014, 19:15

TV Show Warrior (2019) incorrectly matched

Post by plittlefield » 29 Apr 2019, 14:03

Hello,

FileBot keeps matching Warrior (2019) as Warrior (2017) and I am trying to fix it with my excludes file, which has both the "Name" and TheTVDB ID...

Code: Select all

n != /Magnum P.I./
n != /Magnum P.I/
n != /Warrior (2017)/
id != 326991
Here is the log for the command line processing...

Code: Select all

-= PROCESSING Warrior.S01E04.720p.WEB.H264-MEMENTO[rarbg] =-
Locking /home/paully/.filebot/logs/amc.log
Run script [fn:amc] at [Mon Apr 29 14:57:20 BST 2019]
Parameter: minFileSize = 0
Parameter: minLengthMS = 0
Parameter: seriesFormat = TV/{n}/{n} {s00e00}
Parameter: movieFormat = Movies/{n} ({y})
Parameter: clean = y
Parameter: ut_dir = /home/paully/Downloads/seedbox2/completed/Warrior.S01E04.720p.WEB.H264-MEMENTO[rarbg]
Parameter: ut_kind = multi
Parameter: ut_title = Warrior.S01E04.720p.WEB.H264-MEMENTO[rarbg]
Input: /home/paully/Downloads/seedbox2/completed/Warrior.S01E04.720p.WEB.H264-MEMENTO[rarbg]/warrior.s01e04.720p.web.h264-memento.mkv
Group: [tvs:warrior] => [warrior.s01e04.720p.web.h264-memento.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Warrior]
Fetching episode data for [Warrior (2017)]
Fetching episode data for [Warrior (2018)]
Fetching episode data for [Heroes and Villains]
Fetching episode data for [Warriors]
Fetching episode data for [Warriors (1999)]
Apply filter [!readLines('/home/paully/Bin/filebot_excludes.txt').contains(n)] on [98] items
Include [Warrior (2017) - 1x01 - 1. Bölüm]
Include [Warrior (2017) - 1x02 - 2. Bölüm]
Include [Warrior (2017) - 1x03 - 3. Bölüm]
Include [Warrior (2017) - 1x04 - 4. Bölüm]
Include [Warrior (2017) - 1x05 - 5. Bölüm]
Include [Warrior (2017) - 1x06 - 6. Bölüm]
Include [Warrior (2017) - 1x07 - 7. Bölüm]
Include [Warrior (2017) - 1x08 - 8. Bölüm]
Include [Warrior (2017) - 1x09 - 9. Bölüm]
Include [Warrior (2017) - 1x10 - 10. Bölüm SEZON FİNALİ]
Include [Warrior (2017) - 2x01 - 11. Bölüm]
Include [Warrior (2017) - 2x02 - 12. Bölüm]
Include [Warrior (2017) - 2x03 - 13. Bölüm]
Include [Warrior (2017) - 2x04 - 14. Bölüm]
Include [Warrior (2017) - 2x05 - 15. Bölüm]
Include [Warrior (2017) - 2x06 - 16. Bölüm]
Include [Warrior (2017) - 2x07 - 17. Bölüm]
Include [Warrior (2017) - 2x08 - 18. Bölüm]
Include [Warrior (2017) - 2x09 - 19. Bölüm]
Include [Warrior (2017) - 2x10 - 20. Bölüm]
Include [Warrior (2017) - 2x11 - 21. Bölüm]
Include [Warrior (2017) - 2x12 - 22. Bölüm]
Include [Warrior (2017) - 2x13 - 23. Bölüm]
Include [Warrior (2017) - 2x14 - 24. Bölüm]
Include [Warrior (2017) - 2x15 - 25. Bölüm]
Include [Warrior (2017) - 2x16 - 26. Bölüm]
Include [Warrior (2017) - 2x17 - 27. Bölüm]
Include [Warrior (2017) - 2x18 - 28. Bölüm]
Include [Warrior (2017) - 2x19 - 29. Bölüm]
Include [Warrior (2017) - 2x20 - 30. Bölüm]
Include [Warrior (2017) - 2x21 - 31. Bölüm]
Include [Warrior (2017) - 2x22 - 32. Bölüm]
Include [Warrior (2017) - 2x23 - 33. Bölüm]
Include [Warrior (2017) - 2x24 - 34. Bölüm]
Include [Warrior (2017) - 2x25 - 35. Bölüm]
Include [Warrior (2017) - 2x26 - 36. Bölüm]
Include [Warrior (2017) - 2x27 - 37. Bölüm]
Include [Warrior (2017) - 2x28 - 38. Bölüm]
Include [Warrior (2017) - 2x29 - 39. Bölüm]
Include [Warrior (2017) - 2x30 - 40. Bölüm]
Include [Warrior (2017) - 2x31 - 41. Bölüm]
Include [Warrior (2017) - 2x32 - 42. Bölüm]
Include [Warrior (2017) - 2x33 - 43. Bölüm]
Include [Warrior (2017) - 2x34 - 44. Bölüm]
Include [Warrior (2017) - 2x35 - 45. Bölüm]
Include [Warrior (2017) - 2x36 - 46. Bölüm]
Include [Warrior (2017) - 2x37 - 47. Bölüm]
Include [Warrior (2017) - 2x38 - 48. Bölüm]
Include [Warrior (2017) - 3x01 - 49. Bölüm]
Include [Warrior (2017) - 3x02 - 50. Bölüm]
Include [Warrior (2017) - 3x03 - 51. Bölüm]
Include [Warrior (2017) - 3x04 - 52. Bölüm]
Include [Warrior (2017) - 3x05 - 53. Bölüm]
Include [Warrior (2017) - 3x06 - 54. Bölüm]
Include [Warrior (2017) - 3x07 - 55. Bölüm]
Include [Warrior (2017) - 3x08 - 56. Bölüm]
Include [Warrior (2017) - 3x09 - 57. Bölüm]
Include [Warrior (2017) - 3x10 - 58. Bölüm]
Include [Warrior (2017) - 3x11 - 59. Bölüm]
Include [Warrior (2017) - 3x12 - 60. Bölüm]
Include [Warrior (2017) - 3x13 - 61. Bölüm]
Include [Warrior (2017) - 3x14 - 62. Bölüm]
Include [Warrior (2017) - 3x15 - 63. Bölüm]
Include [Warrior (2017) - 3x16 - 64. Bölüm]
Include [Warrior (2017) - 3x17 - 65. Bölüm]
Include [Warrior (2017) - 3x18 - 66. Bölüm]
Include [Warrior (2017) - 3x19 - 67. Bölüm]
Include [Warrior (2017) - 3x20 - 68. Bölüm]
Include [Warrior (2017) - 3x21 - 69. Bölüm]
Include [Warrior (2017) - 3x22 - 70. Bölüm]
Include [Warrior (2017) - 3x23 - 71. Bölüm]
Include [Warrior (2017) - 3x24 - 72. Bölüm]
Include [Warrior (2017) - 3x25 - 73. Bölüm]
Include [Warrior (2018) - 1x01 - The Funeral]
Include [Warrior (2018) - 1x02 - The Trial]
Include [Warrior (2018) - 1x03 - The War]
Include [Warrior (2018) - 1x04 - The Interrogation]
Include [Warrior (2018) - 1x05 - The Rat]
Include [Warrior (2018) - 1x06 - Showdown]
Include [Heroes and Villains - 1x01 - Napoleon]
Include [Heroes and Villains - 1x02 - Attila the Hun]
Include [Heroes and Villains - 1x03 - Spartacus]
Include [Heroes and Villains - 1x04 - Cortes]
Include [Heroes and Villains - 1x05 - Richard the Lionheart]
Include [Heroes and Villains - 1x06 - Shogun Tokugawa Ieyasu]
Include [Warriors - 1x01 - Maya Armageddon]
Include [Warriors - 1x02 - Viking Terror]
Include [Warriors - 1x03 - Barbarian Massacre]
Include [Warriors - 1x04 - Braveheart]
Include [Warriors - 1x05 - Knight Fight]
Include [Warriors - 1x06 - Samurai Showdown]
Include [Warriors - 1x07 - The Last Crusaders]
Include [Warriors - 1x08 - Spartan Vengeance]
Include [Warriors - 1x09 - Zulu Siege]
Include [Warriors - 1x10 - Islands of Blood]
Include [Warriors - 1x11 - Special Forces]
Include [Warriors (1999) - 1x01 - Part 1]
Include [Warriors (1999) - 1x02 - Part 2]
[COPY] from [/home/paully/Downloads/seedbox2/completed/Warrior.S01E04.720p.WEB.H264-MEMENTO[rarbg]/warrior.s01e04.720p.web.h264-memento.mkv] to [/home/paully/Plex/TV/Warrior (2017)/Warrior (2017) S01E04.mkv]
Here is TheTVDB list of episodes...

Code: Select all

$ filebot -list --db TheTVDB --q "Warrior (2019)"
Warrior (2019) - 1x01 - The Itchy Onion
Warrior (2019) - 1x02 - There's No China in the Bible
Warrior (2019) - 1x03 - John Chinaman
Warrior (2019) - 1x04 - The White Mountain
Warrior (2019) - 1x05 - The Blood and the Shit
Warrior (2019) - 1x06 - Chewed Up, Spit Out, and Stepped On
Warrior (2019) - 1x07 - The Tiger and the Fox
Warrior (2019) - 1x08 - They Don't Pay Us Enough to Think
Warrior (2019) - 1x09 - Chinese Boxing
Warrior (2019) - 1x10 - If You're Going to Bow, Bow Low
...what am I doing wrong?

Thanks.

:-)

Paully
FileBot 4.8.2 (r5789)
JNA Native: 5.2.2
MediaInfo: 18.05
7-Zip-JBinding: 9.20
Chromaprint: 1.4.2
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2018-09-28 (r535)
Groovy: 2.5.1
JRE: Java(TM) SE Runtime Environment 10.0.2
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 3 GB Max Memory / 64 MB Used Memory
OS: Linux (amd64)
HW: Linux nas 4.4.0-130-generic #156-Ubuntu SMP Thu Jun 14 08:53:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Package: DEB

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

Re: TV Show Warrior (2019) incorrectly matched

Post by rednoah » 29 Apr 2019, 16:19

1.
By writing your own filter expression, you yourself decide the file format of your "excludes file" which doesn't match what you're doing with it at all:

Code: Select all

!readLines('/home/paully/Bin/filebot_excludes.txt').contains(n)
Your code would expect a file such as this:

Code: Select all

Magnum P.I.
Warrior (2017)

2.
This is effectively what you're trying to do:

Code: Select all

--filter "n != /Magnum P.I./ && n != /Magnum P.I/ && n != /Warrior (2017)/ && id != 326991"
It's a simple boolean expression that evaluates to either true or false.
:idea: Please read the FAQ and How to Request Help.

plittlefield
Posts: 78
Joined: 09 Mar 2014, 19:15

Re: TV Show Warrior (2019) incorrectly matched

Post by plittlefield » 29 Apr 2019, 18:58

So, I thought I used the 'excludes' file to do just that... exclude items which I did not want FileBot to consider as the name of the TV show or Movie when renaming.

My exclude file HAS been working for Magnum P.I. (which FileBot kept on renaming the NEW series as the OLD series) and it correctly ignored the old TV show naming and went straight to the 2018 series.

So, what must I do to my 'exclude' file so that FileBot _ignores_ 'Warrior (2017)' please?

I know it is like passing --q "Warrior (2019)" but I cannot keep doing that in my automated script.

Should it be...

Code: Select all

n != /Warrior \(2017\)/
Is there an example page in the forum for this please?

Thanks,

Paully
FileBot 4.8.2 (r5789)
JNA Native: 5.2.2
MediaInfo: 18.05
7-Zip-JBinding: 9.20
Chromaprint: 1.4.2
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2018-09-28 (r535)
Groovy: 2.5.1
JRE: Java(TM) SE Runtime Environment 10.0.2
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 3 GB Max Memory / 64 MB Used Memory
OS: Linux (amd64)
HW: Linux nas 4.4.0-130-generic #156-Ubuntu SMP Thu Jun 14 08:53:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Package: DEB

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

Re: TV Show Warrior (2019) incorrectly matched

Post by rednoah » 29 Apr 2019, 19:55

1.
Your could could not possibly have worked. It's literally your code that is being executed, no magic there. :lol:

This code:

Code: Select all

!readLines('/home/paully/Bin/filebot_excludes.txt').contains(n)
Boils down to something like this being executed:

Code: Select all

['Line 1', 'Line 2'].contains('Line 3')
and that returns either true or false, in this specific example, always false.


2.
Groovy Documentation will tell you everything about the Groovy language:
http://docs.groovy-lang.org/docs/next/h ... mentation/

The FileBot Documentation will tell you everything you need to know about FileBot bindings and extensions:
https://www.filebot.net/naming.html
viewforum.php?f=5

That being said, finding documentation for any specific use case is always tricky, since there's just such a vast amount of general purpose documentation. Best to just do specific examples for specific use cases.


3.
Here's the exclude list example:

Code: Select all

!readLines('/path/to/exclude-series.txt').contains(n)
where exclude-series.txt looks like this:

Code: Select all

Warrior (2017)
This would be equivalent to this:

Code: Select all

!['Warrior (2017)'].contains(n)
Since it's all the same thing, you can of course appropriate the Format Editor for testing your Filter Expressions:
Image
:idea: Please read the FAQ and How to Request Help.

plittlefield
Posts: 78
Joined: 09 Mar 2014, 19:15

Re: TV Show Warrior (2019) incorrectly matched

Post by plittlefield » 29 Apr 2019, 21:09

Thanks for all that.

So, does that mean I cannot use one 'global' excludes file for any series?

:-(

Paully
FileBot 4.8.2 (r5789)
JNA Native: 5.2.2
MediaInfo: 18.05
7-Zip-JBinding: 9.20
Chromaprint: 1.4.2
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2018-09-28 (r535)
Groovy: 2.5.1
JRE: Java(TM) SE Runtime Environment 10.0.2
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 3 GB Max Memory / 64 MB Used Memory
OS: Linux (amd64)
HW: Linux nas 4.4.0-130-generic #156-Ubuntu SMP Thu Jun 14 08:53:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Package: DEB

plittlefield
Posts: 78
Joined: 09 Mar 2014, 19:15

Re: TV Show Warrior (2019) incorrectly matched

Post by plittlefield » 29 Apr 2019, 21:42

I've just tried the age filter as shown in the example documentation, and that does not work for me either!

:-(

Code: Select all

-= PROCESSING Warrior.S01E04.720p.WEB.H264-MEMENTO[rarbg] =-
Locking /home/paully/.filebot/logs/amc.log
Run script [fn:amc] at [Mon Apr 29 22:39:22 BST 2019]
Parameter: minFileSize = 0
Parameter: minLengthMS = 0
Parameter: seriesFormat = TV/{n}/{n} {s00e00}
Parameter: movieFormat = Movies/{n} ({y})
Parameter: clean = y
Parameter: ut_dir = /home/paully/Downloads/seedbox2/completed/Warrior.S01E04.720p.WEB.H264-MEMENTO[rarbg]
Parameter: ut_kind = multi
Parameter: ut_title = Warrior.S01E04.720p.WEB.H264-MEMENTO[rarbg]
Input: /home/paully/Downloads/seedbox2/completed/Warrior.S01E04.720p.WEB.H264-MEMENTO[rarbg]/warrior.s01e04.720p.web.h264-memento.mkv
Group: [tvs:warrior] => [warrior.s01e04.720p.web.h264-memento.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Warrior]
Fetching episode data for [Warrior (2017)]
Fetching episode data for [Warrior (2018)]
Fetching episode data for [Heroes and Villains]
Fetching episode data for [Warriors]
Fetching episode data for [Warriors (1999)]
Apply filter [age < 7 || !model.any{ it.age < 7 }] on [98] items
Include [Warrior (2017) - 3x24 - 72. Bölüm]
[COPY] from [/home/paully/Downloads/seedbox2/completed/Warrior.S01E04.720p.WEB.H264-MEMENTO[rarbg]/warrior.s01e04.720p.web.h264-memento.mkv] to [/home/paully/Plex/TV/Warrior (2017)/Warrior (2017) S03E24.mkv]
...which is a bit odd because 2017 is obviously OLDER than 7 days :lol:

...any suggestions?

Paully
FileBot 4.8.2 (r5789)
JNA Native: 5.2.2
MediaInfo: 18.05
7-Zip-JBinding: 9.20
Chromaprint: 1.4.2
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2018-09-28 (r535)
Groovy: 2.5.1
JRE: Java(TM) SE Runtime Environment 10.0.2
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 3 GB Max Memory / 64 MB Used Memory
OS: Linux (amd64)
HW: Linux nas 4.4.0-130-generic #156-Ubuntu SMP Thu Jun 14 08:53:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Package: DEB

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

Re: TV Show Warrior (2019) incorrectly matched

Post by rednoah » 30 Apr 2019, 03:59

1.
plittlefield wrote:
29 Apr 2019, 21:09
So, does that mean I cannot use one 'global' excludes file for any series?
Does my example not kinda show this exact use case? It's "global" if you set --filter for each filebot call. Generally speaking, the CLI is stateless, and has no global state.


2.
plittlefield wrote:
29 Apr 2019, 21:42
...which is a bit odd because 2017 is obviously OLDER than 7 days :lol:
Warrior (2017) - 3x24 - 72. Bölüm was released 2 das ago:

Code: Select all

filebot -list --q "Warrior" -non-strict --filter "age < 7" --format "{episode} was released {age} das ago"
Apply filter [age < 7] on [101] items
Include [Warrior (2017) - 3x24 - 72. Bölüm]
Include [Warrior (2019) - 1x04 - The White Mountain]
Warrior (2017) - 3x24 - 72. Bölüm was released 2 das ago
Warrior (2019) - 1x04 - The White Mountain was released 4 das ago

Haha. That's bad luck. Two shows with the same name are airing in the same week. Sorry, looks like you have to exclude by series name / id like in the examples above.


3.
Unfortunately, Warrior (2019) isn't in the top 5 search results, so FileBot won't fetch episode information you need, so filter can't include / exclude the episode information you need:

Code: Select all

Auto-detected query: [Warrior]
Fetching episode data for [Warrior (2017)]
Fetching episode data for [Warrior (2018)]
Fetching episode data for [Heroes and Villains]
Fetching episode data for [Warriors]
Fetching episode data for [Warriors (1999)]
Double out of luck. Nothing we can do here. Best choice is to pre-rename the files and replace Warrior with Warrior 2019.

:idea: "filter" is based on episode information. Unfortunately, there is no "series filter".


EDIT:

Further debugging reveals that "Warrior" isn't even known alias for "Warrior (2019)" which explains why it's lower in the ranking. I have a feeling that this particular issue might mostly resolve itself once the show is more popular and less new.
:idea: Please read the FAQ and How to Request Help.

Post Reply