Exclude category exception?
dinkypumpkin
dinkypumpkin at gmail.com
Wed Sep 5 08:03:06 EDT 2012
On 04/09/2012 17:07, Arthur Murray wrote:
> Thanks for the details. The use case was for the webpvr frontend,
> get_iplayer.cgi which sends the parameters at once.
>
> I want it to return a list of all programs except certain channels
> (CBBC,CBeebies,Alba) and certain categories(Children's,Primary,Sport)
> unless the category is Golf. Doesn't sound possible.
I don't think so. There is no mechanism to interpret "unless". The BBC
has reasonably well-defined taxonomy, and golf programmes will almost
certainly also be in the Sport category. Excluding Sport will always
exclude Golf as well. Perl doesn't support variable length lookbehind
in regular expressions, and I can't think of another regex solution.
Maybe someone else can.
More information about the get_iplayer
mailing list