dont schedule series episode if already started

This commit is contained in:
MymsMan 2023-11-21 18:09:42 +00:00
parent 27a60a879d
commit 4ab4517635

View File

@ -863,7 +863,7 @@ proc scrid_chg {resv desc lasttime} {
}
}
# Check for missing episoder of a series CRID
# Check for missing episode of a series CRID
proc miss_epsd {resv desc} {
if {$::opts(nounsched) } {
log "-noUnsched - Not checking for missing episodes" 2
@ -888,7 +888,10 @@ proc miss_epsd {resv desc} {
set ocrid [string toupper [$other get event_crid]]
set dother "[clock format $ostart -format {%d/%m/%y %H:%M}] [clock format $odur -format {%H:%M}] === $oname === $ocname"
if {$ostart <= $now} {
log "Already started episode $desc-->$dother" 2
continue
}
if {[string first $ocrid [$resv get szEventToRecord]] >= 0} {
log "Already scheduled episode $desc-->$dother" 2
continue