]> git.0d.be Git - django-panik-nonstop.git/commitdiff
consider tracks from new tracks directory when looking for what's on air
authorFrédéric Péters <fpeters@0d.be>
Thu, 5 Oct 2017 12:11:42 +0000 (14:11 +0200)
committerFrédéric Péters <fpeters@0d.be>
Thu, 5 Oct 2017 12:11:42 +0000 (14:11 +0200)
nonstop/utils.py

index 25acddd66ce63780bbe3436bd48f24ae34da354f..64d9c7b93980be3593eab4bb70e415edea884e7e 100644 (file)
@@ -17,7 +17,8 @@ def get_current_nonstop_track():
         return {}
     d = {}
     current_nonstop_file = soma_log_line.filepath
-    if not 'Tranches/' in current_nonstop_file.filepath:
+    if not 'Tranches/' in current_nonstop_file.filepath or (
+            not 'tracks/' in current_nonstop_file.filepath):
         # nonstop is playing but it's not a nonstop track :/
         return {}
     current_track = soma_log_line.filepath.track