Browse Source

actually query the data for all 7 days from the ZDF Mediathek

Helmut Pozimski 6 years ago
parent
commit
2228037bd0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib_stov/zdf_mediathek.py

+ 1 - 1
lib_stov/zdf_mediathek.py

@@ -75,7 +75,7 @@ class Connector(object):
             connection = urllib.request.urlopen(
                 "https://zdf-cdn.live.cellular.de/mediathekV2/broadcast-"
                 "missed/%s"
-                % (today-timedelta(days=1)).strftime("%Y-%m-%d"))
+                % (today-timedelta(days=i)).strftime("%Y-%m-%d"))
             data = connection.read().decode("utf-8")
             response = json.loads(data)
             for cluster in response["broadcastCluster"]: