first videos, subtitles later

This commit is contained in:
j 2013-01-29 08:47:50 +05:30
parent 917b3ff921
commit 06428673c8

View file

@ -505,14 +505,6 @@ class Client(object):
print 'uploading info for %d files' % len(post['info']) print 'uploading info for %d files' % len(post['info'])
r = self.api.update(post) r = self.api.update(post)
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:
@ -541,6 +533,15 @@ 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 files(self, prefix): def files(self, prefix):
conn, c = self._conn() conn, c = self._conn()
files = {} files = {}