Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Xonshiz committed Dec 28, 2017
2 parents 8513670 + eee1f5e commit 5563276
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions comic_dl/sites/readComicsWebsite.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def name_cleaner(self, url):
return str(str(url).split("/")[4].strip().replace("_", " ").replace("-", " ").title())

def single_chapter(self, comic_url, comic_name, download_directory, conversion, delete_files):
chapter_number = int(str(comic_url).split("/")[-1].strip())
chapter_number = str(comic_url).split("/")[-1].strip()
source, cookies = globalFunctions.GlobalFunctions().page_downloader(manga_url=comic_url)
last_chapter = int(re.findall(r'<option value="(.*?)">(.*?)</option>', str(source))[-1][-1].strip())

Expand All @@ -37,7 +37,7 @@ def single_chapter(self, comic_url, comic_name, download_directory, conversion,
for image_number in range(1, last_chapter + 1):
img_list.append("http://www.readcomics.website/uploads/manga/{0}/chapters/{1}/{2}.jpg".format(name_of_manga, chapter_number, str(image_number).zfill(2)))

file_directory = str(comic_name) + '/' + str(chapter_number) + "/"
file_directory = str(comic_name) + '/' + chapter_number + "/"

directory_path = os.path.realpath(str(download_directory) + "/" + str(file_directory))

Expand Down

0 comments on commit 5563276

Please sign in to comment.