diff --git a/README.md b/README.md index 3155613..728e96c 100755 --- a/README.md +++ b/README.md @@ -10,5 +10,5 @@ If there are any issues, please let me know. 1. Download the repository 1. Open a terminal 1. `cd` into the folder where you downloaded it -1. In the folder, type *exactly* this: `python -m http.server --directory www.photopea.com 8887` -1. Open [http://localhost:8887](http://localhost:8887). It should load and you can use it like normal. +1. In the folder, type this: `python -m http.server --directory www.photopea.com 8080` +1. Open [http://localhost:8080](http://localhost:8080). It should load and you can use it like normal. diff --git a/Updater.py b/Updater.py index 9221a71..fc03cff 100755 --- a/Updater.py +++ b/Updater.py @@ -100,10 +100,10 @@ for font in decompress_font_list(db["FNTS"]["list"]): if not os.path.isfile(root + path): dl_file(path) - +#Delete any unused fonts fonts_db=[root+'rsrc/fonts/'+font.url for font in decompress_font_list(db["FNTS"]["list"])] -fonts_local=glob.glob(root + 'rsrc/fonts/'+'/**/*.otf', recursive=True) +fonts_local=glob.glob(root + 'rsrc/fonts/'+'/**/*.{otf,ttf,ttc}', recursive=True) for font_file in list(set(fonts_local)-set(fonts_db)): os.remove(font_file)