mirror of
https://github.com/nwithan8/plex-prerolls
synced 2024-08-30 16:52:17 +00:00
- Fix bug where always getting disabled by non-active schedules
This commit is contained in:
parent
bf2e61ce40
commit
85ef1232d8
@ -115,9 +115,13 @@ class ScheduleManager:
|
||||
def all_schedules_except_always(self) -> List[ScheduleEntry]:
|
||||
return self.weekly_schedules + self.monthly_schedules + self.date_range_schedules
|
||||
|
||||
@property
|
||||
def all_valid_schedule_except_always(self) -> List[ScheduleEntry]:
|
||||
return [schedule for schedule in self.all_schedules_except_always if schedule.should_be_used]
|
||||
|
||||
@property
|
||||
def disable_always(self) -> bool:
|
||||
return any([schedule.disable_always for schedule in self.all_schedules_except_always])
|
||||
return any([schedule.disable_always for schedule in self.all_valid_schedule_except_always])
|
||||
|
||||
@property
|
||||
def all_schedules(self) -> List[ScheduleEntry]:
|
||||
|
Loading…
Reference in New Issue
Block a user