ignore unknown hashes

This commit is contained in:
j 2014-04-02 13:09:28 +02:00
parent fe7d0c7415
commit 6c80a37e46

View file

@ -122,14 +122,14 @@ class Server(Resource):
response = {}
files = self.queued_encodes()
for oshash in files:
info = self.client.info(oshash)
if not info or 'error' in info:
continue
path = self.media_path(oshash)
if os.path.exists(path):
self.update_status(oshash, 'done')
self.upload.put(oshash)
continue
info = self.client.info(oshash)
if not info or 'error' in info:
continue
for f in self.client.path(oshash):
if os.path.exists(f):
response['oshash'] = oshash