Browse Source

add save src face

ming 3 years ago
parent
commit
3d5adc7426
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/main.py

+ 1 - 1
api/main.py

@@ -187,7 +187,7 @@ def gen_avatar(name_hash,imgurl):
     c._config['sync_request_timeout'] = None
     remote_svc = c.root
     status = remote_svc.call_avatar(name_hash) # method call
-    if not status:
+    if status:
         shutil.copy(tmp_avatar_dir+name_hash+'.mp4',avatar_dest+name_hash+'.mp4')
         os.remove(tmp_avatar_dir+name_hash+'.mp4')