These forums are archived

See this post for further info

get_iplayer forums

Forum archived. Posting disabled.

Exclude/include channels on refresh

user-21

Is there a limit to the number of channels you can exclude or include

I want to speed up refresh times but none of teh channels I use in teh exclude option get excuded from the TV.cache ,radio.cache or podcast.cache

the string is pretty large and I wondered if that may be the reason why, or have I got the format wrong

here is my exclude and include stings.
I use either
Code:
get_iplayer --refresh-future --refresh-exclude ="Audio Described,BBC 1Xtra,BBC 5 live Sports Extra,BBC 6 Music,BBC Alba,BBC Asian Network,BBC Berkshire,BBC Bristol,BBC Cambridgeshire,BBC Cornwall,BBC Coventry & Warwickshire,BBC Cumbria,BBC Derby,BBC Devon,BBC Essex,BBC Gloucestershire,BBC Guernsey,BBC Hereford & Worcester,BBC Humberside,BBC Jersey,BBC Kent,BBC Lancashire,BBC Leeds,BBC Leicester,BBC Lincolnshire,BBC London,BBC Manchester,BBC Merseyside,BBC Newcastle,BBC News,BBC News 24,BBC Norfolk,BBC Northampton,BBC Nottingham,BBC One Cambridgeshire,BBC One East,BBC One East Midlands,BBC One London,BBC One North East & Cumbria,BBC One North West,BBC One Oxfordshire,BBC One Scotland,BBC One South,BBC One South East,BBC One South West,BBC One Wales,BBC One West,BBC One West Midlands,BBC One Yorks & Lincs,BBC One Yorkshire,BBC Oxford,BBC Parliament,BBC Radio,BBC Radio 1,BBC Radio 3,BBC Radio 4 FM,BBC Radio 4 LW,BBC Radio 5 live,BBC Radio 5 live Sports Extra,BBC Radio Bristol,BBC Radio Cornwall,BBC Radio Cymru,BBC Radio Foyle,BBC Radio Humberside,BBC Radio Jersey,BBC Radio Leicester,BBC Radio Manchester,BBC Radio Nan Gaidheal,BBC Radio Scotland,BBC Radio Sheffield,BBC Radio Solent,BBC Radio Suffolk,BBC Radio Ulster,BBC Radio Wales,BBC Sheffield,BBC Shropshire,BBC Solent,BBC Somerset,BBC Sport,BBC Stoke,BBC Suffolk,BBC Surrey,BBC Sussex,BBC Tees,BBC Three Counties,BBC Three Counties Radio,BBC Two Wales,BBC Wiltshire,BBC WM,BBC World Service,BBC York,CBBC,CBeebies,Signed," --refresh --type=all


or
Code:
get_iplayer --refresh-future --refresh-include ="BBC Four,BBC One,BBC One Channel Islands,BBC One HD,BBC One Northern Ireland,BBC Radio 2,BBC Radio 4,BBC Radio 4 Extra,BBC Three,BBC Two,BBC Two Northern Ireland,BBC Two Scotland,BBC Web Only," --refresh --type=all




I think I have got the format right but it just downloads everything.

I like the look of the site and hope it catches on, except with the big bad corporation

user-30

There should be no space before the = sign in either command.

user-2

You should use
Code:
--refresh-exclude
and
Code:
--refresh-include
as part of the same command since the cache is rewritten every time you run with
Code:
--refresh
. However, you may not need to do that in your case. It looks like you only want a small subset of channels , so you should be able to just use
Code:
--refresh-include
with some adjustments to your search terms.

Each search term is applied as a regular expression match, which in the usual case can be considered a substring match. Thus, "BBC One" will match everything containing "BBC One", so all regional variants will be included, not just the ones specified elsewhere in your list. You can stop that by appending a dollar sign to that particular search term, i.e., "BBC One" becomes "BBC One$". That will prevent that search from matching a channel name containing anything after "BBC One". Your specific variants (e.g., BBC One Channel Islands) will still be matched as well.

Channel inclusion/exclusion isn't implemented in the podcast plugin, nor is
Code:
--refresh-future
(which doesn't have any meaning for podcasts).

One forum tip: wrap any example commands with the "code" button in the editor. It makes it possible to copy and paste your commands verbatim for testing.

user-21

882 Wrote:You should use
Code:
--refresh-exclude
and
Code:
--refresh-include
as part of the same command since the cache is rewritten every time you run with
Code:
--refresh
. However, you may not need to do that in your case. It looks like you only want a small subset of channels , so you should be able to just use
Code:
--refresh-include
with some adjustments to your search terms.

Each search term is applied as a regular expression match, which in the usual case can be considered a substring match. Thus, “BBC One” will match everything containing “BBC One”, so all regional variants will be included, not just the ones specified elsewhere in your list. You can stop that by appending a dollar sign to that particular search term, i.e., “BBC One” becomes “BBC One$”. That will prevent that search from matching a channel name containing anything after “BBC One”. Your specific variants (e.g., BBC One Channel Islands) will still be matched as well.

Channel inclusion/exclusion isn’t implemented in the podcast plugin, nor is
Code:
--refresh-future
(which doesn’t have any meaning for podcasts).

One forum tip: wrap any example commands with the “code” button in the editor. It makes it possible to copy and paste your commands verbatim for testing.
thanks for the advice and all is working well now
Is there a reason why it does not work with podcasts as the podcast file seems to be the largest of all

user-2

No reason. Whoever wrote the podcast support just didn't implement inclusion/exclusion. It was written before the BBC greatly expanded the amount of available podcasts (from archives, etc.) a couple of years ago. I'll put it on the list, but it will be a good while before it sees the light of day.

These forums are archived

See this post for further info