upload subtitles first

This commit is contained in:
j 2014-11-06 10:54:07 +01:00
parent 0b95dd0057
commit 17dbb03b95

View file

@ -669,6 +669,14 @@ class Client(object):
data = r['data']['data']
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:
print 'encoding and uploading %s videos' % len(data)
for oshash in data:
@ -697,14 +705,6 @@ class Client(object):
})
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):
if info:
print 'sending info for %d files' % len(info)