Skip to content

Commit

Permalink
Inverse invalid check
Browse files Browse the repository at this point in the history
The check should remove the trailing slash only if it has one, not only if it *doesn't* have one. Currently this has the effect of downloading a potentially different book (usually) if you *don't* put a slash and failing to download the chapters if you *do* put a slash.
  • Loading branch information
AntonOfTheWoods authored and dipu-bd committed Jul 13, 2024
1 parent 8c40b96 commit 34f8371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/zh/ixdzs.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def rectify_url(url: str) -> str:
"""
This manually 'fixes' URLs and prepares them for usage later on in string templating.
"""
url = url[:-1] if not url.endswith("/") else url
url = url[:-1] if url.endswith("/") else url
if "https://tw.m.ixdzs.com" in url:
return url.replace("https://tw.m.ixdzs.com", "https://ixdzs8.tw")
if "https://www.aixdzs.com" in url:
Expand Down

0 comments on commit 34f8371

Please sign in to comment.