Re: Cache no-refresh and regexes

2017-05-14 Thread Ralph Corderoy
Hi Howard, > I use --refreshexclude .* on the command line to suppress automatic > cache refreshes. It works very well. This still has get_iplayer go through the motions of refreshing the cache, it's just there are never any channels to update when it gets to the `for every channel...' point.

Re: Cache no-refresh and regexes

2017-05-14 Thread Mark Carroll
On 14 May 2017, Howard Orgel wrote: > On Fri, 12 May 2017 22:22:13 +0100, Mark Carroll wrote: > >> Is there an antonym for --refresh? I wonder what's the cleanest way to >> tell get_iplayer not to refresh the cache. I thought about trying to >> exclude everything but the manpage doesn't seem to

Re: Cache no-refresh and regexes

2017-05-13 Thread Howard Orgel
On Fri, 12 May 2017 22:22:13 +0100, Mark Carroll wrote: > Is there an antonym for --refresh? I wonder what's the cleanest way to > tell get_iplayer not to refresh the cache. I thought about trying to > exclude everything but the manpage doesn't seem to say what /kind/ of > regex is supported --

Re: Cache no-refresh and regexes

2017-05-12 Thread Ralph Corderoy
Hi Mark, > I guess I could use 2^24 or something All my scripts that run get_iplayer pass `-e 31536000', that being a year's seconds, apart from the script that explicitly refreshes. -- Cheers, Ralph. https://plus.google.com/+RalphCorderoy ___

Re: Cache no-refresh and regexes

2017-05-12 Thread Mark Carroll
On 13 May 2017, Vangelis forthnet wrote: > On Fri May 12 22:22:13 BST 2017, Mark Carroll wrote: > >> I wonder what's the cleanest way to >> tell get_iplayer not to refresh the cache. > > ... Use the -e (--expiry) option with a huge value, e.g. the number > of seconds included in a week or more,

Re: Cache no-refresh and regexes

2017-05-12 Thread Vangelis forthnet
On Fri May 12 22:22:13 BST 2017, Mark Carroll wrote: I wonder what's the cleanest way to tell get_iplayer not to refresh the cache. ... Use the -e (--expiry) option with a huge value, e.g. the number of seconds included in a week or more, and set it in your user options; you do plan on

Cache no-refresh and regexes

2017-05-12 Thread Mark Carroll
Is there an antonym for --refresh? I wonder what's the cleanest way to tell get_iplayer not to refresh the cache. I thought about trying to exclude everything but the manpage doesn't seem to say what /kind/ of regex is supported -- maybe it takes Perl-style regexes? I feel like I am probably