Streams in mpv can be played properly now (thanks happy)

This commit is contained in:
Uriziel 2013-03-08 00:30:27 +01:00
parent c90ae06d85
commit dc73c3a657

View File

@ -275,7 +275,10 @@ class SyncplayClient(object):
def updateFile(self, filename, duration, path):
if not path:
return
size = os.path.getsize(path)
try:
size = os.path.getsize(path)
except OSError: #file not accessible (stream?)
size = 0
self.userlist.currentUser.setFile(filename, duration, size)
self.sendFile()