Skip to content

Commit

Permalink
[autotimer]
Browse files Browse the repository at this point in the history
close #622
  • Loading branch information
jbleyel committed Oct 24, 2023
1 parent 50d974e commit 34d07de
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions autotimer/src/AutoTimer.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,10 +557,15 @@ def parseTimer(self, timer, epgcache, serviceHandler, recordHandler, checkEvtLim
offsetEnd = timer.offset[1]
else:
# Apply E2 Offset
begin -= config.recording.margin_before.value * 60
end += config.recording.margin_after.value * 60
offsetBegin = config.recording.margin_before.value * 60
offsetEnd = config.recording.margin_after.value * 60
marginBefore = config.recording.margin_before.value * 60
marginAfter = config.recording.margin_after.value * 60
if timer.justplay and hasattr(config.recording, "zap_margin_before"):
marginBefore = config.recording.zap_margin_before.value * 60
marginAfter = config.recording.zap_margin_after.value * 60
begin -= marginBefore
end += marginAfter
offsetBegin = marginBefore
offsetEnd = marginAfter

# Overwrite endtime if requested
if timer.justplay and not timer.setEndtime:
Expand Down

0 comments on commit 34d07de

Please sign in to comment.