NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 225 226 227 228 229 … 433 Next »
Read xmltv.xml directly from WWW ?

Read xmltv.xml directly from WWW ?
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#11
2014-02-14, 10:34 PM
here's three channels of an xmltv.xml file I pulled down with mc2xml:
Code:
    <channel id="I2.28459808.microsoft.com">
        <display-name>2 KCBS</display-name>
        <display-name>2</display-name>
        <display-name>KCBS</display-name>
        <display-name>CBS Affiliate</display-name>
    </channel>
    <channel id="I4.28455445.microsoft.com">
        <display-name>4 KNBC</display-name>
        <display-name>4</display-name>
        <display-name>KNBC</display-name>
        <display-name>NBC Affiliate</display-name>
    </channel>
    <channel id="I5.28460688.microsoft.com">
        <display-name>5 KTLA</display-name>
        <display-name>5</display-name>
        <display-name>KTLA</display-name>
        <display-name>CW Affiliate</display-name>
    </channel>
you just need the channel id string to match whatever's in the program listings; display-name doesn't really matter, you just need one for your reference when mapping (thought I think if it matches the call-sign transmitted by the station then NPVR will be able to auto-map for you)
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#12
2014-02-14, 10:38 PM
I looked at your file, seems to me all you need to add is:
Code:
    <channel id="junior">
        <display-name>junior</display-name>
    </channel>
    <channel id="vlatava">
        <display-name>vlatava</display-name>
    </channel>
and so on for each channel...
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,584
Threads: 384
Joined: Dec 2004
#13
2014-02-14, 11:34 PM
whurlston Wrote:That file does not comply with the xmltv spec.
Not true...
Quote:This is a DTD to represent a TV listing. It doesn't explicitly group
programmes by day or by channel, instead broadcast time and channel
are attributes of the 'programme' element. Optionally, data about the
TV channels used can be stored in 'channel' elements.
The <channel> elements of an xmltv file are for convenience (such as pre-processing) or for containing further information about the channels. Simply using the "channel=" attribute in the <programme> elements without using <channel> elements is valid.
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#14
2014-02-14, 11:40 PM
bgowland Wrote:Not true...The <channel> elements of an xmltv file are for convenience (such as pre-processing) or for containing further information about the channels. Simply using the "channel=" attribute in the <programme> elements without using <channel> elements is valid.
But clearly NPVR needs those <channel> elements for mapping channels (it may not need them for regular EPG updates though). Otherwise it would have to read through the entire xmltv file and note all the unique channels to assemble a channel list, which is clearly not impossible but not how NPVR does it. whether it should be able to do it is another question.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#15
2014-02-14, 11:50 PM
I just checked, and NPVR only needs the <Channel> elements for doing the channel mappings. Once the mapping is done, it doesn't use them for regular EPG updates (and in turn, the xmltv.xml used for mapping doesn't need any <Programme> elements either). So hoborg can just create a single file with all the needed <Channel> definitions, map the channels, and then forget about it until there are any changes.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,584
Threads: 384
Joined: Dec 2004
#16
2014-02-14, 11:51 PM
johnsonx42 Wrote:But clearly NPVR needs those <channel> elements for mapping channels (it may not need them for regular EPG updates though). Otherwise it would have to read through the entire xmltv file and note all the unique channels to assemble a channel list, which is clearly not impossible but not how NPVR does it. whether it should be able to do it is another question.
Agreed - it's an issue with how npvr processes the xmltv file. In some ways however the use of <channel> elements provide unnecessary bloat (well to a small extent anyway) as each time a <programme> element is processed the "channel" attribute has to be handled anyway. It would be just as easy to build a channel list by using a collection with an "add if doesn't exist" mechanism using only <programme> elements and a single pass through the xmltv file.
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#17
2014-02-15, 02:04 AM
bgowland Wrote:Not true...The <channel> elements of an xmltv file are for convenience (such as pre-processing) or for containing further information about the channels. Simply using the "channel=" attribute in the <programme> elements without using <channel> elements is valid.
You're right. Looking at the DTD again, the "id" attribute is required inside a "channel" element but the file can have just programmes (or just channels). Been a while since I messed with xmltv/dtd files.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  NextPVR - EPG Setup - XML/XMLTV EPG - Zap2it & Zap2xml Erdrick 126 141,767 2024-01-29, 01:07 AM
Last Post: stoenjes44
  EPG XMLTV problem DBHall 8 3,807 2021-01-01, 12:34 PM
Last Post: Graham
  xmltv and EPG channel icons HaTaX 5 4,106 2020-10-28, 04:25 AM
Last Post: sub
  EPG displaying small subset of xmltv file. Esteban 9 3,016 2020-07-18, 10:07 PM
Last Post: Esteban
  create my own xmltv with zap2it Brucek2839 23 9,427 2020-04-16, 07:57 AM
Last Post: Brucek2839
  xmltv file donbrew 1 1,799 2019-08-31, 08:01 PM
Last Post: donbrew
  XMLTV list within NextPVR Brucek2839 7 4,412 2019-05-07, 06:27 PM
Last Post: Brucek2839
  Local XMLTV file for IPTV EPG jrockow 29 17,974 2019-04-16, 04:55 PM
Last Post: sub
  Help needed with xmltv from epg123 SpinyGreen 17 5,619 2019-01-12, 06:41 PM
Last Post: snaitaz
  New 4.2.3 update kills http XMLTV sources sbiddle 1 960 2018-11-18, 02:42 AM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode