Fix small error in Updater.py when differentiating between templates and plugins

This commit is contained in:
DUOLabs333
2022-10-24 21:16:02 -04:00
parent a2edc5811b
commit 4076166b47
38 changed files with 1 additions and 1 deletions

View File

@@ -135,7 +135,7 @@ for font_file in list(set(fonts_local)-set(fonts_db)):
print('Removing ' + font_file)
os.remove(font_file)
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']]
templates_db=['file/' + ('psdshared' if _[4].startswith("https://i.imgur.com/") or _[4].startswith("https://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/" + template
outfn=root+"templates/"+template