Streams in mpv can be played properly now (thanks happy)
This commit is contained in:
parent
c90ae06d85
commit
dc73c3a657
@ -275,7 +275,10 @@ class SyncplayClient(object):
|
|||||||
def updateFile(self, filename, duration, path):
|
def updateFile(self, filename, duration, path):
|
||||||
if not path:
|
if not path:
|
||||||
return
|
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.userlist.currentUser.setFile(filename, duration, size)
|
||||||
self.sendFile()
|
self.sendFile()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user