|
@@ -360,14 +360,14 @@ def change_logo(path_dest, logo, logo_float=None):
|
|
|
img_path_float = "app/src/main/res/drawable/pb_button.png"
|
|
|
img_path_float = os.path.join(path_dest, img_path_float)
|
|
|
if isinstance(logo, str):
|
|
|
- logo = requests.get('https://newuniverse.io/dashboardv2/uploads/logo/{}'.format(logo))
|
|
|
+ logo = requests.get('https://newuniverse.io/dashboardv2/uploads/logo/{}'.format(logo), verify=False)
|
|
|
with open(img_path, "wb") as f:
|
|
|
f.write(logo.content)
|
|
|
with open(img_path, "rb") as f:
|
|
|
logo = Image.open(f)
|
|
|
logo = logo.resize((512, 512))
|
|
|
if logo_float:
|
|
|
- logo_float = requests.get('https://newuniverse.io/dashboardv2/uploads/logofloat/{}'.format(logo_float))
|
|
|
+ logo_float = requests.get('https://newuniverse.io/dashboardv2/uploads/logofloat/{}'.format(logo_float), verify=False)
|
|
|
with open(img_path_float, "wb") as f:
|
|
|
f.write(logo_float.content)
|
|
|
with open(img_path_float, "rb") as f:
|
|
@@ -393,7 +393,7 @@ def change_tab(path_dest, tabs, tab_icon, package, tab3_mode, tab_amount):
|
|
|
img_path = "app/src/main/res/drawable"
|
|
|
img_path = os.path.join(path_dest, img_path, icon)
|
|
|
if isinstance(tab_icon[i], str):
|
|
|
- logo = requests.get('https://newuniverse.io/dashboardv2/uploads/tab_icon/{}'.format(tab_icon[i]))
|
|
|
+ logo = requests.get('https://newuniverse.io/dashboardv2/uploads/tab_icon/{}'.format(tab_icon[i]), verify=False)
|
|
|
with open(img_path, "wb") as f:
|
|
|
f.write(logo.content)
|
|
|
with open(img_path, "rb") as f:
|
|
@@ -438,7 +438,7 @@ def change_fb(path_dest, fb_order, package, fb_icon):
|
|
|
if i-1 in range(-len(default_fb_icon), len(default_fb_icon)):
|
|
|
img_path = os.path.join(path_dest, img_path, default_fb_icon[i-1])
|
|
|
if isinstance(fb_icon[x], str):
|
|
|
- logo = requests.get('https://newuniverse.io/dashboardv2/uploads/fb_icon/{}'.format(fb_icon[x]))
|
|
|
+ logo = requests.get('https://newuniverse.io/dashboardv2/uploads/fb_icon/{}'.format(fb_icon[x]), verify=False)
|
|
|
with open(img_path, "wb") as f:
|
|
|
f.write(logo.content)
|
|
|
with open(img_path, "rb") as f:
|
|
@@ -466,7 +466,7 @@ def change_background(path_dest, background):
|
|
|
# n = i+1
|
|
|
# img_path = "app/src/main/res/drawable-nodpi/pb_lbackground_{}.png".format(n)
|
|
|
# img_path = os.path.join(path_dest, img_path)
|
|
|
- # logo = requests.get('https://newuniverse.io/dashboardv2/uploads/background/{}'.format(b))
|
|
|
+ # logo = requests.get('https://newuniverse.io/dashboardv2/uploads/background/{}'.format(b), verify=False)
|
|
|
# with open(img_path, "wb") as f:
|
|
|
# f.write(logo.content)
|
|
|
# with open(img_path, "rb") as f:
|