[Suggestion] AMC Force detection

All your suggestions, requests and ideas for future development
Post Reply
Joon
Donor
Posts: 62
Joined: 05 Apr 2014, 14:13

[Suggestion] AMC Force detection

Post by Joon »

Hello,

I've been using FileBot for a while now, for the amount of shows i use it with i can honestly say that most that i use it for works (almost) flawlessly.
For the things that may not be detected 'flawlessly' mainly with AMC/CLI i have the following suggestion
I may have missed it if it already exists..

You may know that the Kodi scrapers have a force detection feature where the scraper scans for a file in the directory first.
namely 'tvshow.nfo'.
This nfo contains the link to the show you want the scraper to recognise, say its an anime its 'aid=12345' or a tv show 'seriesid=12345' or a movie 'movieid=12345'.
It can happen through automatic detection that it selects the wrong show or detects anime as a tvshow instead due to the release not using the usual standards for anime.
Also this can prevent OP/ED files being renamed and moved as 'specials' instead of just being ignored like they should be (imo)

I know you can force the CLI to detect anything as you would like it to be detected, but for a truly versatile 'Automated Media Center' i'd rather go the easy route of putting an file that contains the ID of a show that can potentially mess up (usually the old ones) or messes up due to difficult naming for sequels like adding just a ', " or : after the name for a second season.. honestly i dont get why they do that.



On a side note: is it possible to force FileBot to only use the best match for a show with a command and not jump around for multiple matches? i never download combined show packs.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Suggestion] AMC Force detection

Post by rednoah »

I have no idea what you mean. Example file paths that lead to mismatches would be nice.

1)
FYI filebot does take .nfo files into account if there are any.

2)
Just set the label. If movies/tv shows/anime are labeled movie/tv/anime then it can't be miscategorized.

3)
OP/ED should be ignored. The minFileSize and minLengthMS can easily filter out small/short video files.

4)
If you want to blacklist certain IDs or only whitelist certain shows (or any other arbitrary rule) you should use filter. See Advanced Fine-Tuning section.

Here's an example of blacklisting a specific show:
viewtopic.php?f=3&t=2127

5)
On a side note: is it possible to force FileBot to only use the best match for a show with a command and not jump around for multiple matches? i never download combined show packs.
No idea. But FileBot can't determine the best match until it had a look at all the likely options. You can NOT use -non-strict if you want to trade level of automation for accuracy.
:idea: Please read the FAQ and How to Request Help.
Joon
Donor
Posts: 62
Joined: 05 Apr 2014, 14:13

Re: [Suggestion] AMC Force detection

Post by Joon »

Okay, i'll try to be clearer.

As this is a suggestion/feature request and not a bug report i did not include logs.
Though what i stated is my experience over the course of more than a year.

So im proposing the following feature:

Example Scenario:
You have a folder called "TV Show X"
TV Show X is downloaded there weekly and matched as TV Show X.
Because of random reasons the group that releases it messes up and/or FileBot decides that TV Show Y would be a better match.
This weeks TV Show X is now TV Show Y and things are messed up.
This is rhetorical.

Feature:
Now i look up TV Show X on thetvdb, it has ID=12345 in the URL.
I put a file for example Filebot.nfo in TV Show X's folder containing this URL.
Filebot is given another weekly episode of TV Show X and sees that Filebot.nfo is in the folder, it sees that the ID from the TVDB should be used and disregards any other matching that it uses normally and uses the given ID to fetch the data that belongs to it and processes it like it normally would afterwards.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Suggestion] AMC Force detection

Post by rednoah »

Still doesn't make sense to me. Would TV Show X be the input folder, or the output folder? Because input folders would be new for each new download, or folders with lots of episodes of different shows. In neither case does your filebot.nfo file make much sense.

How about you give me some concrete examples?

Example 1:
/output/Series X/filebot.nfo
/output/Series Y/filebot.nfo
/input/downloads/series.x.101.avi

Example 2:
/output/Series X/
/output/Series Y/
/input/downloads/series.x.101.avi
/input/downloads/series.y.101.avi
/input/downloads/filebot.nfo

Describe the situation, current behaviour, and how filebot.nfo would help with that.

EDIT:

Do you by any chance talk about something like this? viewtopic.php?f=4&t=2126

Here the solution would be something like:

Code: Select all

--filter "(output/'TV Shows'/n).exists()"
:idea: Please read the FAQ and How to Request Help.
Joon
Donor
Posts: 62
Joined: 05 Apr 2014, 14:13

Re: [Suggestion] AMC Force detection

Post by Joon »

I mean this:

Code: Select all

Parameter: clean = y
Parameter: ut_dir = /home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]
Parameter: ut_kind = multi
Parameter: ut_title = Working!! [Chihiro][1920x1080 Blu-ray FLAC]
Parameter: ut_label = Anime
Input: /home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_13_[1920x1080_Blu-ray_FLAC][A7F8C256].mkv
Input: /home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_ED2_[1920x1080_Blu-ray_FLAC][22F90192].mkv
Input: /home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_OP2_[1920x1080_Blu-ray_FLAC][CF1980E5].mkv
Input: /home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_07_[1920x1080_Blu-ray_FLAC][2B60375F].mkv
Input: /home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_06v2_[1920x1080_Blu-ray_FLAC][06FE7B4C].mkv
Input: /home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_11_[1920x1080_Blu-ray_FLAC][B3FD609F].mkv
Input: /home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_OP1_[1920x1080_Blu-ray_FLAC][0AF6EA65].mkv
Input: /home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_01_[1920x1080_Blu-ray_FLAC][DE4B95EC].mkv
Input: /home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_09_[1920x1080_Blu-ray_FLAC][5ACF473F].mkv
Input: /home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_ED1_[1920x1080_Blu-ray_FLAC][3490E466].mkv
Input: /home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_05_[1920x1080_Blu-ray_FLAC][22ECA219].mkv
Input: /home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_12_[1920x1080_Blu-ray_FLAC][19A8E40A].mkv
Input: /home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_04_[1920x1080_Blu-ray_FLAC][2B9E0897].mkv
Input: /home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_08_[1920x1080_Blu-ray_FLAC][2A7AC358].mkv
Input: /home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_03_[1920x1080_Blu-ray_FLAC][D7CA0B9C].mkv
Input: /home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_02_[1920x1080_Blu-ray_FLAC][ABD9FD00].mkv
Input: /home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_10_[1920x1080_Blu-ray_FLAC][4020D960].mkv
Group: [anime:working] => [[Chihiro]_Working!!_-_13_[1920x1080_Blu-ray_FLAC][A7F8C256].mkv, [Chihiro]_Working!!_-_ED2_[1920x1080_Blu-ray_FLAC][22F90192].mkv, [Chihiro]_Working!!_-_OP2_[1920x1080_Blu-ray_FLAC][CF1980E5].mkv, [Chihiro]_Working!!_-_07_[1920x1080_Blu-ray_FLAC][2B60375F].mkv, [Chihiro]_Working!!_-_06v2_[1920x1080_Blu-ray_FLAC][06FE7B4C].mkv, [Chihiro]_Working!!_-_11_[1920x1080_Blu-ray_FLAC][B3FD609F].mkv, [Chihiro]_Working!!_-_OP1_[1920x1080_Blu-ray_FLAC][0AF6EA65].mkv, [Chihiro]_Working!!_-_01_[1920x1080_Blu-ray_FLAC][DE4B95EC].mkv, [Chihiro]_Working!!_-_09_[1920x1080_Blu-ray_FLAC][5ACF473F].mkv, [Chihiro]_Working!!_-_ED1_[1920x1080_Blu-ray_FLAC][3490E466].mkv, [Chihiro]_Working!!_-_05_[1920x1080_Blu-ray_FLAC][22ECA219].mkv, [Chihiro]_Working!!_-_12_[1920x1080_Blu-ray_FLAC][19A8E40A].mkv, [Chihiro]_Working!!_-_04_[1920x1080_Blu-ray_FLAC][2B9E0897].mkv, [Chihiro]_Working!!_-_08_[1920x1080_Blu-ray_FLAC][2A7AC358].mkv, [Chihiro]_Working!!_-_03_[1920x1080_Blu-ray_FLAC][D7CA0B9C].mkv, [Chihiro]_Working!!_-_02_[1920x1080_Blu-ray_FLAC][ABD9FD00].mkv, [Chihiro]_Working!!_-_10_[1920x1080_Blu-ray_FLAC][4020D960].mkv]
Rename episodes using [AniDB]
Auto-detected query: [Working]
Fetching episode data for [Working!!]
Fetching episode data for [Working'!!]
Fetching episode data for [Working!!!]
Jun 20, 2015 10:28:29 PM net.filebot.web.AnidbClient fetchSeriesData
WARNING: Unable to parse episode data: Working!!! (10995): <anime id="10995" restricted="false">
[HARDLINK] Rename [/home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_01_[1920x1080_Blu-ray_FLAC][DE4B95EC].mkv] to [/home/sbuser/downloads/Anime/Working`!!/Working`!! - 01 - A Poplar's Pride.mkv]
[HARDLINK] Rename [/home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_02_[1920x1080_Blu-ray_FLAC][ABD9FD00].mkv] to [/home/sbuser/downloads/Anime/Working`!!/Working`!! - 02 - The Ideal Family Plan.mkv]
[HARDLINK] Rename [/home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_03_[1920x1080_Blu-ray_FLAC][D7CA0B9C].mkv] to [/home/sbuser/downloads/Anime/Working`!!/Working`!! - 03 - The Reason Behind the Slump.mkv]
[HARDLINK] Rename [/home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_04_[1920x1080_Blu-ray_FLAC][2B9E0897].mkv] to [/home/sbuser/downloads/Anime/Working`!!/Working`!! - 04 - Manhole Spiral.mkv]
[HARDLINK] Rename [/home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_05_[1920x1080_Blu-ray_FLAC][22ECA219].mkv] to [/home/sbuser/downloads/Anime/Working`!!/Working`!! - 05 - Wagnaria's Big Stomach.mkv]
[HARDLINK] Rename [/home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_06v2_[1920x1080_Blu-ray_FLAC][06FE7B4C].mkv] to [/home/sbuser/downloads/Anime/Working`!!/Working`!! - 06 - Hired, Fired, Tired.mkv]
[HARDLINK] Rename [/home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_07_[1920x1080_Blu-ray_FLAC][2B60375F].mkv] to [/home/sbuser/downloads/Anime/Working`!!/Working`!! - 07 - Bad Tuning of Love.mkv]
[HARDLINK] Rename [/home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_08_[1920x1080_Blu-ray_FLAC][2A7AC358].mkv] to [/home/sbuser/downloads/Anime/Working`!!/Working`!! - 08 - Oh, My Sister.mkv]
[HARDLINK] Rename [/home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_09_[1920x1080_Blu-ray_FLAC][5ACF473F].mkv] to [/home/sbuser/downloads/Anime/Working`!!/Working`!! - 09 - Love Is So Global.mkv]
[HARDLINK] Rename [/home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_10_[1920x1080_Blu-ray_FLAC][4020D960].mkv] to [/home/sbuser/downloads/Anime/Working`!!/Working`!! - 10 - Cell Phone, No Problem.mkv]
[HARDLINK] Rename [/home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_11_[1920x1080_Blu-ray_FLAC][B3FD609F].mkv] to [/home/sbuser/downloads/Anime/Working`!!/Working`!! - 11 - It's Resolve, Is That a Problem.mkv]
[HARDLINK] Rename [/home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_12_[1920x1080_Blu-ray_FLAC][19A8E40A].mkv] to [/home/sbuser/downloads/Anime/Working`!!/Working`!! - 12 - Daisy Dies.mkv]
[HARDLINK] Rename [/home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_13_[1920x1080_Blu-ray_FLAC][A7F8C256].mkv] to [/home/sbuser/downloads/Anime/Working`!!/Working`!! - 13 - Farewell Popura.mkv]
[HARDLINK] Rename [/home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_ED1_[1920x1080_Blu-ray_FLAC][3490E466].mkv] to [/home/sbuser/downloads/Anime/Working`!!/Working`!! - 0x01 - Live Cast Special 3.mkv]
[HARDLINK] Rename [/home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_ED2_[1920x1080_Blu-ray_FLAC][22F90192].mkv] to [/home/sbuser/downloads/Anime/Working!!/Working!! - 02 - Inami, Androphobia. That's Because I'm Scared.mkv]
[HARDLINK] Rename [/home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_OP1_[1920x1080_Blu-ray_FLAC][0AF6EA65].mkv] to [/home/sbuser/downloads/Anime/Working!!/Working!! - 01 - Welcome to Wagnaria Takanashi Works.mkv]
[HARDLINK] Rename [/home/sbuser/downloads/Seeding/Anime/Working!!/Working!! [Chihiro][1920x1080 Blu-ray FLAC]/[Chihiro]_Working!!_-_OP2_[1920x1080_Blu-ray_FLAC][CF1980E5].mkv] to [/home/sbuser/downloads/Anime/Working`!!/Working`!! - 0x02 - Live Cast Special 4.mkv]
Processed 17 files
Done ヾ(@⌒ー⌒@)ノ
and this:

Code: Select all

Parameter: ignore = (?i)Games|Programs
Parameter: clean = y
Parameter: ut_dir = /home/sbuser/downloads/Seeding/Anime/Wagnaria!! 2/Working'!! (BD 1920x1080 x264 FLAC)
Parameter: ut_kind = multi
Parameter: ut_title = Working'!! (BD 1920x1080 x264 FLAC)
Parameter: ut_label = Anime
Input: /home/sbuser/downloads/Seeding/Anime/Wagnaria!! 2/Working'!! (BD 1920x1080 x264 FLAC)/[tlacatlc6] Working'!! 05 (BD 1920x1080 x264 FLAC) [CF36CE44].mkv
Input: /home/sbuser/downloads/Seeding/Anime/Wagnaria!! 2/Working'!! (BD 1920x1080 x264 FLAC)/[tlacatlc6] Working'!! 06v2 (BD 1920x1080 x264 FLAC) [76E29608].mkv
Input: /home/sbuser/downloads/Seeding/Anime/Wagnaria!! 2/Working'!! (BD 1920x1080 x264 FLAC)/[tlacatlc6] Working'!! 01v2 (BD 1920x1080 x264 FLAC) [4EACB7EB].mkv
Input: /home/sbuser/downloads/Seeding/Anime/Wagnaria!! 2/Working'!! (BD 1920x1080 x264 FLAC)/[tlacatlc6] Working'!! 07v2 (BD 1920x1080 x264 FLAC) [CAB47231].mkv
Input: /home/sbuser/downloads/Seeding/Anime/Wagnaria!! 2/Working'!! (BD 1920x1080 x264 FLAC)/[tlacatlc6] Working'!! 10 (BD 1920x1080 x264 FLAC) [7C5C6168].mkv
Input: /home/sbuser/downloads/Seeding/Anime/Wagnaria!! 2/Working'!! (BD 1920x1080 x264 FLAC)/[tlacatlc6] Working'!! 12 (BD 1920x1080 x264 FLAC) [3C333B94].mkv
Input: /home/sbuser/downloads/Seeding/Anime/Wagnaria!! 2/Working'!! (BD 1920x1080 x264 FLAC)/[tlacatlc6] Working'!! 03v2 (BD 1920x1080 x264 FLAC) [8B21BE20].mkv
Input: /home/sbuser/downloads/Seeding/Anime/Wagnaria!! 2/Working'!! (BD 1920x1080 x264 FLAC)/[tlacatlc6] Working'!! 13 (BD 1920x1080 x264 FLAC) [D7231D99].mkv
Input: /home/sbuser/downloads/Seeding/Anime/Wagnaria!! 2/Working'!! (BD 1920x1080 x264 FLAC)/[tlacatlc6] Working'!! 09 (BD 1920x1080 x264 FLAC) [36F6E876].mkv
Input: /home/sbuser/downloads/Seeding/Anime/Wagnaria!! 2/Working'!! (BD 1920x1080 x264 FLAC)/[tlacatlc6] Working'!! 04 (BD 1920x1080 x264 FLAC) [5487A9D7].mkv
Input: /home/sbuser/downloads/Seeding/Anime/Wagnaria!! 2/Working'!! (BD 1920x1080 x264 FLAC)/[tlacatlc6] Working'!! 11 (BD 1920x1080 x264 FLAC) [ABB3C5F9].mkv
Input: /home/sbuser/downloads/Seeding/Anime/Wagnaria!! 2/Working'!! (BD 1920x1080 x264 FLAC)/[tlacatlc6] Working'!! 02v2 (BD 1920x1080 x264 FLAC) [59EEE28A].mkv
Input: /home/sbuser/downloads/Seeding/Anime/Wagnaria!! 2/Working'!! (BD 1920x1080 x264 FLAC)/[tlacatlc6] Working'!! 08 (BD 1920x1080 x264 FLAC) [A8F64A10].mkv
Group: [anime:wagnaria 2] => [[tlacatlc6] Working'!! 05 (BD 1920x1080 x264 FLAC) [CF36CE44].mkv, [tlacatlc6] Working'!! 06v2 (BD 1920x1080 x264 FLAC) [76E29608].mkv, [tlacatlc6] Working'!! 01v2 (BD 1920x1080 x264 FLAC) [4EACB7EB].mkv, [tlacatlc6] Working'!! 07v2 (BD 1920x1080 x264 FLAC) [CAB47231].mkv, [tlacatlc6] Working'!! 10 (BD 1920x1080 x264 FLAC) [7C5C6168].mkv, [tlacatlc6] Working'!! 12 (BD 1920x1080 x264 FLAC) [3C333B94].mkv, [tlacatlc6] Working'!! 03v2 (BD 1920x1080 x264 FLAC) [8B21BE20].mkv, [tlacatlc6] Working'!! 13 (BD 1920x1080 x264 FLAC) [D7231D99].mkv, [tlacatlc6] Working'!! 09 (BD 1920x1080 x264 FLAC) [36F6E876].mkv, [tlacatlc6] Working'!! 04 (BD 1920x1080 x264 FLAC) [5487A9D7].mkv, [tlacatlc6] Working'!! 11 (BD 1920x1080 x264 FLAC) [ABB3C5F9].mkv, [tlacatlc6] Working'!! 02v2 (BD 1920x1080 x264 FLAC) [59EEE28A].mkv, [tlacatlc6] Working'!! 08 (BD 1920x1080 x264 FLAC) [A8F64A10].mkv]
Rename episodes using [AniDB]
Auto-detected query: [Wagnaria 2, Working]
Fetching episode data for [Working'!!]
Fetching episode data for [Working!!]
Fetching episode data for [Aria the Natural]
Fetching episode data for [Working!!!]
Stripping invalid characters from new path: Anime/Working!!/Working!! - 08 - First Time, Inami? Going Out
[HARDLINK] Rename [/home/sbuser/downloads/Seeding/Anime/Wagnaria!! 2/Working'!! (BD 1920x1080 x264 FLAC)/[tlacatlc6] Working'!! 01v2 (BD 1920x1080 x264 FLAC) [4EACB7EB].mkv] to [/home/sbuser/downloads/Anime/Working!!/Working!! - 01 - Welcome to Wagnaria Takanashi Works.mkv]
[HARDLINK] Rename [/home/sbuser/downloads/Seeding/Anime/Wagnaria!! 2/Working'!! (BD 1920x1080 x264 FLAC)/[tlacatlc6] Working'!! 02v2 (BD 1920x1080 x264 FLAC) [59EEE28A].mkv] to [/home/sbuser/downloads/Anime/Working`!!/Working`!! - 02 - The Ideal Family Plan.mkv]
[HARDLINK] Rename [/home/sbuser/downloads/Seeding/Anime/Wagnaria!! 2/Working'!! (BD 1920x1080 x264 FLAC)/[tlacatlc6] Working'!! 03v2 (BD 1920x1080 x264 FLAC) [8B21BE20].mkv] to [/home/sbuser/downloads/Anime/Working!!/Working!! - 03 - Yachiyo, Kyouko, Satou... And the Returning Otoo-san.mkv]
[HARDLINK] Rename [/home/sbuser/downloads/Seeding/Anime/Wagnaria!! 2/Working'!! (BD 1920x1080 x264 FLAC)/[tlacatlc6] Working'!! 04 (BD 1920x1080 x264 FLAC) [5487A9D7].mkv] to [/home/sbuser/downloads/Anime/Working`!!/Working`!! - 04 - Manhole Spiral.mkv]
[HARDLINK] Rename [/home/sbuser/downloads/Seeding/Anime/Wagnaria!! 2/Working'!! (BD 1920x1080 x264 FLAC)/[tlacatlc6] Working'!! 05 (BD 1920x1080 x264 FLAC) [CF36CE44].mkv] to [/home/sbuser/downloads/Anime/Working`!!/Working`!! - 05 - Wagnaria's Big Stomach.mkv]
[HARDLINK] Rename [/home/sbuser/downloads/Seeding/Anime/Wagnaria!! 2/Working'!! (BD 1920x1080 x264 FLAC)/[tlacatlc6] Working'!! 06v2 (BD 1920x1080 x264 FLAC) [76E29608].mkv] to [/home/sbuser/downloads/Anime/Working`!!/Working`!! - 06 - Hired, Fired, Tired.mkv]
[HARDLINK] Rename [/home/sbuser/downloads/Seeding/Anime/Wagnaria!! 2/Working'!! (BD 1920x1080 x264 FLAC)/[tlacatlc6] Working'!! 07v2 (BD 1920x1080 x264 FLAC) [CAB47231].mkv] to [/home/sbuser/downloads/Anime/Working`!!/Working`!! - 07 - Bad Tuning of Love.mkv]
[HARDLINK] Rename [/home/sbuser/downloads/Seeding/Anime/Wagnaria!! 2/Working'!! (BD 1920x1080 x264 FLAC)/[tlacatlc6] Working'!! 08 (BD 1920x1080 x264 FLAC) [A8F64A10].mkv] to [/home/sbuser/downloads/Anime/Working!!/Working!! - 08 - First Time, Inami Going Out.mkv]
[HARDLINK] Rename [/home/sbuser/downloads/Seeding/Anime/Wagnaria!! 2/Working'!! (BD 1920x1080 x264 FLAC)/[tlacatlc6] Working'!! 09 (BD 1920x1080 x264 FLAC) [36F6E876].mkv] to [/home/sbuser/downloads/Anime/Working`!!/Working`!! - 09 - Love Is So Global.mkv]
[HARDLINK] Rename [/home/sbuser/downloads/Seeding/Anime/Wagnaria!! 2/Working'!! (BD 1920x1080 x264 FLAC)/[tlacatlc6] Working'!! 10 (BD 1920x1080 x264 FLAC) [7C5C6168].mkv] to [/home/sbuser/downloads/Anime/Working!!/Working!! - 10 - The Suspicious Truth..., Nazuna Works.mkv]
[HARDLINK] Rename [/home/sbuser/downloads/Seeding/Anime/Wagnaria!! 2/Working'!! (BD 1920x1080 x264 FLAC)/[tlacatlc6] Working'!! 11 (BD 1920x1080 x264 FLAC) [ABB3C5F9].mkv] to [/home/sbuser/downloads/Anime/Working`!!/Working`!! - 11 - It's Resolve, Is That a Problem.mkv]
[HARDLINK] Rename [/home/sbuser/downloads/Seeding/Anime/Wagnaria!! 2/Working'!! (BD 1920x1080 x264 FLAC)/[tlacatlc6] Working'!! 12 (BD 1920x1080 x264 FLAC) [3C333B94].mkv] to [/home/sbuser/downloads/Anime/Working`!!/Working`!! - 12 - Daisy Dies.mkv]
[HARDLINK] Rename [/home/sbuser/downloads/Seeding/Anime/Wagnaria!! 2/Working'!! (BD 1920x1080 x264 FLAC)/[tlacatlc6] Working'!! 13 (BD 1920x1080 x264 FLAC) [D7231D99].mkv] to [/home/sbuser/downloads/Anime/Working`!!/Working`!! - 13 - Farewell Popura.mkv]
Processed 13 files
Done ヾ(@⌒ー⌒@)ノ
I would have rather taken a little extra effort to define what show it is instead of this :D
With the filebot GUI, when its not sure what the match should be it shows you what kind of matches it made and asks you to pick one.
What i am suggesting is exactly that in command line form but giving the answer before it can ask you.

Now i dont know what to make of what anymore and i'll end up deleting all of it to do it manually..
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Suggestion] AMC Force detection

Post by rednoah »

So what's the issue?

How is what you suggested not already perfectly support by --filter expression?
:idea: Please read the FAQ and How to Request Help.
Joon
Donor
Posts: 62
Joined: 05 Apr 2014, 14:13

Re: [Suggestion] AMC Force detection

Post by Joon »

rednoah wrote:So what's the issue?

How is what you suggested not already perfectly support by --filter expression?
I know i can use filter to only use results for whatever show you set it to.
Adjusting the filter command every time my box downloads something seems to me to be a massive hassle, i know creating a file with an AID link is a hassle too, i am just suggesting the lesser evil here, because my rutorrent also autodownloads stuff, i wouldnt want it to use the filter on any other show.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Suggestion] AMC Force detection

Post by rednoah »

Well, I don't know any of these shows. So you're saying Working!! and Working'!! are two unique shows That's just screwed up! :D

Ok, lets say you have show A and B, and everything else.

Explicitly include all episodes of A and exclude everything else:

Code: Select all

--filter "n == 'A'"
Now you can ONLY process episodes of A but you can be sure that it'll never mismatch with another show like B or anything else.

Explicitly exclude all episodes of B:

Code: Select all

--filter "n != 'B'"
Now you can process any episode of any show except B, and you can be sure that whatever you process will never be mismatched with B. This is usually want you want because it'll keep things versatile as you say.


A more maintainable approach to this concept might look like this:

Code: Select all

--filter "csv('/path/to/excludes.tsv')[n] != 'no'"
Where excludes.tsv might look like:

Code: Select all

Working'!!	no
Just check some file for includes/excludes that you edit and main in your filter expression. You could do the same with AIDs but i find the anime name a much more human-readable unique identifier.


So by taking A or B out of the equation you can make sure that there's no mixup between A and B. How exactly you do this (by age, by name, by rating, by network, or any combination thereof) is completely up to you.


@see viewtopic.php?f=3&t=2127


--filter is extreme-stly versatile. There is very little I can do in the FileBot Core that you can't do in your filter expression. ;)
:idea: Please read the FAQ and How to Request Help.
Joon
Donor
Posts: 62
Joined: 05 Apr 2014, 14:13

Re: [Suggestion] AMC Force detection

Post by Joon »

rednoah wrote:Well, I don't know any of these shows. So you're saying Working!! and Working'!! are two unique shows That's just screwed up! :D
It is indeed screwed up, it happens more often than you would think, this is just S1 and S2, S3 = Working!!! .. i could list more examples but filebot doesnt handle these little differences very well, over time it gets a little frustrating.
The same how it doesnt handle OP/ED named files very well as you can see in the first example above.
rednoah wrote:--filter is extreme-stly versatile. There is very little I can do in the FileBot Core that you can't do in your filter expression.
Could i filter on AID/TVDB ID too ?

And yeah, it would be a pain to maintain, most shows i watch download as aired and doing this for the many shows it downloads .. well you can imagine what im trying to say here :P
Hence why i am suggesting what the thread is about, would be somewhat easier to maintain and keep the automated part of filebot ..unrestricted.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Suggestion] AMC Force detection

Post by rednoah »

1.
Added OP/ED to the default ignore pattern. Use -script dev:amc if you wanna try it.

2.
FileBot can't differentiate shows that are only differentiated by UPPER/lower case or punctuation. That's when you either do it with the GUI or get creative with --filter if possible.

3.
You can filter by absolutely anything. As long as you actually know exactly what you want. ;)

3.1.
Please explain to me why you're so set on using numbers? Why AID? Why TheTVDB ID? Why not include/exclude by name if you want to include/exclude series by series anyway?

Unreadable:

Code: Select all

info.id != 6780
More readable:

Code: Select all

n != 'Waganaria!!'
EDIT:

4.
You haven't actually been clear on this issue. So you want to be able to process (1) Working!! AND (2) Working'!! AND (3) Working!!! without having to change --filter (or any file your filter depends on). You can have one of them, but you can't have all of them.

The smartest thing I could come up with is to just --filter exclude everything for these kinda tricky cases where the names are effectively the same but actually not. :D
:idea: Please read the FAQ and How to Request Help.
Joon
Donor
Posts: 62
Joined: 05 Apr 2014, 14:13

Re: [Suggestion] AMC Force detection

Post by Joon »

rednoah wrote:1.
Added OP/ED to the default ignore pattern. Use -script dev:amc if you wanna try it.
Awesome :)
rednoah wrote: 3.
You can filter by absolutely anything. As long as you actually know exactly what you want. ;)

3.1.
Please explain to me why you're so set on using numbers? Why AID? Why TheTVDB ID? Why not include/exclude by name if you want to include/exclude series by series anyway?

Unreadable:

Code: Select all

info.id != 6780
More readable:

Code: Select all

n != 'Waganaria!!'
Well, The ID is set in stone, a name may not be, AniDB is kinda notorious with changing names without prior notice(especially with Airing stuff)

I can (for example) expand the rtorrent-postprocess file to create more than one filebot cmdline when the path matches anime it can use one cmdline and for anything else the other, without the filter.
Then to make things more complicated, for each anime i DL, i can set the label to the AID and pass that to --filter.

I hope that makes sense, i am by no means a programmer i just dabble a bit :D
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Suggestion] AMC Force detection

Post by rednoah »

1.
Here's the code for my previous suggestions:

Code: Select all

model.n.groupBy{ it.toLowerCase().replaceAll(/\W/, '') }.keySet().size() == model.n.unique().size()
This will just so NO! to everything there's multiple shows that are not sufficiently different.

2.
For TheTVDB the series name is set in stone once it's been added for a few weeks. I don't think the AniDB primary title would change over time, but if it does, well I guess the numeric ID the only choice then.

If you wanna set AID manually for each download you can simply add it to the label:

Code: Select all

label.contains(info.id as String)
e.g. label "anime 12345" contains keyword "anime" for the amc script as well as keyword "12345" for your AID filter


EDIT:


Or simplified:

Code: Select all

--filter "label =~ info.id"
:idea: Please read the FAQ and How to Request Help.
Joon
Donor
Posts: 62
Joined: 05 Apr 2014, 14:13

Re: [Suggestion] AMC Force detection

Post by Joon »

rednoah wrote: 4.
You haven't actually been clear on this issue. So you want to be able to process (1) Working!! AND (2) Working'!! AND (3) Working!!! without having to change --filter (or any file your filter depends on). You can have one of them, but you can't have all of them.

The smartest thing I could come up with is to just --filter exclude everything for these kinda tricky cases where the names are effectively the same but actually not. :D
Apologies, i’m kind of challenged that way.. i do really appreciate your effort in trying to understand me, not many people do.

Not sure how much a beer is where you live, but i'll get you one :P
rednoah wrote:1.
Here's the code for my previous suggestions:

Code: Select all

model.n.groupBy{ it.toLowerCase().replaceAll(/\W/, '') }.keySet().size() == model.n.unique().size()
This will just so NO! to everything there's multiple shows that are not sufficiently different.

2.
For TheTVDB the series name is set in stone once it's been added for a few weeks. I don't think the AniDB primary title would change over time, but if it does, well I guess the numeric ID the only choice then.

If you wanna set AID manually for each download you can simply add it to the label:

Code: Select all

label.contains(info.id as String)
e.g. label "anime 12345" contains keyword "anime" for the amc script as well as keyword "12345" for your AID filter


EDIT:


Or simplified:

Code: Select all

--filter "label =~ info.id"
Well whoah, you're giving me a lot of options here, i assume the top 2 are also variations of how you can use --filter ?

And from your edit, 'label' will be what is set as ut_label ? (not quite sure what the noodle means after the '=' )
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Suggestion] AMC Force detection

Post by rednoah »

Yep, that's all Groovy code you can use as --filter expression.

If you're OK with setting AID for each download then things get much easier of course. So the last filter expression should do just fine.

The label binding is whatever you pass in via --def ut_label and =~ is just the regex matcher operator to check if label contains the id.
:idea: Please read the FAQ and How to Request Help.
Joon
Donor
Posts: 62
Joined: 05 Apr 2014, 14:13

Re: [Suggestion] AMC Force detection

Post by Joon »

rednoah wrote:Yep, that's all Groovy code you can use as --filter expression.

If you're OK with setting AID for each download then things get much easier of course. So the last filter expression should do just fine.

The label binding is whatever you pass in via --def ut_label and =~ is just the regex matcher operator to check if label contains the id.
Thanks, really appreciate it!

I will see what i can produce with this, kinda exciting :)
Joon
Donor
Posts: 62
Joined: 05 Apr 2014, 14:13

Re: [Suggestion] AMC Force detection

Post by Joon »

I got it working with a slight alteration to the bash script, it was passing spaces as %20 as well so i crudely fixed that too :lol: .

Code: Select all

TORRENT_LABEL=${3//%20/ }
and

Code: Select all

if [[ $TORRENT_LABEL =~ "Anime" ]]
then
filebot ...
else
filebot ...
fi
Thanks for the noodle tip, worked in bash as well :)

edit:

Code: Select all

[[ $TORRENT_LABEL == "Anime "* ]]
Works too if you still want to use the Anime label without a code and without triggering the filter.

By the way Rednoah, is there full documentation on which shortcodes are available for filebot's filter ? like info.id is not listed here http://sourceforge.net/p/filebot/code/H ... gBean.java
Joon
Donor
Posts: 62
Joined: 05 Apr 2014, 14:13

Re: [Suggestion] AMC Force detection

Post by Joon »

Slight question, im experimenting a little more with using absolute names and extracting them from the path.
I got it working but it seems to have an issue with it.

Also i have no issue with the first solution by the way, the filter just piqued my interest :)

If i use

Code: Select all

--filter "n == $name_var"
I get issues with spacing like so, i escaped the var with printf and i still get the same error.

Code: Select all

ScriptException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script6.groovy: 1: expecting EOF, found 'ni' @ line 1, column 14.
   n == Dungeon ni Deai o Motomeru no wa Machigatte Iru Darouka: Familia Myth
                ^
If i quote $name_var in addition to the first bit of code being quoted i get this:

Code: Select all

Argument: /home/sbuser/ni
Argument: /home/sbuser/Deai
Argument: /home/sbuser/o
Argument: /home/sbuser/Motomeru
Argument: /home/sbuser/no
Argument: /home/sbuser/wa
Argument: /home/sbuser/Machigatte
Argument: /home/sbuser/Iru
Argument: /home/sbuser/Darouka:
Argument: /home/sbuser/Familia
Argument: /home/sbuser/Myth
File not found: /home/sbuser/ni
i am probably missing something very obvious
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Suggestion] AMC Force detection

Post by rednoah »

NO

Code: Select all

n == One Piece
YES

Code: Select all

n == 'One Piece'
:idea: Please read the FAQ and How to Request Help.
Post Reply