Remove Group if none is found

Any questions? Need some help?
Post Reply
TehBotol
Supporter
Posts: 34
Joined: 06 Mar 2013, 00:01

Remove Group if none is found

Post by TehBotol »

Hello,

i use {group} in my filebot
and i wanted if the group is not found, then don't use the {group}

but for now the {group} will always return as THE
example

The.Big.Bang.Theory.S06E16.The.Tangible.Affection.Proof.720p.WEB.DL.DD5.1.H.264
How.I.Met.Your.Mother.S08E17.The.Ashtray.720p.WEB.DL.DD5.1.H.264-BS (Since BS is not yet recognized by filebot as group)

expression used : {n} {'S'+s.pad(2)} E{e.pad(2)} - {t} - {source}.{vf}.{ac}.{group}

result :
The Big Bang Theory S06 E16 - The Tangible Affection Proof - .720p.AC3.THE
How I Met Your Mother S08 E17 - The Ashtray - .720p.AC3.THE

so how to make filebot ignore the group is none are found?
i tried to use {try{group}catch(e){''}}
but it still return as THE

Thanks and sorry for my bad english
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Remove Group if none is found

Post by rednoah »

THE is actually a release group, it's using that for the lack of a better hit.

I guess I should ignore that RG. Thought I already did that before but maybe it creeped in again.
:idea: Please read the FAQ and How to Request Help.
TehBotol
Supporter
Posts: 34
Joined: 06 Mar 2013, 00:01

Re: Remove Group if none is found

Post by TehBotol »

Ah i see its because there a RG name THE and there is THE in the filename it uses that as a group

perhaps the better solution is to check {group} only at the last part of the filename
if none found then empty it

is there a way to do this?
or should i just use {group.replace('The','')}

Edit: okay i use {n} {'S'+s.pad(2)} E{e.pad(2)} - {t} - {source}.{vf}.{ac}.{group.replace('The','')}
so it will return empty if THE is found
but now the problem i have an extra . dot after the {ac} if the group is none
tried to do {'.'+group.replace('THE','')} it still give . when the group is none
help :shock: :D



thanks again
rednoah wrote:THE is actually a release group, it's using that for the lack of a better hit.

I guess I should ignore that RG. Thought I already did that before but maybe it creeped in again.
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Remove Group if none is found

Post by rednoah »

There's many people that add the release group in the beginning of the file.

Anyway, I updated the list, try again tomorrow and it'll work.
:idea: Please read the FAQ and How to Request Help.
Post Reply