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 = {}
|
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
|
||||||
|
|
Loading…
Reference in a new issue