XMLTV (NZ) channels with one character names not importing?
Added by Spencer Roff over 12 years ago
I'm using Build: 2.99.13.gcfa65
For XMLTV i grab the DVB-T stream using mheg5grab.sh to grab the data and mheg2xmltv-0.3.5 to generate a file freeview.xml.
To import freeview.xml into tvheadend (configured to ignore EIT data) i use a custom tv_grab_nz grabber that cats the freeview.xml file, this works fine for all the channels except one which has a one character title in the xml file.
The channel in question is "U"
************************<tv date="20120423040004 +1200" generator-info-name="mheg2xmltv"
source-info-name="DVB-T MHEG Stream">
<channel id="tv1.freeviewnz.tv">
<display-name>TV ONE</display-name>
<icon src="http://www.freeviewnz.tv/images/uploads/tv_one.jpg" />
</channel>
<channel id="tv2.freeviewnz.tv">
<display-name>TV2</display-name>
<icon src="http://www.freeviewnz.tv/images/uploads/tv_2.jpg" />
</channel>
<channel id="u.freeviewnz.tv">
<display-name>U</display-name>
<icon src="http://www.freeviewnz.tv/images/uploads/u-black.gif" />
</channel>*
<channel id="tvnz7.freeviewnz.tv">
<display-name>TVNZ 7</display-name>
<icon src="http://www.freeviewnz.tv/images/uploads/tvnz_7.jpg" />
</channel>
<channel id="tv3.freeviewnz.tv">
<display-name>TV3</display-name>
<icon src="http://www.freeviewnz.tv/images/uploads/tv_3.jpg" />
</channel>
<channel id="four.freeviewnz.tv">
<display-name>FOUR</display-name>
<icon src="http://www.freeviewnz.tv/images/uploads/stratos_502_x50.gif" />
</channel>
<channel id="tv3-plus1.freeviewnz.tv">
<display-name>TV3Plus1</display-name>
<icon src="http://www.freeviewnz.tv/images/uploads/freeview_3plus1_logo_107x35.jpg" />
</channel>
<channel id="c4.freeviewnz.tv">
<display-name>C4</display-name>
<icon src="http://www.freeviewnz.tv/images/uploads/logo-opg-c4-red.png" />
</channel>
In Tvheadend the XMLTV source will not list "U" as an option to assign to the channel, if i edit the xml file and change the line
<display-name>U</display-name>
to
<display-name>U2</display-name>
Run tv_grab_nz and then go back to the channel configuration i can now assign XMLTV source as U2 to channel U
It appears that tvheadend is ignoring one characther channel display names in the xmltv file.
freeview.xml (1.37 MB) freeview.xml | freeview.xml | ||
tv_grab_nz (223 Bytes) tv_grab_nz | tv_grab_nz |
Replies (2)
RE: XMLTV (NZ) channels with one character names not importing? - Added by Richard Leckinger about 12 years ago
Spencer, I've done a long form description (comment 7) of how I got the xmltv working for my NZ Freeview PVR here:
https://www.lonelycoder.com/redmine/boards/12/topics/1664?r=6053
It's not having any problem importing channel 'U'.
Try this idea below before using my whole methodology and you might be sweet. Sometimes switching from EIT to xmltv won't let the EPG database get updated properly.
I used the suggestion from this tvheadend wiki thread:
https://www.lonelycoder.com/redmine/boards/5/topics/5937?r=5971#message-5971
..and killed off the existing EPG database and restarted tvheadend, and all was well.
"So, I stopped tvheadend, deleted /home/hts/.hts/tvheadend/epgdb.v2 (the EPG database file), and re-started the daemon again..."
I had to do this after turning of my EIT in order for the xmltv data to populate the EPG.
RE: XMLTV (NZ) channels with one character names not importing? - Added by Adam Sutton about 12 years ago
The original post relates to bugs in the code that were fixed a long time ago, the XML parser only (mistakenly) allowed strings >1 char.
Adam