Fix glob
This commit is contained in:
parent
037d18c52e
commit
fc14091296
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ def fileHandler(url, retry = False):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
fid = url.split("=")[1]
|
fid = url.split("=")[1]
|
||||||
if not glob.glob("files/sbd%s*" % fid):
|
if not glob.glob("files/sbd%s_*" % fid):
|
||||||
res = session.get("https://scriptzbase.org/%s" % url)
|
res = session.get("https://scriptzbase.org/%s" % url)
|
||||||
fname = re.findall("filename=(.+)", res.headers["content-disposition"])[0].split(";")[0].strip('"')
|
fname = re.findall("filename=(.+)", res.headers["content-disposition"])[0].split(";")[0].strip('"')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue