From dc73c3a6572ee07e4e306b2938b59342b4cc609f Mon Sep 17 00:00:00 2001 From: Uriziel Date: Fri, 8 Mar 2013 00:30:27 +0100 Subject: [PATCH] Streams in mpv can be played properly now (thanks happy) --- syncplay/client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/syncplay/client.py b/syncplay/client.py index ec33cb1..538c432 100644 --- a/syncplay/client.py +++ b/syncplay/client.py @@ -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()