mirror of
https://github.com/spl0k/supysonic.git
synced 2024-11-13 21:52:18 +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,
|
'album': self.album.name,
|
||||||
'artist': self.artist.name,
|
'artist': self.artist.name,
|
||||||
'track': self.number,
|
'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,
|
'contentType': self.content_type,
|
||||||
'suffix': self.suffix(),
|
'suffix': self.suffix(),
|
||||||
'duration': self.duration,
|
'duration': self.duration,
|
||||||
|
Loading…
Reference in New Issue
Block a user