diff --git a/src/models.py b/src/models.py index dac256839d6c9045f8e942a8d7c54222fe8a18f4..42b7a2c031cd52636125302ab9cd8ef2d5a6b6b7 100644 --- a/src/models.py +++ b/src/models.py @@ -122,7 +122,7 @@ class PlayLog(db.Model): if track: # Station fallback may not provide a duration. Take this one, it's better than nothing. - if track.track_duration == 0: + if track.track_duration == 0 or not track.track_duration: return track # Preferably only get playlogs which are known for still being on air