These forums are archived

See this post for further info

get_iplayer forums

Forum archived. Posting disabled.

How do I exclude search terms in episode title?

user-1906

I'm struggling to exclude certain episodes of Click in a pvr run. I can make one work such 'Short Edition' but if I also want to exclude something like 'World Cup Click Off' then it fails to exclude that one.

Here's a full list of Click searches on tv :-
1156:   Click - Short Edition - Hey from Hay, BBC News, b0b4l1qj
1157:   Click - Short Edition - 16/06/2018, BBC News, b0b6511z
1158:   Click - It's Been Emotional, BBC News, b0b4kg9d
1159:   Click - Hey from Hay, BBC News, b0b5hghs
1160:   Click - World Cup Click Off, BBC News, b0b64zzv
1161:   Click - Inside E3 - The World's Largest Gaming Expo, BBC News, b0b72y6r
INFO: 6 matching programmes

If I now add an exclusion to that command, it successfully removes those episodes, viz :-
get_iplayer click --exclude="Short Edition"

1158:   Click - It's Been Emotional, BBC News, b0b4kg9d
1159:   Click - Hey from Hay, BBC News, b0b5hghs
1160:   Click - World Cup Click Off, BBC News, b0b64zzv
1161:   Click - Inside E3 - The World's Largest Gaming Expo, BBC News, b0b72y6r
INFO: 4 matching programmes

But if I also want to exclude one of those, such as 'World Cup Click Off', I do it like this :-

get_iplayer click --exclude="World Cup Click Off,Short Edition". I've also tried this :-
get_iplayer click --exclude="World Cup Click Off|Short Edition"

But I still get it shown and get the same 4 results shown above.

Where am I going wrong?

user-2

See FAQ list and documentation for info on searching across multiple fields.

user-1906

I've looked through the FAQ several times and also searched the history for other people trying to exclude items but no luck. Hence my question here.

user-2

Hint 1: --exclude is not your problem

Hint 2: re-read my response carefully

Hint 3: re-read the new title I gave this thread

user-1906

Hint 1: --exclude is not your problem

Ah. In that case, I'll look elsewhere.

Hint 2: re-read my response carefully

Point well made :-)

Hint 3: re-read the new title I gave this thread

When I refresh the page, it doesn't show the title, just the content so can I be let off that one? ;-)

I'll try again and report back. Thanks for the hints.

user-1906

I'm still struggling with this and would appreciate a bit more hand-holding to point out where I'm going wrong.

If I search for Click, I get 9 matches including the 'Short Edition'. Including that in a search with --exclude "Short Edition" reduces that number to 5. But if I want, for example to only grab the full file with "Can AI Beat a GP" in the title, I can search for the episode name like this :-
Code:
get_iplayer "Can AI Beat a GP" --exclude "Short Edition" --fields=episode

But that still shows 2 episodes, including a short edition so why doesn't my exclude line work in the search while it did in the previous one?

user-1906

B*gger!

Ever heard the expression 'Cardboard Programmer'? I needed one here. I've made the thing work having looked again, and again at this and finally it dawned on me. Using this code :-
Code:
get_iplayer "Can AI Beat a GP" --exclude "Short Edition" --fields=episode,name
I get the desired result!

These forums are archived

See this post for further info