1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-11-09 19:52:16 +00:00

Prevent server error when browsing on tracks that have been deleted

This commit is contained in:
spl0k 2017-11-03 23:12:38 +01:00
parent d19886fafa
commit b20c151765

View File

@ -179,7 +179,7 @@ class Track(object):
'album': self.album.name,
'artist': self.artist.name,
'track': self.number,
'size': os.path.getsize(self.path),
'size': os.path.getsize(self.path) if os.path.isfile(self.path) else -1,
'contentType': self.content_type,
'suffix': self.suffix(),
'duration': self.duration,