Get size of unicode files (bug fix)

This commit is contained in:
Et0h 2015-02-17 23:34:36 +00:00
parent a4b35431fa
commit ad76b00d21

View File

@ -368,6 +368,7 @@ class SyncplayClient(object):
if not path:
return
try:
path = path.decode('utf-8')
size = os.path.getsize(path)
except OSError: # file not accessible (stream?)
size = 0