summaryrefslogtreecommitdiff
path: root/zdf.py
diff options
context:
space:
mode:
Diffstat (limited to 'zdf.py')
-rwxr-xr-xzdf.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/zdf.py b/zdf.py
index a72e84a..afaf653 100755
--- a/zdf.py
+++ b/zdf.py
@@ -1,8 +1,8 @@
+import locale
import logging
-from urllib.request import urlopen, Request
from datetime import datetime
+from urllib.request import Request, urlopen
from xml.dom.minidom import parse, parseString
-import locale
def getText(dom, element):
@@ -37,13 +37,14 @@ def zdf(feed):
s_url = getText(show, "link")
if not s_url:
continue
- # Full episodes have the ID 100
+
+ # Full episodes have the ID 100 (others aswell sometimes)
if not s_url.endswith("-100.html"):
continue
s_title = getText(show, "title")
- if not s_title.startswith(title):
- continue
+ # if not s_title.startswith(title): # broke vor Maithink X
+ # continue
s_date = getText(show, "pubDate")
s_date_parsed = datetime.strptime(s_date, "%a, %d %b %Y %H:%M:%S %z")
@@ -86,7 +87,8 @@ def zdf(feed):
def main():
# print(zdf("comedy/heute-show"))
# print(zdf("comedy/die-anstalt"))
- print(zdf("comedy/zdf-magazin-royale"))
+ # print(zdf("comedy/zdf-magazin-royale"))
+ print(zdf("show/mai-think-x-die-show"))
if __name__ == "__main__":