Fixed programme start/end time.

This commit is contained in:
Yuuki 2025-01-02 21:38:24 +09:00
parent 652e942442
commit 79c63feed0

View file

@ -31,7 +31,7 @@ class XMLTV:
def add_programme(self, channel, title, desc, start, stop, category, attr, icon):
# TODO: add `duo` attribute (bilingual)
programme = '<programme start="{} +0000" stop="{} +0000" channel="{}">'.format(start, stop, channel)
programme = '<programme start="{} +0900" stop="{} +0900" channel="{}">'.format(start, stop, channel)
programme += '<title>{}</title>'.format(title)
programme += '<desc>{}</desc>'.format(desc)
programme += '<category lang="ja">{}</category>'.format(category)