upload subtitles first
This commit is contained in:
parent
0b95dd0057
commit
17dbb03b95
1 changed files with 8 additions and 8 deletions
|
@ -669,6 +669,14 @@ class Client(object):
|
||||||
data = r['data']['data']
|
data = r['data']['data']
|
||||||
files = r['data']['file']
|
files = r['data']['file']
|
||||||
|
|
||||||
|
if files:
|
||||||
|
print 'uploading %s files' % len(files)
|
||||||
|
for oshash in files:
|
||||||
|
for path in self.path(oshash):
|
||||||
|
if os.path.exists(path):
|
||||||
|
self.api.uploadData(path, oshash)
|
||||||
|
break
|
||||||
|
|
||||||
if data:
|
if data:
|
||||||
print 'encoding and uploading %s videos' % len(data)
|
print 'encoding and uploading %s videos' % len(data)
|
||||||
for oshash in data:
|
for oshash in data:
|
||||||
|
@ -697,14 +705,6 @@ class Client(object):
|
||||||
})
|
})
|
||||||
break
|
break
|
||||||
|
|
||||||
if files:
|
|
||||||
print 'uploading %s files' % len(files)
|
|
||||||
for oshash in files:
|
|
||||||
for path in self.path(oshash):
|
|
||||||
if os.path.exists(path):
|
|
||||||
self.api.uploadData(path, oshash)
|
|
||||||
break
|
|
||||||
|
|
||||||
def update_info(self, info, prefix=None):
|
def update_info(self, info, prefix=None):
|
||||||
if info:
|
if info:
|
||||||
print 'sending info for %d files' % len(info)
|
print 'sending info for %d files' % len(info)
|
||||||
|
|
Loading…
Reference in a new issue