Skip to content

Commit

Permalink
fix #27
Browse files Browse the repository at this point in the history
  • Loading branch information
frozenpandaman committed Jan 29, 2021
1 parent a0c5c5d commit dfd2fd4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mangadex-dl.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import cloudscraper
import time, os, sys, re, json, html

A_VERSION = "0.2.6"
A_VERSION = "0.2.7"

def pad_filename(str):
digits = re.compile('(\\d+)')
Expand Down Expand Up @@ -92,7 +92,8 @@ def dl(manga_id, lang_code, tld="org"):
chapter_num = None
for chapter_id in manga["chapter"]:
try:
chapter_num = str(float(manga["chapter"][str(chapter_id)]["chapter"])).replace(".0", "")
chapter_num = str(float(manga["chapter"][str(chapter_id)]["chapter"]))
chapter_num = re.sub('.0$', '', chapter_num)
except:
pass # Oneshot
chapter_group = manga["chapter"][chapter_id]["group_name"]
Expand Down

0 comments on commit dfd2fd4

Please sign in to comment.