Project

General

Profile

Bug #2345

XML EPG source and unicoded channel names gives problems

Added by Meindert Oldenburger about 7 years ago. Updated over 6 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

History

#1

Updated by Meindert Oldenburger about 7 years ago

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

#2

Updated by Piotr Kuchciak about 7 years ago

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

#3

Updated by Jaroslav Kysela about 7 years ago

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

#4

Updated by Meindert Oldenburger about 7 years ago

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

#5

Updated by Jaroslav Kysela almost 7 years ago

  • Assignee changed from Adam Sutton to Jaroslav Kysela
#6

Updated by Meindert Oldenburger almost 7 years ago

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

#7

Updated by Daniel Kenzelmann over 6 years ago

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>

Also available in: Atom PDF