Cache no-refresh and regexes

Ralph Corderoy ralph at inputplus.co.uk
Sun May 14 02:33:44 PDT 2017


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.  And Unix users should quote the `.*'
as otherwise it will first be expanded by the shell to directory entries
starting with a dot, e.g. `.' and `..'.

    --refreshexclude '.*'

`.*' when seen by get_iplayer is a regexp for any character, the dot,
zero or more times, the star.  `.*' when seen by the shell is a glob for
a literal dot followed by zero or more of anything.

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy



More information about the get_iplayer mailing list