RE: New radio PIDs, more than 8 characters - "solved"

2017-08-23 Thread Hugh Reynolds
et_iplayer-boun...@lists.infradead.org] On Behalf Of Vangelis forthnet Sent: 24 August 2017 02:17 To: get_iplayer@lists.infradead.org Subject: Re: New radio PIDs, more than 8 characters - "solved" On Wed Aug 23 16:44:30 BST 2017, Hugh Reynolds wrote: > Reboot didn't help > Uninstall and

Re: New radio PIDs, more than 8 characters - "solved"

2017-08-23 Thread Vangelis forthnet
On Wed Aug 23 16:44:30 BST 2017, Hugh Reynolds wrote: Reboot didn't help Uninstall and Reboot didn't help iobit-unlocker helped. Clean install is now working. Many, many thanks. You're welcome! I'm glad you're back up and running :-) For the sake of completeness/closure, were you even ab

RE: New radio PIDs, more than 8 characters - "solved"

2017-08-23 Thread Hugh Reynolds
Vangelis, All, Sorry for the Hijack. Reboot didn't help Uninstall and Reboot didn't help iobit-unlocker helped. Clean install is now working. Many, many thanks. Hugh --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ___

Re: New radio PIDs, more than 8 characters - "solved"

2017-08-22 Thread Alan Milewczyk
able. I am a supervisor but even that doesn't seem to give me permission to delete those files. Any ideas what I could do now? Hi Hugh First thing is you seem to have "hijacked" a previous thread, because the title of the thread you posted in (New radio PIDs, more than 8 c

Re: New radio PIDs, more than 8 characters - "solved"

2017-08-22 Thread Vangelis forthnet
't seem to give me permission to delete those files. Any ideas what I could do now? Hi Hugh First thing is you seem to have "hijacked" a previous thread, because the title of the thread you posted in (New radio PIDs, more than 8 characters - "solved") has nothing

RE: New radio PIDs, more than 8 characters - "solved"

2017-08-22 Thread Hugh Reynolds
I've just tried the windows upgrade and now I seem to have a totally broken get_iplayer. The installer failed in trying to delete perl.exe, atomicparsley.exe and ffmpeg.exe and left me with the PVR manager reporting "Access is denied." Those three files seem to be undeletable. I am a supervisor b

Re: New radio PIDs, more than 8 characters - "solved"

2017-08-17 Thread Ralph Corderoy
Hi C. E., > for a high-level language, [Perl's] syntax is unnecessarily difficult > and obscure. Perl's syntax is heavy on notation, but then notation is powerful compared to the long-hand alternatives, and that's why it's fine in maths, chemistry, and Perl. For the occasional visitor, Python's

Re: New radio PIDs, more than 8 characters - "solved"

2017-08-16 Thread SAO
Would you two please take this childish spat to private email and save the rest of us from terminal boredom. On Wed, 16 Aug 2017 17:20:10 +0100, David Cantrell wrote: On Wed, Aug 16, 2017 at 04:57:30PM +0100, C E Macfarlane wrote: But, since you are obviously spoiling for a fight, why sh

Re: New radio PIDs, more than 8 characters - "solved"

2017-08-16 Thread David Cantrell
On Wed, Aug 16, 2017 at 04:57:30PM +0100, C E Macfarlane wrote: > But, since you are obviously spoiling for a fight, why should anyone listen > to someone who has confessed to being a part of putting all that massive > bloat in BBC web pages [citation needed] > presumably therefore you will feel

RE: New radio PIDs, more than 8 characters - "solved"

2017-08-16 Thread C E Macfarlane
> On Wed, Aug 16, 2017 at 04:16:33PM +0100, C E Macfarlane wrote: > > > as for arcane-ness of language and difficulty in reading > > it's about on a par with The Bible! > > That's what everyone thinks about languages that they are too damned > lazy to learn. Laziness doesn't en

Re: New radio PIDs, more than 8 characters - "solved"

2017-08-16 Thread David Cantrell
On Wed, Aug 16, 2017 at 04:16:33PM +0100, C E Macfarlane wrote: > as for arcane-ness of language and difficulty in reading > it's about on a par with The Bible! That's what everyone thinks about languages that they are too damned lazy to learn. -- David Cantrell | Nth greatest programmer in the

RE: New radio PIDs, more than 8 characters - "solved"

2017-08-16 Thread C E Macfarlane
See reply below ... -- www.macfh.co.uk/MacFH.html > The first two google results for "perl regular expression" not good > enough for you :-) I'm sure they would have been, but that wasn't what I searched for. I searched for something more precise. > BTW, it's Perl or perl, not PERL.

Re: New radio PIDs, more than 8 characters - "solved"

2017-08-16 Thread David Cantrell
On Tue, Aug 15, 2017 at 03:06:51PM +0100, C E Macfarlane wrote: > Yes, I was aware of \b support in some languages, but RE support varies > across languages, and, knowing this but not being experienced in PERL, I > checked at least two online sources for PERL REs and could find no evidence > of su

RE: New radio PIDs, more than 8 characters - "solved"

2017-08-16 Thread C E Macfarlane
More on REs ... -- www.macfh.co.uk/MacFH.html > > would we both agree with?: > > \b[bpw][0-9][a-z0-9]{7,13}\b > > I think it's > > \b[bpw]\d[b-df-hj-np-tv-z\d]{6,13}\b > > to cover the existing ones that are eight long, up to the 15-long > w172vg029mkl852 that V

Re: New radio PIDs, more than 8 characters - "solved"

2017-08-16 Thread RS
From: Jim web Sent: Wednesday, August 16, 2017 09:58 I've not encountered any problem thus far, so currently am asking just for clarification. Have a look at World Service programmes from Friday onwards. http://www.bbc.co.uk/programmes/p002w6r2/episodes/downloads http://www.bbc.co.uk/programm

Re: New radio PIDs, more than 8 characters - "solved"

2017-08-16 Thread Ralph Corderoy
Hi C. E., > So, yielding to your superior knowledge of PERL, for the sake of > clarity for the benefit of those who may have had difficulty in > following the nuances of the argument, or been confused by the > multiple suggestions, would we both agree with?: > \b[bpw][0-9][a-z0-9]{7,13}\b I

Re: New radio PIDs, more than 8 characters - "solved"

2017-08-16 Thread Jim web
The discussion prompts some questions on my part: 1) I always used -pid to specify a programme rather than other methods. Does this *have* to have a validation check by regex? I'd assume it doesn't need to parse an entire url because it could just tack the value I give onto the standard parts. Th

Re: New radio PIDs, more than 8 characters - "solved"

2017-08-15 Thread Vangelis forthnet
On Mon Aug 14 13:19:14 BST 2017, M Clark wrote: changing all 7 occurrences (sigh...) of [bp]0[a-z0-9]{6} to (?:[bp]0[a-z0-9]{6}|w[a-z0-9]{7,14}) solves the w3*, w1* problem for Me. Hi Martin; that new code still assumes that both Red Bee & PIPs PIDs will have "0" as the second character in the

RE: New radio PIDs, more than 8 characters - "solved"

2017-08-15 Thread C E Macfarlane
More on REs ... -- www.macfh.co.uk/MacFH.html > > Yes, I was aware of \b support in some languages, but RE support > > varies across languages, and, knowing this but not being experienced > > in PERL, I checked at least two online sources for PERL REs > and could > > find no ev

Re: New radio PIDs, more than 8 characters - "solved"

2017-08-15 Thread Ralph Corderoy
Hi C. E., > Yes, I was aware of \b support in some languages, but RE support > varies across languages, and, knowing this but not being experienced > in PERL, I checked at least two online sources for PERL REs and could > find no evidence of support for it. One is http://perldoc.perl.org/perlre.h

RE: New radio PIDs, more than 8 characters - "solved"

2017-08-15 Thread C E Macfarlane
More about Regular Expressions (REs), which can be safely ignored by those not interested ... -- www.macfh.co.uk/MacFH.html > > it might be necessary to bracket it at the beginning and end with > > non-capturing non-word meta- or pseudo-characters > > Rather than \W, representing a sin

Re: New radio PIDs, more than 8 characters

2017-08-15 Thread James Scholes
C E Macfarlane wrote: Thinking about this a bit more, I wouldn't wish to claim a spurious hit was more likely with no upper limit, but nevertheless I would still regard it better programming practice to have one - with normal written English, the potential for spurious hits would be low, and in

Re: New radio PIDs, more than 8 characters - "solved"

2017-08-15 Thread Ralph Corderoy
Hi C. E., > it might be necessary to bracket it at the beginning and end with > non-capturing non-word meta- or pseudo-characters Rather than \W, representing a single non-word character, \b would be better, meaning a zero-width boundary between a word, \w, and non-word, \W, character, or the sta

RE: New radio PIDs, more than 8 characters

2017-08-14 Thread C E Macfarlane
Correction below: -- www.macfh.co.uk/MacFH.html > Yes, but in practice you'd want an upper limit, because the > higher the limit > the more likely you are to get spurious hits. Thinking about this a bit more, I wouldn't wish to claim a spurious hit was more likely with no upper limit,

RE: New radio PIDs, more than 8 characters

2017-08-14 Thread C E Macfarlane
See interleaved reply below ... -- www.macfh.co.uk/MacFH.html > >... > >[bpw][0-9][a-z0-9]{7,13} > >... would probably do the job. > > > The BBC version James Scholes gave seems to be much wider. > Does {8,} mean > at least 8 with no upper limit? Yes, but in practice

Re: New radio PIDs, more than 8 characters

2017-08-14 Thread RS
From: C E Macfarlane Sent: Sunday, August 13, 2017 20:54 ... [bpw][0-9][a-z0-9]{7,13} ... would probably do the job. The BBC version James Scholes gave seems to be much wider. Does {8,} mean at least 8 with no upper limit? ___ get_iplayer mai

RE: New radio PIDs, more than 8 characters - "solved"

2017-08-14 Thread C E Macfarlane
More about regular expressions and programming follows, which those with no or little interest in either can safely ignore ... -- www.macfh.co.uk/MacFH.html > > I think what Charles was meaning is that if you were using > --url "http://www.bbc.co.uk/programmes/b08xy0gl"; rather than >

Re: New radio PIDs, more than 8 characters - "solved"

2017-08-14 Thread Ralph Corderoy
Hi M, > I'm horrified by the code repetition. Doesn't Perl allow 'functions'? Yes, that's those sub foo { ... } you see. It can also hold a regexp in a variable so a `$pid_regexp' could be defined once and used repeatedly. $ perl -e ' > $re = qr/^(food|drink|famin

Re: New radio PIDs, more than 8 characters - "solved"

2017-08-14 Thread M Clark
Aside from tellyaddict's caveat (others welcome); snip > I think what Charles was meaning is that if you were using --url > "http://www.bbc.co.uk/programmes/b08xy0gl"; rather than a direct PID then the > code is looking for something starting with either b, p or w followed by > between 7 and 14

Re: New radio PIDs, more than 8 characters

2017-08-14 Thread RS
From: Vangelis forthnet Sent: Monday, August 14, 2017 03:45 The Al Gore one is now p05c2b9j (snip) The changes may be temporary. ... Yes and no... If you browse to: http://www.bbc.co.uk/programmes/p016tl04/episodes/player you'll see there exist two distinct entries for "Former US Vice P

Re: New radio PIDs

2017-08-14 Thread Ralph Corderoy
Hi Vangelis, > On Sun Aug 13 19:51:22 BST 2017, James Scholes wrote: > > ^[0-9b-df-hj-np-tv-z]{8,}$ Very useful, though I'm surprised they dropped the vowels but left in `y'. Having an alleged PID and checking it's syntactically correct, i.e. matches the regexp, is distinct from hunting for a p

Re: New radio PIDs, more than 8 characters

2017-08-14 Thread tellyaddict
> > But there is a potential problem with [a-z0-9] > > because it would pick out many normal English words, > > for example, ironically, 'programmes' and 'programming'. > > Again, forgive me for being obtuse, still learning things, > but isn't that scenario assuming one actually inputs > > -

Re: New radio PIDs, more than 8 characters

2017-08-13 Thread Vangelis forthnet
On Sun Aug 13 18:28:42 BST 2017, RS wrote: The Al Gore one is now p05c2b9j (snip) The changes may be temporary. ... Yes and no... If you browse to: http://www.bbc.co.uk/programmes/p016tl04/episodes/player you'll see there exist two distinct entries for "Former US Vice President Al Gore o

Re: New radio PIDs

2017-08-13 Thread Vangelis forthnet
On Sun Aug 13 10:05:39 BST 2017, Ralph Corderoy wrote: ^(?:[bp]0|w3)[a-z0-9]{6}$ Cheers Ralph, your coding skills are always welcome in this list! :-) I was about to say that the above assumes that ordinary PIDs will continue to begin with "(b|p)0" and that "new" WSR ones will always begin

RE: Fw: Re: New radio PIDs, more than 8 characters

2017-08-13 Thread C E Macfarlane
See reply ... -- www.macfh.co.uk/MacFH.html > Would I be right in saying that amending Vangelis' suggestion to: > [bpw][a-z0-9]{14} > would pick up 15 character PIDs as well as anything shorter? Firstly it would have to be ... {8,14}, otherwise shorter ones wo

Re: New radio PIDs

2017-08-13 Thread James Scholes
The definitive source for a correct PID regexp is probably the BBC themselves, and it just so happens that they provide one: https://github.com/bbc/programmes-pages-service/blob/master/src/Domain/ValueObject/Pid.php#l14 ^[0-9b-df-hj-np-tv-z]{8,}$ HTH. -- James Scholes http://twitter.com/JamesS

Re: Fw: Re: New radio PIDs, more than 8 characters

2017-08-13 Thread Alan Milewczyk
On 13/08/2017 17:44, M Clark wrote: Thanks for coding help but, the problem is worse (for me...), PID w172vg029mkl852 Business Matters - Former US Vice President Al Gore on Climate Change (w172vg029mkl852) So not even 8 characters. Other World Service Series (?) have similar PIDs now, e.g. We

Re: New radio PIDs, more than 8 characters

2017-08-13 Thread RS
From: Ralph Corderoy Sent: Sunday, August 13, 2017 17:54 Thanks for coding help but, the problem is worse (for me...), PID w172vg029mkl852 Business Matters - Former US Vice President Al Gore Climate Change (w172vg029mkl852) The Al Gore one is now p05c2b9j The podcast is p05c2b9b The podcast

Re: New radio PIDs, more than 8 characters

2017-08-13 Thread Ralph Corderoy
Hi M, > > ^(?:[bp]0|w3)[a-z0-9]{6}$ > > Thanks for coding help but, the problem is worse (for me...), PID > w172vg029mkl852 Business Matters - Former US Vice President Al Gore on > Climate Change (w172vg029mkl852) More samples would allow the regexp to reject invalid ones, but perhaps ^(?:[b

Fw: Re: New radio PIDs, more than 8 characters

2017-08-13 Thread M Clark
was the only one who listened to WS! M. > Sent: Sunday, August 13, 2017 at 10:05 AM > From: "Ralph Corderoy" > To: get_iplayer@lists.infradead.org > Subject: Re: New radio PIDs > > Hi Vangelis, > > > ...to begin with either "b0" or "p0&quo

Re: New radio PIDs

2017-08-13 Thread Ralph Corderoy
Hi Vangelis, > ...to begin with either "b0" or "p0". > > New radio PIDs like "w3csv1y9" or "w3csvnyc", beginning with "w3", ... > [bp]0[a-z0-9]{6} > with > [bpw][a-z0-9]{7} Other approaches, getting gradually more spec

New radio PIDs

2017-08-12 Thread Vangelis forthnet
On Sun, Aug 13th 2017, Support Forum member "cje768" wrote: https://squarepenguin.co.uk/forums/thread-1476-post-6567.html#pid6567 As things stand, GiP expects every valid 8-character alphanumeric PID string to begin with either "b0" or "p0". New radio PID