Project

General

Profile

Actions

Bug #2345

open

XML EPG source and unicoded channel names gives problems

Bug #2345: XML EPG source and unicoded channel names gives problems

Added by Meindert Oldenburger over 11 years ago. Updated about 11 years ago.

Status:
New
Priority:
Normal
Category:
EPG - Grabbers
Target version:
-
Start date:
2014-10-05
Due date:
% Done:

0%

Estimated time:
Found in version:
3.9.1728~ga69cec6
Affected Versions:

Description

The channel: "Omrop Fryslân" shows up like "Omrop Frysl__n" (also on the file system ".hts/tvheadend/epggrab/xmltv/channels")

After selecting this EPG source in "Channel/EPC" it is not remembering it after restart.

I use Webgrab++ to make the xml file.
<channel id="Omrop Fryslân">
<display-name lang="nl">Omrop Fryslân</display-name>
<url>http://www.tvgids.nl&lt;/url>
</channel>


Files

guide.tgz (50.7 KB) guide.tgz Meindert Oldenburger, 2014-10-07 22:10

Updated by Meindert Oldenburger over 11 years ago Actions #1

After restart it seems tvheadend remembers the channel "XMLTV: Omrop Fryslân (Omrop Frysl__n)", but this is not always the case ?!

Updated by Piotr Kuchciak over 11 years ago Actions #2

I also have a problem with no Polish character in EPG. Before update to version 3.9.1733 i have OK polish character.

Updated by Jaroslav Kysela over 11 years ago Actions #3

Please, attach the EPG source file (in a .zip or other compressed format to not change the encoding)..

Updated by Meindert Oldenburger over 11 years ago Actions #4

Did the following to wrap the EPG source file
tar cvfz guide.tgz guide.xml

Updated by Jaroslav Kysela over 11 years ago Actions #5

  • Assignee changed from Adam Sutton to Jaroslav Kysela

Updated by Meindert Oldenburger over 11 years ago Actions #6

Encoding of the guide.xml file: XML 1.0 document, UTF-8 Unicode (with BOM) text

Updated by Daniel Kenzelmann about 11 years ago Actions #7

You should use an ascii name for the "id" attribute without spaces. The actual channel name is specified in the display-name subelement.

See also the xmltv DTD regarding the "channel" element:

[..]
Each channel has one id attribute, which must be unique and should
preferably be in the form suggested by RFC2838 (the 'broadcast'
element of the grammar in that RFC, in other words, a DNS-like name
but without any URI scheme).
[..]

So your file should look something like this (just make sure the id is specified according to RFC2838):

  <channel id="omrop.fryslan">
    <display-name lang="nl">Omrop Fryslân</display-name>
    <url>http://www.tvgids.nl</url>
  </channel>

I am also parsing chinese TV listings without issues, there an example channel entry would be:

<channel id="cctveurope">
 <display-name>CCTV-4 (欧洲)</display-name>
 <display-name>CCTV4</display-name>
</channel>

Actions

Also available in: PDF Atom