Skip to content

Commit

Permalink
[epgrefresh] not call refresh twice
Browse files Browse the repository at this point in the history
Box in Deep standby

EPGRefresh has set time for refresh, f.eg. between 6:30 to 8:30.

EPGRefresh wake up box well, refresh is finished in 7:10, box goes again
in deep standby.

And - when is box manualy wakeup by user in time < 8:30, after wakeup
EPGRefresh starting again
  • Loading branch information
Dima73 authored and littlesat committed Apr 15, 2024
1 parent 9c17e0a commit 104ab3f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions epgrefresh/src/EPGRefreshTimer.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ def setRefreshTimer(self, tocall):
if config.plugins.epgrefresh.lastscan.value < begin and begin < time():
tocall()

if config.plugins.epgrefresh.lastscan.value > begin and begin < time():
begin += 86400

refreshTimer = EPGRefreshTimerEntry(begin, tocall, nocheck=True)

i = 0
Expand Down

0 comments on commit 104ab3f

Please sign in to comment.