diff options
Diffstat (limited to 'epg.lua')
| -rw-r--r-- | epg.lua | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -66,4 +66,17 @@ function mt:scheduled_programme(ch, time) end end +function mt:next_programme(ch, time) + local progs = self.channels[ch] + if not progs then + return + end + + for _, v in ipairs(progs) do + if v.start > time then + return v + end + end +end + return epg |
