1
0
mirror of https://github.com/fHDHR/fHDHR_NextPVR.git synced 2025-12-06 09:16:58 -05:00

repair cache clearing for zap2it

This commit is contained in:
deathbybandaid 2020-10-05 13:23:51 -04:00
parent 3e0e923d9b
commit 3a151054b4

View File

@ -117,6 +117,8 @@ class ZapEPG():
zap_time_window = int(self.config["zap2it"]["timespan"]) * 3600
zap_time = int(zap_time - (zap_time % zap_time_window))
self.remove_stale_cache(zap_time)
# Fetch data in `zap_timespan` chunks.
for i in range(int(7 * 24 / int(self.config["zap2it"]["timespan"]))):
i_time = zap_time + (i * zap_time_window)