Programme info from PID

John G. Dargie john.g.dargie at btinternet.com
Mon Feb 14 04:50:31 EST 2011


Just after I posted I realised your issue was about the future broadcast dates!
(My response was more about getting info from a pid, without downloading).

I'm not claiming this is the most elegant of code, but as a proof of concept this takes uses the "web:" entry from --info and then finds the html showing the broadcast dates.

get_iplayer --type=radio --pid=b00yhv30 --test -i | grep web: | sed -e 's/^web: *//'|xargs curl -silent | sed -n -e '/<div id="broadcasts">/,/^ *<\/div>/p'|grep '<div class="date">'

However that's only using get_iplayer to show the web address.  If the web address is consistent in the same format you could equally use:

curl --silent http://www.bbc.co.uk/programmes/b00yhv30.html | sed -n -e '/<div id="broadcasts">/,/^ *<\/div>/p'|grep '<div class="date">'

John.


On 14 Feb 2011, at 09:38, Bill Lancaster wrote:

> Thanks Ian (Ian Trimnell <iantrimnell at gmail.com>).
> 
> I can get the index reference from the PID and then as you suggest
> --info etc
> 
> Thanks again
> 
> Bill Lancaster
> 
> P.S. Still haven't got the hang of this list.  Hope this continues the
> thread
> 
> 
> _______________________________________________
> get_iplayer mailing list
> get_iplayer at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/get_iplayer




More information about the get_iplayer mailing list