Skip to content

Commit

Permalink
fix(Add Support for / at End of URL): 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
thezak48 committed Nov 10, 2023
1 parent ef4c78f commit ae0ec3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manga_dl.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ def get_website_class(url: str):

if os.path.isfile(args.manga):
with open(args.manga, "r", encoding="utf-8") as f:
manga_urls = [line.strip() for line in f]
manga_urls = [line.strip().rstrip("/") for line in f]
else:
manga_urls = [args.manga]
manga_urls = [args.manga.rstrip("/")]

progress = Progress()
try:
Expand Down

0 comments on commit ae0ec3c

Please sign in to comment.