ignore unknown hashes
This commit is contained in:
parent
fe7d0c7415
commit
6c80a37e46
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue