LineupProposal2

From XMLTV
Revision as of 20:57, 17 August 2009 by Benb (Talk | contribs) (Document structure)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

During setup of a TV (recording) system, it is not only necessary to find channels by a channel scan, but also to properly name and sort the channels, and to assign the RCF2838-IDs, which associate the station to schedule information from XMLTV.

We separate the problem into two parts:

  1. Identify a channel (which we found during scan) as a certain station (by its RFC2838 ID).
  2. Get metadata about a station, like long and short display names, logo, and the default preset number.

Definition

File structure

<lineup>
  <stations>
    <station rfc2838id="zdf.de">
      <long-name>ZDF</long-name>
      ...
    </station>
    <station rfc2838id="1.bbc.co.uk">
     ...
    </station>
    ...
  </stations>
  <channels>
    <dvb-channel rfc2838id="zdf.de">
      <dvb-id network="1" service="28006" transport="1079"/>
      ...
    </dvb-channel>
    ...
    <analog-channel rfc2838id="1.bbc.co.uk">
      <cni tt-8-30-1="0x447F" />
    </analog-channel>
    ...
  </channels>
</lineup>

Stations

<station rfc2838id="zdf.de">
  <long-name>ZDF</long-name>
  <short-name>ZDF</short-name>
  <preset>2</preset>
  <logo url="zdf.gif"/>
  <group>oeff-rechtl</group>
  <commercial-free>true</commercial-free>
</station>

DVB Channels

<dvb-channel rfc2838id="zdf.de">
  <dvb-name provider="ZDFvision" service="ZDF"/>
  <dvb-id network="1" service="28006" transport="1079"/>
  <encrypted>false</encrypted>
</dvb-channel>

Analog channels

Analog US

<analog-channel rfc2838id="1.bbc.co.uk">
  <callsign>BBC1</callsign>
  <frequency number="E51" system="NTSC-M" />
</analog-channel> 

Analog EU

<analog-channel rfc2838id="1.bbc.co.uk">
  <cni tt-8-30-1="0x447F" />
</analog-channel>