Release Groups {group}

All about user-defined episode / movie / file name format expressions
svaraej
Posts: 27
Joined: 05 Apr 2016, 13:37

Re: Release Groups {group}

Post by svaraej »

The group "MiNDTHEGAP" often replaces their name with "mtg" in the filename while the folder containing the file still uses the "MiNDTHEGAP".

The group identification works like a charm as long as the source file is located in that folder. But as you would expect, it won't work if the file has moved or the folder has been renamed prior to identification.

My question is therefore: Is it possible to add a mapping/alias of some sort for release groups in the same way that it's done for some series? Or should I just edit my format expressions so it works for me, but not everyone else? :)

Best regards,
svaraej
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Release Groups {group}

Post by rednoah »

1.
You can do that yourself in the format. ;)

e.g.

Code: Select all

f =~ /MiNDTHEGAP|mtg/ ? 'MiNDTHEGAP' : group

2.
If you have more than one group/pattern then you can start making external text files for that so that the code becomes simpler.

e.g.

Code: Select all

csv('pattern-group-map.csv').findResult{ k, v -> f =~ k ? v : null } ?: group
@see viewtopic.php?f=5&t=182


3.
I don't plan on adding anything like that to the code base though. Few people use the {group} binding and only a small fraction of those have this particular requirement. It's just too specific.

I'd really appreciate it if you could write a csv mapping file based format expression snippet, and make a new thread with some documentation on how it works, so that others can easily add this feature themselves via the format if they need it.
:idea: Please read the FAQ and How to Request Help.
svaraej
Posts: 27
Joined: 05 Apr 2016, 13:37

Re: Release Groups {group}

Post by svaraej »

Thank you for the quick reply!

1. That much I knew after doing a bit of reading on the forum. But I figured that I might as well ask, in case I missed something. ^^

2. I don't have any more clear group issues, but I have a few patterns that probably could be solved in a similar way with a csv file.

3. Ok! I've actually been thinking about learning/experimenting with csv files and Filebot. Now seems like the perfect time to do so! I'll see what I can do! :)
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: Release Groups {group}

Post by kim »

You can try my "group" resolver

if in the builtin "group", group-jshdfjhvsdf.ext or sdkjhdvfsdsf-group.ext it will get it ;)
plus some more... "filters"

Code: Select all

{
def dn = call{(file.parentFile.name).match(/(?:\-\w+(?=\[\w+\])|\-\w+$)/)};
def nn = call{fn.match(/(?:(?=(?:19|20)+[0-9]+)\w.+$)/)};
def g = call{(file.parentFile.name+'.'+fn).find(/\-/) ? call{group.replaceAll(/\bDK\b|\bFS\b/,'')} : null};
def gg = '-'+g;
def gb = call{fn.match(/(?:^\w{3,}(?=[-]))/)};
def fm = call{fn.match(/(?:(?:\-(?!\bDL\b|\bRip\b|\bES\b|\bHD\b)\w+$)|(?:\-(?!\bDL\b|\bRip\b|\bES\b|\bHD\b)\w+[\.\_]\w+[\-]\w+$)|(?:\-\w+(?=\.cd[0-9]|\-trailer|\.part[0-9]|\.dan|\.eng))|(?:\-(?!\bDL\b|\bRip\b|\bES\b|\bHD\b)\w+[\-\.\_](?!\b720p\b|\b1080p\b)\w+$)|(?:\-\w+[\.]+\w+(?=\.cd[0-9]))|(?:\-(?!\bDL\b|\bRip\b|\bES\b|\bHD\b)\w+(?=\[\w+\]$)))/)};
if(g!=null && dn!=null && gg.equalsIgnoreCase(dn)) return '-'+g;
if(g!=null && dn!=null) return dn;
if(nn==null && dn!=null) return dn;
if(g!=null && (fm!=null||gb!=null) && (gg.equalsIgnoreCase(fm) || g.equalsIgnoreCase(gb))) return '-'+g;
if(g!=null && g!= '' && (fm!=null && gb!=null)) return '-'+g;
if(g==null && fm!=null && nn!=null) return ''+fm;
if(gb!=null && fm!=null && nn!=null) return '-'+gb;
if(gb!=null && g==null && fm==null && g==null && dn==null && nn==null) return '-'+gb;
if(g!=null && fm!=null && g!=fm) return fm;
if(g==null && fm==null && gb!=null && dn==null && nn==null) return '-'+gb;
if(g==null && fm!=null && gb!=null && dn==null && nn==null) return '-'+gb;
if(fm!=null) return fm}
Elamania
Posts: 39
Joined: 07 Sep 2015, 23:00

Re: Release Groups {group}

Post by Elamania »

Tanoshi
HentaiHeaven
whiterose4u
Posts: 16
Joined: 03 Jul 2017, 22:57

Re: Release Groups {group}

Post by whiterose4u »

Sorry if any of these groups were already mentioned...

R KNOR
NOreVENUE
Chamele0n
Tekno3d
PriMaLHD
ROTTER
AJP69
MaG
Zeus
iSrael
UHDCL
TERMiNAL
PLAYREADY
ULTRAHDCLUB
KASHMiR
THRONE
HDIL
DiN
P2u
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Release Groups {group}

Post by rednoah »

Added. Except for "Radarr" which presumably isn't a real release group. You can always default to that value if {group} is undefined in your format.
:idea: Please read the FAQ and How to Request Help.
whiterose4u
Posts: 16
Joined: 03 Jul 2017, 22:57

Re: Release Groups {group}

Post by whiterose4u »

Ok cool, thanks for the tip rednoah.
Dariss
Posts: 2
Joined: 06 Jul 2017, 05:20

Re: Release Groups {group}

Post by Dariss »

Sn0wMaN
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: Release Groups {group}

Post by kim »

DigDivX
Kefissos
whiterose4u
Posts: 16
Joined: 03 Jul 2017, 22:57

Re: Release Groups {group}

Post by whiterose4u »

CHUPAWAKE
svaraej
Posts: 27
Joined: 05 Apr 2016, 13:37

Re: Release Groups {group}

Post by svaraej »

QOQ
whiterose4u
Posts: 16
Joined: 03 Jul 2017, 22:57

Re: Release Groups {group}

Post by whiterose4u »

HB
whiterose4u
Posts: 16
Joined: 03 Jul 2017, 22:57

Re: Release Groups {group}

Post by whiterose4u »

HDRINVASION
steve9000
Posts: 62
Joined: 01 Oct 2017, 00:58

Re: Release Groups {group}

Post by steve9000 »

RZeroX
Vyndros
Langbard
D0ct0rLew
Joy
JoyBell
Lion
StarLord
ByteShare
FreetheFish
SPYC
GetSchwifty
EvM
VTV
HETeam
steve9000
Posts: 62
Joined: 01 Oct 2017, 00:58

Re: Release Groups {group}

Post by steve9000 »

Absinth
steve9000
Posts: 62
Joined: 01 Oct 2017, 00:58

Re: Release Groups {group}

Post by steve9000 »

TuGAZx
steve9000
Posts: 62
Joined: 01 Oct 2017, 00:58

Re: Release Groups {group}

Post by steve9000 »

FrOnkY
steve9000
Posts: 62
Joined: 01 Oct 2017, 00:58

Re: Release Groups {group}

Post by steve9000 »

highcal
xxxpav69
apekat
nelly45
VPPV
ExKinoRay
STUTTERSHIT
BLUURY
YTS-​AG
RishiBhai
RDLinks
FiLMANTA
FOXM
SDLovers
iExTV
CPG
MIRCrew
DaScubaDude
AgusiQ
steve9000
Posts: 62
Joined: 01 Oct 2017, 00:58

Re: Release Groups {group}

Post by steve9000 »

Is there a way to get the cached release groups to update? Still seeing lots of the recent groups not being picked up by FileBot.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Release Groups {group}

Post by rednoah »

Unfortunately, no. It'll take about a week or two for change to dribble down to your machine. You can do a -clear-cache but that will only clear your local cache, not the CloudFlare edge cache from where data files are served.
:idea: Please read the FAQ and How to Request Help.
steve9000
Posts: 62
Joined: 01 Oct 2017, 00:58

Re: Release Groups {group}

Post by steve9000 »

This one is already there but with different capitalization. Seen it a few different ways.

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

Re: Release Groups {group}

Post by rednoah »

Capitalization does not matter much. FileBot will normalize any case-insensitive match to what's on the list. What is the official capitalization for that release group?
:idea: Please read the FAQ and How to Request Help.
steve9000
Posts: 62
Joined: 01 Oct 2017, 00:58

Re: Release Groups {group}

Post by steve9000 »

From what I can see, RMTeam looks like the correct one. But in most cases it is saved as "rmteam", but it seems like those filenames are just stored in all lowercase.

Here is another group:

SWTYBLZ
Munchkinn
Posts: 1
Joined: 08 Oct 2017, 05:43

Re: Release Groups {group}

Post by Munchkinn »

This group is missing
Tsundere

Also group cbm should be
CBM
Image
Post Reply