Is it a repeat?

dinkypumpkin dinkypumpkin at gmail.com
Sat Jun 29 12:27:48 EDT 2013


On 27/06/2013 19:19, Vangelis forthnet wrote:
> Because the pid switch always invokes a file download, one would have to
> type
>
> -i --fields=pid PID

You can also use the slightly less verbose form:

get_iplayer -i pid:PID

> Or a new --broadcasts switch could be created, like this:
>
> --type=tv --broadcasts=PID
>
> that for example PID=b02xg103 could return (I guess a check of current
> date/time would be needed):
>
> Original broadcast, first shown 201306202200
>
> or Repeated broadcast, first shown 201306202200
>
> if date was after 201306210130(BST).
>
> Is this within the realm of feasibility or totally out of the question?

I'm sure it could be done, but I'm not convinced it should be done.  You 
can already see the first broadcast date with --info (or clicking on the 
episode in Web PVR), so you can already deduce whether or not a 
programme is likely to be a repeat.  By the BBC's own admission, 50%-60% 
of their TV schedule is repeats, so there's an even chance that any 
programme you investigate will be a repeat, anyway.  All the /broadcasts 
page tells you is how many times a programme has been repeated and when 
the repeats were aired.  I'm also instinctively leery of screen scraping 
in general because it can easily be broken if the associated web page 
changes.  If someone wants to implement a --broadcasts switch, that's 
fine, but make sure it robustly handles parsing failures.






More information about the get_iplayer mailing list