From: Frédéric Péters Date: Thu, 5 Oct 2017 12:11:42 +0000 (+0200) Subject: consider tracks from new tracks directory when looking for what's on air X-Git-Tag: v2021~306 X-Git-Url: https://git.0d.be/?p=django-panik-nonstop.git;a=commitdiff_plain;h=ebc75034f3223a80a7463632ac50efe07a1ecff6 consider tracks from new tracks directory when looking for what's on air --- diff --git a/nonstop/utils.py b/nonstop/utils.py index 25acddd..64d9c7b 100644 --- a/nonstop/utils.py +++ b/nonstop/utils.py @@ -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