summaryrefslogtreecommitdiff
path: root/zdf.py
diff options
context:
space:
mode:
Diffstat (limited to 'zdf.py')
-rwxr-xr-xzdf.py17
1 files changed, 4 insertions, 13 deletions
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], '<foobar>')
- # sys.exit(1)
- # main(sys.argv[1])
- main()
+ # print(zdf("show/mai-think-x-die-show"))