https://bugs.kde.org/show_bug.cgi?id=405278

--- Comment #10 from Mauro Carvalho Chehab <mchehab+sams...@kernel.org> ---
(In reply to Mauro Carvalho Chehab from comment #7)
> (In reply to higuita from comment #6)

> > many are the same, but most of then have little differences, that are enough
> > to break the parser :)
> > Some have H instead of HD, others drop the SD, others simplify the name
> > (RADICAL -> R or Food Network -> TFN ), others change case (SkyNews -> SKY
> > News)
> > 
> > I pulled the git and tested, it worked on the names that match (23 from 62
> > channels i have available in my local DVB-T)
> 
> Well, as xmltv format allows multiple display names, IMHO, the right fix
> would be to address those at the parser. There's one thing feature in
> Kaffeine's implementation, though: right now, it will associate just one
> channel to the EPG data. So, on a channel with both "SD" and "HD", it will
> fill EPG just for the first one.

Btw, no need to even modify the parser. A simple script using xmlstarlet would
be able to add new channel associations.

For example, to associate a DVB channel named "DVB_CHANNEL" to a xmltv channel
named "xmltv.channel.pt", this would do the job:

   channel="xmltv.channel.pt"
   name="DVB_CHANNEL"
   xmlstarlet ed -s "tv/channel[@id='$channel']" -t elem -n display-name -v
"$name" vodafone_pt.xmltv > output.xml

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to