fix srt import
This commit is contained in:
parent
273fcb6458
commit
ad688444ce
1 changed files with 5 additions and 2 deletions
|
@ -549,12 +549,15 @@ class Client(object):
|
|||
sys.exit(1)
|
||||
for s in ox.srt.load(filename):
|
||||
r = self.api.addAnnotation({
|
||||
'item;': item,
|
||||
'layer;': layer,
|
||||
'item': item,
|
||||
'layer': layer,
|
||||
'in': s['in'],
|
||||
'out': s['out'],
|
||||
'value': s['value'],
|
||||
})
|
||||
if r['status']['code'] == 400:
|
||||
print 'failed'
|
||||
sys.exit(1)
|
||||
if r['status']['code'] == 403:
|
||||
print 'permission deinied'
|
||||
sys.exit(1)
|
||||
|
|
Loading…
Reference in a new issue