Project

General

Profile

XMLTV: not all channels available to grab are in the dropdown menu to chose.

Added by Michael Neurohr over 11 years ago

Hi!
After configuration of tv_grab_eu_epgdata I got 56 channels into the folder .hts/tvheadend/epggrab/xmltv/channels .
But with this grapper I should get around 200 channels. Where is the rest, and how can I make the appear in that folder?

Before I configured the tv_grab_eu_epgdata I tried tv_grab_eu_egon. And it looks like tvh did not recognise that I switched the grabber.

The configuration of tv_grab_eu_epgdata worked fine.

So what can I do, to have all available channels in the dropdown list of Configuration -> Channel/EPG -> Channels -> EPG Grab source?

Regards,
Michael


Replies (3)

RE: XMLTV: not all channels available to grab are in the dropdown menu to chose. - Added by Michael Neurohr over 11 years ago

Maybe I've not aksed my question reasonable. I'll try it again.

I have configured the grabber "tv_grab_eu_epgdata". This one gave me more than 200 channels. I chose all of them. This action created the following new files:
  • /home/hts/.xmltv/tv_grab_eu_epgdata.conf
  • /home/hts/.xmltv/supplement/tv_grab_eu_epgdata/channel_ids
  • /home/hts/.xmltv/supplement/tv_grab_eu_epgdata/channel_ids.meta

The file channel_ids contains all the necessary infos to tell Tvheadend which epgdata info can be linked with which channel.
Example of the file:

694;sixx.de;Sixx (Sixx)
71;ard.de;Das Erste (Das Erste)
37;zdf.de;ZDF (ZDF)
38;rtl.de;RTL (RTL Television|RTL Austria|RTL HH SH)
39;sat1.de;Sat.1 (SAT.1)

The interesting thing is, that in the drop down menu in Configuration -> Channel/EPG -> Channels -> EPG Grab source I can find only about 50 of the 200 channels that are listed in the file channel_ids and are available by the grabber.

What can I do, to have all of the channels available in the drop down menu?

Michael

RE: XMLTV: not all channels available to grab are in the dropdown menu to chose. - Added by Alfred Gaucho over 11 years ago

I am having the exact same problem. Is there any update on this? Have you found a fix for this?

Alf

RE: XMLTV: not all channels available to grab are in the dropdown menu to chose. - Added by Alfred Gaucho over 11 years ago

I have found a fix for it here: http://sourceforge.net/p/xmltv/feature-requests/101/#8467 I had a different error code, but it fixed it anyway, I have now (almost) all channels. From the site:

look at the tv_grab_eu_epgdata script how they parse the channels to the display name:

line 590-592:

  1. FIXME: not sure if this is correct.
  2. Maybe we should just return if we don't know the channel id
    }
    my $name1 = decode_entities($sendung->first_child('ch11')->text);
    my $name2 = decode_entities($sendung->first_child('ch0')->text);
    my $name3 = decode_entities($sendung->first_child('ch1')->text);
    foreach my $channel (@{$conf->{channel}}) {
    if($channel eq $chanid) {
    my %ch = (id => $chanid, 'display-name' => [ [$name1], [$name2], [$name3] ]);
    $writer->write_channel(\%ch);
    }
    }

some of my channels have no ch11 element -> thats the reason.

so i changed it to:

my $name1 = decode_entities($sendung->first_child('ch0')->text);
my $name2 = decode_entities($sendung->first_child('ch0')->text);
my $name3 = decode_entities($sendung->first_child('ch0')->text);

Perhaps it is also possible to remove the attributes name2, name3 from the array:

and tada

    (1-3/3)