From 9575ce1b921540bc08bac8407d1cbb850152933b Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Thu, 29 Feb 2024 10:12:46 -0500 Subject: [PATCH] xmltv: fix end time in xmltv output --- src/dlhdhr/epg/program.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dlhdhr/epg/program.py b/src/dlhdhr/epg/program.py index 39b1563..1c51573 100644 --- a/src/dlhdhr/epg/program.py +++ b/src/dlhdhr/epg/program.py @@ -31,7 +31,7 @@ class Program: def to_xmltv(self, channel: DLHDChannel) -> Element | None: start_time = self.start_time.strftime("%Y%m%d%H%M%S %z") - end_time = self.start_time.strftime("%Y%m%d%H%M%S %z") + end_time = self.end_time.strftime("%Y%m%d%H%M%S %z") programme = Element("programme", attrib={"start": start_time, "stop": end_time, "channel": str(channel.number)}) if self.title: