Cable Forum

Cable Forum (https://www.cableforum.uk/board/index.php)
-   Science & Technology (https://www.cableforum.uk/board/forumdisplay.php?f=26)
-   -   Code behind an EPG (https://www.cableforum.uk/board/showthread.php?t=33561)

friet 15-08-2005 10:56

Code behind an EPG
 
Hi, does someone has an example on the code behind an EPG? From what I'm reading it should look a bit like HTML, but I can't find an example.

MikeyB 15-08-2005 11:25

Re: Code behind an EPG
 
Hi friet,

Depends what you mean really.
If you want an EPG for a website, then yes, you would use HTML (at least the end result would be HTML)

Something like this for example:
PHP Code:

<table>
  <
tbody>
    <
tr>
      <
td>Channel</td>
      <
td>8PM</td>
      <
td>9PM</td>
      <
td>10PM</td>
      <
td>11PM</td>
      <
td>12AM</td>
    </
tr>
    <
tr>
      <
td>BBC1</td>
      <
td>Something to watch</td>
      <
td>Something else</td>
      <
td>The News</td>
      <
td>A programme</td>
      <
td>A film</td>
    </
tr>
    <
tr>
      <
td>BBC2</td>
      <
td>Programme A</td>
      <
td>Programme B</td>
      <
td>Programme C</td>
      <
td>Programme D</td>
      <
td>Programme E</td>
    </
tr>
    <
tr>
      <
td>ITV1</td>
      <
td>Programme F</td>
      <
td>Programme G</td>
      <
td>Programme H</td>
      <
td>Programme I</td>
      <
td>Programme J</td>
    </
tr>
    <
tr>
      <
td>C4</td>
      <
td>Programme K</td>
      <
td>Programme L</td>
      <
td>Programme M</td>
      <
td>Programme N</td>
      <
td>Programme O</td>
    </
tr>
    <
tr>
      <
td>C5</td>
      <
td>Programme P</td>
      <
td>Programme Q</td>
      <
td>Programme R</td>
      <
td>Programme S</td>
      <
td>Programme T</td>
    </
tr>
  </
tbody>
</
table> 


friet 15-08-2005 11:36

Re: Code behind an EPG
 
I read some things like these and I was looking for some reallife examples:

Code:

  lid://{namespace-id}[/{resource-path}]

    <url> [attr1: val1][attr2:val2]...[attrn:valn][checksum]

  [script:shownews()]


Gareth 15-08-2005 23:57

Re: Code behind an EPG
 
If you were to use xmltv then you would be using, er... xml.

Here's an example, taken from xmltv
Quote:

<tv>
<programme channel="bbc2.bbc.co.uk" start="20010829000500 BST">
<title>The Phil Silvers Show</title>
<desc>
Bilko claims he's had a close encounter with an alien in order
to be given some compassionate leave so he can visit an old
flame in New York.
</desc>
</programme>

<programme channel="channel4.com" start="20010829095500 BST">
<title>King of the Hill</title>
<sub-title>Meet the Propaniacs</sub-title>
<desc>
Bobby tours with a comedy troupe who specialize in
propane-related mirth.
</desc>
<credits>
<actor>Mike Judge</actor>
<actor>Lane Smith</actor>
</credits>
<category>animation</category>
</programme>
</tv>
I know that the Radio Times used to do an EPG that was free for personal use, which was also xml, iirc, but I believe that the Beeb has recently pulled the plug on that one... shame cause apparently it was a very good source of info.


All times are GMT. The time now is 09:40.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum