Bug #5797
open"Automatically map epg source" bug
0%
Description
Hi,
here the steps to reproduce problem:
- I mapped 266 dvb-t channels trough a bouquet (with "auto-map to channel" option enabled). All is ok at this point, epg sources are blank.
- Then i push to external socket (using socat) my XMLTV file 2 times consecutively: first to have epg sources automatically mapped to channels; second to import broadcasts.
- Some epggrab channels are mapped correctly to channels, BUT others are inexplicably NOT mapped to channels; and some are mapped to only one channel when should instead be mapped to more (having same name).
The only way to fix it is mapping again channels (trough disabling and re-enabling bouquet). After this opearation, all epggrab channels are mapped correctly to channels, and i have to socat again xmltv file to import broadcasts of newly mapped channels.
BUT remapping channels is not a route, we lose custom settings made to channels, like custom numbers, custom epg etc.
Look around in the code, i saw "epggrab_channel_autolink()" is called by:
- epggrab_channel_add(), called when channels structure is created or changed (and this seems to work ok)
- epggrab_channel_updated(), calls tre: _xmltv_parse_tv() -> epggrab_channel_end_scan() -> epggrab_channel_updated() -> epggrab_channel_autolink().
So, it seems something is broken or not correct in epggrab_channel_end_scan(), preventing epggrab_channel_updated() to be called.
Any idea?
Files