From 9e75b5cb4b64e1fe430ce3720dbe3f80988d8435 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Gl=C3=BCpker?= Date: Wed, 1 May 2024 09:57:39 +0200 Subject: Fix linting in zdf.py --- zdf.py | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'zdf.py') diff --git a/zdf.py b/zdf.py index afaf653..3c6d903 100755 --- a/zdf.py +++ b/zdf.py @@ -1,8 +1,7 @@ -import locale import logging from datetime import datetime from urllib.request import Request, urlopen -from xml.dom.minidom import parse, parseString +from xml.dom.minidom import parseString def getText(dom, element): @@ -62,7 +61,6 @@ def zdf(feed): s_desc = getText(show, "description") s_guid = getText(show, "guid") - print("Adding", s_url, s_desc) content.append( { "title": s_title, @@ -84,16 +82,9 @@ def zdf(feed): return None -def main(): +if __name__ == "__main__": + pass # print(zdf("comedy/heute-show")) # print(zdf("comedy/die-anstalt")) # print(zdf("comedy/zdf-magazin-royale")) - print(zdf("show/mai-think-x-die-show")) - - -if __name__ == "__main__": - # if len(sys.argv) != 2: - # print('Usage:', sys.argv[0], '') - # sys.exit(1) - # main(sys.argv[1]) - main() + # print(zdf("show/mai-think-x-die-show")) -- cgit v1.2.3