Problem downloading 'shetland'

Owen Randle ortek000 at gmail.com
Fri Nov 13 21:05:49 PST 2026


On Fri, 13 Nov 2026 at 18:37, Jimmy Aitken <jimmy.aitken at gmail.com> wrote:
>
> Anyone else get this:
>
> % get_iplayer shetland: -g
>
> Matches:
> 6596: tv, Shetland: Series 11 - Episode 1, BBC One, m003445v
> INFO: 1 matching programmes
>
> WARNING: A UK TV licence is required to access BBC iPlayer TV content legally
> INFO: Processing tv: 'Shetland: Series 11 - Episode 1 (m003445v)'
> Illegal division by zero at
> /usr/local/get_iplayer/perl/bin/get_iplayer line 6256.
>
> No other programs seem to have issues, as I found out after debugging
> when I thought it was a dependency issue for a couple of hours.....
>
> J.
>
> _______________________________________________
> get_iplayer mailing list
> get_iplayer at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/get_iplayer


Yes, I've also recently been experiencing this error with a few programmes
- e.g. the 'Shift the Thrift' series, where most episodes give the
exact same error
(even when trying to direct download using the pid, so a permanent
issue with those, - And irrespective of any specified tvquality or
output folder etc.)

All of these episodes (< 30days since last shown) listed by
get_iplayer, produce this divide-by-0 error::
    Shift the Thrift: Series 1 - Chepstow, BBC One, m002v3hg
    Shift the Thrift: Series 1 - Harrogate, BBC One, m002v3j3
    Shift the Thrift: Series 1 - Abergavenny, BBC One, m002v3kr
    Shift the Thrift: Series 1 - Eastbourne, BBC One, m002v3lg

Although this one episode   (< 30days since last shown)  does download
OK (so not quite-all episodes for this programme, produce the error)
    Shift the Thrift: Series 1 - Aberystwyth, BBC One, m002v3gq

So I presume there is something in some of these programme's episodes
metadata (maybe recently being changed by the BBC, if not seen before)
that is upsetting get_iplayer's script?
(Although you shouldn't really get fatal Illegal division by zero
errors from code, as proper defensive-programming should ensure these
conditions are trapped - Maybe just give a warning message about any
invalid metadata fields that could be producing this error)

The problematic episodes listed above do all play OK directly on the
BBC iplayer website - where these are all available for the next
4months.
(Although when the BBC recently temporarily took-down some of its
schedules / programmes webpages, to resolve PHP security issues, you
could still watch them via TV guide on iplayer, but get_iplayer
refused to download these, even via pid, if schedules etc content was
missing rather than being able to fall-back to some defaults / get
metadata from elsewhere on the BBC website)

Owen



More information about the get_iplayer mailing list