diff --git a/Updater.py b/Updater.py index d387b2c..416f355 100755 --- a/Updater.py +++ b/Updater.py @@ -135,19 +135,20 @@ for font_file in list(set(fonts_local)-set(fonts_db)): print('Removing ' + font_file) os.remove(font_file) -templates_db=[_[3] for _ in json.load(open(root+"papi/tpls.json"))['list']] +templates_db=['file/' + ('psdshared' if _[4].startswith("https://i.imgur.com/") else 'pp-resources') +'/' + _[3] for _ in json.load(open(root+"papi/tpls.json"))['list']] for template in templates_db: - path="https://f000.backblazeb2.com/file/psdshared/" +template - outfn=root+"templates/file/psdshared/"+template + path="https://f000.backblazeb2.com/" + template + outfn=root+"templates/"+template download_file(path,outfn) -templates_local=[_ for _ in glob.glob(root + 'templates/file/psdshared', recursive=True)] -templates_db=[root+"templates/file/psdshared/"+_ for _ in templates_db] +templates_local=[_ for _ in glob.glob(root + 'templates/file/**/*', recursive=True)] +templates_db=[root+"templates/"+_ for _ in templates_db] for tpl in list(set(templates_local)-set(templates_db)): print('Removing ' + tpl) os.remove(tpl) + def find_and_replace(file,find,replace): with open(os.path.join(root,file),'r') as pp: file1=pp.read() diff --git a/www.photopea.com/templates/file/psdshared/-YUMQGS5 b/www.photopea.com/templates/file/psdshared/-YUMQGS5 new file mode 100644 index 0000000..6410485 Binary files /dev/null and b/www.photopea.com/templates/file/psdshared/-YUMQGS5 differ diff --git a/www.photopea.com/templates/file/psdshared/3w69c920 b/www.photopea.com/templates/file/psdshared/3w69c920 new file mode 100644 index 0000000..ac2b862 Binary files /dev/null and b/www.photopea.com/templates/file/psdshared/3w69c920 differ diff --git a/www.photopea.com/templates/file/psdshared/70imObZ3 b/www.photopea.com/templates/file/psdshared/70imObZ3 new file mode 100644 index 0000000..abea8a6 Binary files /dev/null and b/www.photopea.com/templates/file/psdshared/70imObZ3 differ diff --git a/www.photopea.com/templates/file/psdshared/LWrLIKaq b/www.photopea.com/templates/file/psdshared/LWrLIKaq new file mode 100644 index 0000000..6c98fda Binary files /dev/null and b/www.photopea.com/templates/file/psdshared/LWrLIKaq differ diff --git a/www.photopea.com/templates/file/psdshared/QSV6D5Gr b/www.photopea.com/templates/file/psdshared/QSV6D5Gr new file mode 100644 index 0000000..8a396a2 Binary files /dev/null and b/www.photopea.com/templates/file/psdshared/QSV6D5Gr differ diff --git a/www.photopea.com/templates/file/psdshared/XjwWxxs1 b/www.photopea.com/templates/file/psdshared/XjwWxxs1 new file mode 100644 index 0000000..7ff0f36 Binary files /dev/null and b/www.photopea.com/templates/file/psdshared/XjwWxxs1 differ diff --git a/www.photopea.com/templates/file/psdshared/YRhAHZ3E b/www.photopea.com/templates/file/psdshared/YRhAHZ3E new file mode 100644 index 0000000..4df6253 Binary files /dev/null and b/www.photopea.com/templates/file/psdshared/YRhAHZ3E differ diff --git a/www.photopea.com/templates/file/psdshared/h1rK8U_v b/www.photopea.com/templates/file/psdshared/h1rK8U_v new file mode 100644 index 0000000..f752eff Binary files /dev/null and b/www.photopea.com/templates/file/psdshared/h1rK8U_v differ diff --git a/www.photopea.com/templates/file/psdshared/hR2QlXuE b/www.photopea.com/templates/file/psdshared/hR2QlXuE new file mode 100644 index 0000000..b884e09 Binary files /dev/null and b/www.photopea.com/templates/file/psdshared/hR2QlXuE differ diff --git a/www.photopea.com/templates/file/psdshared/jrroVBEE b/www.photopea.com/templates/file/psdshared/jrroVBEE new file mode 100644 index 0000000..de0ec09 Binary files /dev/null and b/www.photopea.com/templates/file/psdshared/jrroVBEE differ diff --git a/www.photopea.com/templates/file/psdshared/kN6Yq6ky b/www.photopea.com/templates/file/psdshared/kN6Yq6ky new file mode 100644 index 0000000..5230297 Binary files /dev/null and b/www.photopea.com/templates/file/psdshared/kN6Yq6ky differ diff --git a/www.photopea.com/templates/file/psdshared/nZleGUbA b/www.photopea.com/templates/file/psdshared/nZleGUbA new file mode 100644 index 0000000..830b224 Binary files /dev/null and b/www.photopea.com/templates/file/psdshared/nZleGUbA differ diff --git a/www.photopea.com/templates/file/psdshared/oBfXl5rP b/www.photopea.com/templates/file/psdshared/oBfXl5rP new file mode 100644 index 0000000..95db8b1 Binary files /dev/null and b/www.photopea.com/templates/file/psdshared/oBfXl5rP differ diff --git a/www.photopea.com/templates/file/psdshared/oswpYsHc b/www.photopea.com/templates/file/psdshared/oswpYsHc new file mode 100644 index 0000000..a97d48e Binary files /dev/null and b/www.photopea.com/templates/file/psdshared/oswpYsHc differ diff --git a/www.photopea.com/templates/file/psdshared/qBfZo4wn b/www.photopea.com/templates/file/psdshared/qBfZo4wn new file mode 100644 index 0000000..dbdc162 Binary files /dev/null and b/www.photopea.com/templates/file/psdshared/qBfZo4wn differ diff --git a/www.photopea.com/templates/file/psdshared/riFZgmuz b/www.photopea.com/templates/file/psdshared/riFZgmuz new file mode 100644 index 0000000..dccfa58 Binary files /dev/null and b/www.photopea.com/templates/file/psdshared/riFZgmuz differ diff --git a/www.photopea.com/templates/file/psdshared/yz-L59ux b/www.photopea.com/templates/file/psdshared/yz-L59ux new file mode 100644 index 0000000..c41a075 Binary files /dev/null and b/www.photopea.com/templates/file/psdshared/yz-L59ux differ