Skip to content

Commit

Permalink
Merge pull request frozenpandaman#19 from Contra-254/master
Browse files Browse the repository at this point in the history
Small fix for downloading order
  • Loading branch information
frozenpandaman committed Aug 3, 2020
2 parents 16ccc43 + 332caa0 commit f8b7a0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mangadex-dl.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def dl(manga_id, lang_code, tld="org"):
chapter_group = manga["chapter"][chapter_id]["group_name"]
if chapter_num in requested_chapters and manga["chapter"][chapter_id]["lang_code"] == lang_code:
chaps_to_dl.append((str(chapter_num), chapter_id, chapter_group))
chaps_to_dl.sort()
chaps_to_dl.sort(key = lambda x: float(x[0]))

# get chapter(s) json
print()
Expand Down

0 comments on commit f8b7a0e

Please sign in to comment.