mirror of
https://github.com/spl0k/supysonic.git
synced 2024-12-22 17:06:17 +00:00
Prevent server error when browsing on tracks that have been deleted
This commit is contained in:
parent
d19886fafa
commit
b20c151765
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user