Strict_Time Commercial Fix

Users pointed out that there was an issue where the strict_time entries were still creating 24 hr sets of commercials.  This issue has been fixed; if there is an issue of overlap with strict time, no commercials will be played as expected.
This commit is contained in:
mutto233
2018-07-15 23:31:22 -04:00
parent 27f4cbef9b
commit 77ddb7f998
2 changed files with 6 additions and 4 deletions

View File

@@ -719,7 +719,8 @@ class PseudoChannel():
if self.USING_COMMERCIAL_INJECTION:
list_of_commercials = self.commercials.get_commercials_to_place_between_media(
previous_episode,
entry
entry,
entry.is_strict_time.lower()
)
for commercial in list_of_commercials:
self.db.add_media_to_daily_schedule(commercial)
@@ -746,7 +747,8 @@ class PseudoChannel():
if self.USING_COMMERCIAL_INJECTION:
list_of_commercials = self.commercials.get_commercials_to_place_between_media(
previous_episode,
entry
entry,
entry.is_strict_time.lower()
)
for commercial in list_of_commercials:
self.db.add_media_to_daily_schedule(commercial)