Commit 5ec5cfc0 authored by fred's avatar fred

ignore jingles with unknown duration

parent d5ce506e
......@@ -223,7 +223,7 @@ class ScheduledDiffusion(models.Model):
if self.is_stream():
return self.diffusion.end_datetime
dt = self.diffusion.datetime
if self.jingle:
if self.jingle and self.jingle.duration:
dt += self.jingle.duration
dt += datetime.timedelta(seconds=self.soundfile.duration)
return dt
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment