v1.6.2
parent
eb79ddbd89
commit
43bb31d5ae
|
|
@ -35,20 +35,20 @@ Then removed his comment from civitai, but his post on reddit is still there, so
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### **Blame SD Webui's changing to this extension**
|
### **Blame SD Webui's modification to this extension**
|
||||||
(Latest SD webui removed a button from UI, they claim this extension did that, and want it back by this extension)
|
Latest SD webui removed a button from UI, they claim this extension did that, and want it back by this extension
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### Don't even use this extension, claim other extension's error to this extension
|
### Claim other extension's error to this extension
|
||||||
Just because both extensions have "Civitai" in extension's name
|
Just because both extensions have "Civitai" in extension's name
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
### **Didn't re-launch SD webui like document asked**
|
### **Didn't even use this extension and request a feature it already has**
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### **Renamed model folder's name carelessly and forgot that**
|
### **Renamed model folder's name carelessly and forgot that**
|
||||||
Takes about 8 hours to find out why this extension doesn't work on his SDwebui and ready to re-install SD webui from beginning.
|
Takes about 8 hours to find out why this extension doesn't work on his SDwebui and ready to re-install SD webui from beginning.
|
||||||
|
|
|
||||||
|
|
@ -59,10 +59,20 @@ def dl(url, folder, filename, filepath):
|
||||||
|
|
||||||
|
|
||||||
util.printD("Target file path: " + file_path)
|
util.printD("Target file path: " + file_path)
|
||||||
|
base, ext = os.path.splitext(file_path)
|
||||||
|
|
||||||
|
# check if file is already exist
|
||||||
|
count = 2
|
||||||
|
new_base = base
|
||||||
|
while os.path.isfile(file_path):
|
||||||
|
util.printD("Target file already exist.")
|
||||||
|
# re-name
|
||||||
|
new_base = base + "_" + str(count)
|
||||||
|
file_path = new_base + ext
|
||||||
|
count += 1
|
||||||
|
|
||||||
# use a temp file for downloading
|
# use a temp file for downloading
|
||||||
base, ext = os.path.splitext(file_path)
|
dl_file_path = new_base+dl_ext
|
||||||
dl_file_path = base+dl_ext
|
|
||||||
|
|
||||||
|
|
||||||
util.printD(f"Downloading to temp file: {dl_file_path}")
|
util.printD(f"Downloading to temp file: {dl_file_path}")
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import requests
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
|
|
||||||
version = "1.6.1.1"
|
version = "1.6.2"
|
||||||
|
|
||||||
def_headers = {'User-Agent': 'Mozilla/5.0 (iPad; CPU OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148'}
|
def_headers = {'User-Agent': 'Mozilla/5.0 (iPad; CPU OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148'}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue