No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Resolve a crid


See Project Baird (spec: for an 
explanation. It currently works only for BBC content, and in some cases 
only for the West regional variations. It's not yet complete with 
respect to the specification. You can find crids from newer versions of 
MythTV (programid in the program table). They are not the same as the 
crids in the BBC backstage data

Example queries using curl are below.


    * Only today's data is available
    * Duration is not implemented
    * BBC-related channels only
    * Regional variations are for the West
    * There are probably a bunch of bugs

Examples using Curl


If a url that's a crid is present, just go ahead and look up that, 
resolve to /programmes version.

curl "\[\]=crid://"

if you don't set the format using the accept header or fmt=rdf it 
resolves to the html version of the page, which itself is then resolved 
by the /programmes site to the Episode (rather than the Version) - you 
could equally use:

curl -H 'Accept: application/rdf+xml'

The same but following the redirect

curl -L "\[\]=crid://"

Result: 301,

Dvb urls

If there's no crid, if there's a dvb url in the query, look up that, 
resolve to programmes

These follow the format: 

curl "\[\]=dvb://233a.1041.1041;cde9~20100825T233500Z--PT00H05M00S&fmt=rdf"

Result: 301,

Host and start time

If there's no dvb url and if the host header is present and matches the 
TVDNS format, and start is available as a parameter, resolve to 

curl -H "Host:" ""

Similarly, a transmisisonTime can be set, including defauling to now:

curl -H "Host:" ""

Eventid and Serviceid

If crid, dvb urls and start are not available, but eventid and serviceid 
are both present as parameters, resolve to programmes

curl ""

Result: 301,
No Redirect

If you don't want it to redirect use noredirect=true as a parameter:

curl "\[\]=crid://"

Programmes and Pips

These do not resolve, but just return the crid and dvb urls if 
available. Note that both versions and episodes will resolve.

Example of a working version programmes url

curl "\[\]="

Example of a working programme Episode url

curl "\[\]="

Example of a tag url

curl "\[\],2008:PIPS:b00tk8lm"