X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Flib%2Ftrack.py;h=a774a4ceafdceeb7ec7c0c5c57d819c20a35d378;hb=e5ac6da78e3433a1b94676f6523e358d6089f263;hp=4a2e72001b1d44f47d9794afc03f52dda7be884c;hpb=f0912ba70260d43fc4885f6d75c2e83b6fb5a8d1;p=mpd-sima.git diff --git a/sima/lib/track.py b/sima/lib/track.py index 4a2e720..a774a4c 100644 --- a/sima/lib/track.py +++ b/sima/lib/track.py @@ -99,6 +99,8 @@ class Track: return hash(self) != hash(other) def __bool__(self): + if not self._file: + return False return not self._empty @property