Fix file generation after new category handling. - tv-lawn - Bitreich TV Lawn
(HTM) git clone git://bitreich.org/tv-lawn git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/tv-lawn
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit 010095afc5ec51d3ed9a51fa8d6757dfc2070acd
(DIR) parent db3ba66dce0ffcc6055fb93e0f680832e4650eb4
(HTM) Author: Christoph Lohmann <20h@r-36.net>
Date: Fri, 26 Dec 2025 18:23:52 +0100
Fix file generation after new category handling.
Diffstat:
M gen-static-tv-lawn.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/gen-static-tv-lawn.py b/gen-static-tv-lawn.py
@@ -131,7 +131,12 @@ def main(args):
for channel in allchannels.keys():
c = allchannels[channel]
if direntry in c:
- for d in c[direntry]:
+ if isinstance(c[direntry], list):
+ direntries = c[direntry]
+ else:
+ direntries = [c[direntry]]
+ print(direntries)
+ for d in direntries:
filename = "%s/%s.gph" % (direntry, clean_filename(d))
if not os.path.exists(filename):
with open(filename, "w") as fd: