Your Name 3 years ago
parent
commit
e33ac52970
1 changed files with 2 additions and 0 deletions
  1. 2 0
      process_webp_from_db.py

+ 2 - 0
process_webp_from_db.py

@@ -12,6 +12,8 @@ for c in cursor:
 #    print(c['adid'])
     adid=c['adid']
     mobile_h=c['adlogo_mobile'].replace('https://images.hhh.com.tw/','/home/hhh-images/')
+    if '.gif' in mobile_h:
+        continue
     print(mobile_h)
     print(os.path.exists(mobile_h))
     cmd='cwebp '+mobile_h+" -o "+mobile_h+".webp"