Преглед на файлове

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

Helmut Pozimski преди 6 години
родител
ревизия
2228037bd0
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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"]: