]> git.0d.be Git - django-panik-nonstop.git/commitdiff
use 5 minutes slots for sounds missing durations
authorFrédéric Péters <fpeters@0d.be>
Sat, 21 Mar 2020 12:32:07 +0000 (13:32 +0100)
committerFrédéric Péters <fpeters@0d.be>
Sat, 21 Mar 2020 12:32:07 +0000 (13:32 +0100)
nonstop/utils.py

index 4c1b2b64cc9d0375e9f766f4bb4de9e3b1e0abcd..3ab9c68b7d52cb2aadf49b1d096cb9fa0bafa9a5 100644 (file)
@@ -102,7 +102,7 @@ def add_diffusion(diffusion, **kwargs):
         # get repeated but shouldn't be less or equal than start date or soma would
         # loop the file
         context['end'] = diffusion.datetime + datetime.timedelta(seconds=
-                max(((soundfile.duration or 300) - 180), 60))
+                max(((soundfile.duration or 480) - 180), 60))
 
         if kwargs.get('jingle_id'):
             context['jingle'] = Jingle.objects.get(id=kwargs['jingle_id'])