Merge pull request #103 from fungyua/main

修复不能解析带参数的url
pull/110/head
butaixianran 2023-04-09 01:29:53 +08:00 committed by GitHub
commit 2882ac7d76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@ def get_model_id_from_url(url:str) -> str:
id = str(url)
return id
s = url.split("/")
s = re.sub("\\?.+$", "", url).split("/")
if len(s) < 2:
util.printD("url is not valid")
return ""