X-Git-Url: https://diplodocus.org/git/flac-archive/blobdiff_plain/d8b1024f3b57a8619fa0e07029e9205e760a84d7..2f0acc4fa49fbade4c5527d6b509defad16b0007:/flac2mp3 diff --git a/flac2mp3 b/flac2mp3 index 5ebc873..1f97446 100755 --- a/flac2mp3 +++ b/flac2mp3 @@ -153,7 +153,8 @@ class Tags(object): self._global = {} self._tags = {} def __len__(self): - return len(self._tags) + # All files have at least one track. + return max(1, len(self._tags)) def get(self, key, track=None): key = key.upper() try: