1 parent ac3217e commit e7e1e0bCopy full SHA for e7e1e0b
1 file changed
epg_scraper.py
@@ -33,7 +33,7 @@ def convert_to_xmltv(epg_data, channel_name, icon_url=None, lang="de"):
33
for program in programs:
34
start_time = datetime.strptime(date + " " + program['ora'], "%Y-%m-%d %H:%M").replace(tzinfo=ZoneInfo("Europe/Rome"))
35
duration_minutes = int(program['durata'])
36
- stop_time = start_time + timedelta(minutes=duration_minutes)
+ stop_time = start_time + timedelta(seconds=duration_minutes)
37
38
programme = SubElement(tv, "programme", start=start_time.strftime("%Y%m%d%H%M%S %z"),
39
stop=stop_time.strftime("%Y%m%d%H%M%S %z"), channel=channel_name)
0 commit comments