]> git.0d.be Git - django-panik-nonstop.git/commitdiff
ignore "on air" information when getting nonstop track
authorFrédéric Péters <fpeters@0d.be>
Mon, 18 Jan 2021 15:24:31 +0000 (16:24 +0100)
committerFrédéric Péters <fpeters@0d.be>
Mon, 18 Jan 2021 15:24:31 +0000 (16:24 +0100)
nonstop/utils.py

index 97c95ae42d830ed6898d75f3796cc36f2e8baec9..3f132ef88889a974a690e8dd61a1a51fd1105de1 100644 (file)
@@ -27,9 +27,6 @@ def get_current_nonstop_track():
     if soma_log_line.play_timestamp < (datetime.datetime.now() - datetime.timedelta(hours=1)):
         # last known line is way too old
         return {}
-    if not soma_log_line.on_air:
-        # nonstop should be on air but it's not :/
-        return {}
     d = {}
     current_nonstop_file = soma_log_line.filepath
     if current_nonstop_file: