always scan files in direct upload
This commit is contained in:
parent
ede101e112
commit
20d1da515a
1 changed files with 1 additions and 1 deletions
|
@ -628,11 +628,11 @@ class Client(object):
|
||||||
for arg in args:
|
for arg in args:
|
||||||
if os.path.exists(arg):
|
if os.path.exists(arg):
|
||||||
oshash = ox.oshash(arg)
|
oshash = ox.oshash(arg)
|
||||||
|
self.scan_file(arg)
|
||||||
r = self.api.findMedia({'query': {
|
r = self.api.findMedia({'query': {
|
||||||
'conditions': [{'key': 'oshash', 'value': oshash}]
|
'conditions': [{'key': 'oshash', 'value': oshash}]
|
||||||
}})['data']['items']
|
}})['data']['items']
|
||||||
if r == 0:
|
if r == 0:
|
||||||
self.scan_file(arg)
|
|
||||||
info = self.info(oshash)
|
info = self.info(oshash)
|
||||||
filename = os.path.basename(arg)
|
filename = os.path.basename(arg)
|
||||||
r = self.api.addMedia({
|
r = self.api.addMedia({
|
||||||
|
|
Loading…
Reference in a new issue