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 = {} response = {}
files = self.queued_encodes() files = self.queued_encodes()
for oshash in files: for oshash in files:
info = self.client.info(oshash)
if not info or 'error' in info:
continue
path = self.media_path(oshash) path = self.media_path(oshash)
if os.path.exists(path): if os.path.exists(path):
self.update_status(oshash, 'done') self.update_status(oshash, 'done')
self.upload.put(oshash) self.upload.put(oshash)
continue continue
info = self.client.info(oshash)
if not info or 'error' in info:
continue
for f in self.client.path(oshash): for f in self.client.path(oshash):
if os.path.exists(f): if os.path.exists(f):
response['oshash'] = oshash response['oshash'] = oshash