These forums are archived

See this post for further info

get_iplayer forums

Forum archived. Posting disabled.

Exclude Titles from PVR

user-38

I can get this script working to avoid showing channels and certain programmes. However I need to include programms such as.

behind the lines,points of view,weakest link,fix my family

and channels such as "northern ireland"

How can i do this without getting the script to truncate.
Thanks in advance for any answers.

Code:
get_iplayer --prefs-add --exclude-channel cbbc,cbeebies,parliament,alba,news --exclude-category soaps,classical,sport,pets,standup,news,folk,food,drink,disability,car,garden,supernatural,scotland --exclude doctors,casualty,holby,hunted,inspector,newsnight,bargain,gardener,gang,officer,helicopter,jools,merlin,slater,cooking,meade,nickleby,norton,dad's,remembrance,police,mayor,debate,conference,am.pm,welsh,strictly,unzipped,vicar,wales,paras,stormont,praise,lottery

user-2

All channels and programmes not specifically excluded will be included in the search. You can use
Code:
--channel
to narrow results to one or more channels, but don't add that to your preferences. If you do, you will need to override that list of channels every time you want to do a different search. The same goes for for programme names - don't save them in preferences. If you want to search for multiple programme names at once, surround them with quotes and separate them with a vertical pipe symbol:
Code:
get_iplayer "behind the lines|points of view|weakest link|fix my family"


The general idea is that the
Code:
--excludeXXX
options are for things you never want to see, while
Code:
--channel
and
Code:
--category
should generally be applied only to a particular search.

If you have certain searches that you want to save and re-use in the future, use presets. See Usage & Examples.

user-38

Thank you user-2 for your fast response. I have to use exclude searches to minimise the amount of tripe the BBC now produces.

Is there any way to get the PVR manager to display 400 reults on one page rather than 10?

I also added this but there is no indicator that future listings are shown on the PVR manager
Code:
get_iplayer --add-prefs --refresh-future

Thanks

user-30

Quote:Quote:I have to use exclude searches to minimise the amount of tripe the BBC now produces.

What is your overall aim with this script? What is the end state you are looking for? What is it you would like get_iplayer to do?

Knowing these answers may make it easier to see exactly what you are trying to do and could lead to another way of getting to the desired result without jumping through a series of hoops.

user-2

Quote:Quote:
Is there any way to get the PVR manager to display 400 reults on one page rather than 10?

Tip for the future: If you're using the Web PVR, tell us up front. It determines how we respond to your queries.

I'm guessing you didn't pull the number 400 out of a hat, so I presume you've found the setting that controls the number of programmes displayed per page. My guess is that you just didn't apply/save the setting. See the Settings section in the Web PVR help.

Quote:I also added this but there is no indicator that future listings are shown on the PVR manager

Code:
get_iplayer --add-prefs --refresh-future

Don't put this in your preferences. The Web PVR always passes this option to get_iplayer, which will always override the value in preferences. The value in preferences will only be used by the CLI. Configure this option in the Web PVR and save it as your default there if that's what you want. In general, any option that can be configured in the Web PVR should be configured there rather than in preferences. There are a few sort-of exceptions, such as the
Code:
--excludeXXX
options which are empty by default in the Web PVR. Of course, once you enter values for those options in the Web PVR the equivalent preferences will be overridden as well, so I would recommend you set your exclusions in the Web PVR as well and not in preferences. The Web PVR was designed to be a separate, more limited tool, which is a blessing or a curse depending on your perspective. Most Windows users seem happy to avoid the command line, but the price is a loss of flexibility.

As for why you didn't see future programmes, there are a couple of possibilities: 1) The most likely explanation is that you didn't set the "refresh future" option in the Web PVR itself, so the necessary parameter wasn't passed to get_iplayer; 2) You didn't refresh the cache - you have to launch the cache refresh tab yourself in the Web PVR. Even when the cache has been refreshed with future listings, you must configure the Web PVR to search future programmes. Like get_iplayer, it doesn't do so by default.

user-38

What is your overall aim with this script? What is the end state you are looking for? What is it you would like get_iplayer to do?

Basically when i am searching using WEB PVR Manager for the latest programs to download, I want to exclude many which are of no interest to me.

I have managed to set the view to 400 items in the web PVR manager by editing the file get_iplayer.cgi
line 3528
$opt->{PAGESIZE} = {
title => 'Programmes per Page', # Title
tooltip => 'Select the number of search results displayed on each page', # Tooltip
webvar => 'PAGESIZE', # webvar
type => 'popup', # type
default => 400, # default
value => ['10','25','50','100','200','400'], # values
onChange=> "BackupFormVars(form); form.NEXTPAGE.value='search_progs'; form.PAGENO.value=1; form.submit(); RestoreFormVars(form);",
save => 1,

In addition I also changed the show future programms by editing the
same file and changing the default to 1.

line 3767
$opt->{FUTURE} = {
title => 'Search Future Schedule', # Title
tooltip => 'Whether to additionally display and search programmes in the future programmes schedule (will only work if Refresh future schedule option is enable and refreshed)', # Tooltip
webvar => 'FUTURE', # webvar
optkey => 'future', # option
type => 'radioboolean', # type
default => '1', # value
save => 1,


Both i believe can be achieved cookies but i clean my cache leaving IE.

Regards future refresh neither solution appears to work, I evn deleted the cach file under users to see if it rebuilt differently. Anyhow i shall continue playing to see if i can resolve this myself. In the meantime, thanks for all your help.

These forums are archived

See this post for further info