kevin 3 tahun lalu
induk
melakukan
d0400c1f56
1 mengubah file dengan 9 tambahan dan 9 penghapusan
  1. 9 9
      src/mainIOS.py

+ 9 - 9
src/mainIOS.py

@@ -285,15 +285,15 @@ def change_fb(lib_dest, fb_icon):
         img_path = "NexilisLite/Resource/Assets.xcassets"
         img_path = os.path.join(lib_dest, img_path, "{}.imageset".format(default_fb_icon[i]), "{}.png".format(default_fb_icon[i]))
         if isinstance(fb_icon[i], str):
-            try:
-                fb_icon_url = requests.get('https://newuniverse.io/dashboardv2/uploads/fb_icon/{}'.format(fb_icon[i]))
-                with open(img_path, "wb") as f:
-                    f.write(fb_icon_url.content)
-                with open(img_path, "rb") as f:
-                    l = Image.open(f)
-                    l = l.resize((150, 150))
-                l.save(img_path, "PNG")
-            except:
+            # try:
+            #     fb_icon_url = requests.get('https://newuniverse.io/dashboardv2/uploads/fb_icon/{}'.format(fb_icon[i]))
+            #     with open(img_path, "wb") as f:
+            #         f.write(fb_icon_url.content)
+            #     with open(img_path, "rb") as f:
+            #         l = Image.open(f)
+            #         l = l.resize((150, 150))
+            #     l.save(img_path, "PNG")
+            # except:
                 try:
                     fb_icon_path = os.path.join(app.asset_folder, "fb_icon", "{}".format(fb_icon[i]))
                     with open(fb_icon_path, "rb") as f: