Bugfix: AddSchedule not replacing DummySchedule in channels
Commit Message
Hi,
since 1.3.39 there's an issue with AddSchedule. If no initial EPG information
is available for a channel, it will be associated with a DummySchedule.
AddSchedule does not replace it when a schedule becomes available later. A
simple fix would be:
AddSchedule is only used by the schedule Read functions, so only file or SVDRP
based EPG imports are affected.
Cheers,
Frank
@@ -1023,6 +1023,9 @@
if (!p) {
p = new cSchedule(ChannelID);
Add(p);
+ cChannel *channel = Channels.GetByChannelID(ChannelID);
+ if (channel)
+ channel->schedule = p;
}
return p;
}