From f0f168b6a0c9508fc2a53a1b0d4bbdc4cb63602a Mon Sep 17 00:00:00 2001 From: darodi <4682830+darodi@users.noreply.github.com> Date: Thu, 12 Jul 2018 00:59:47 +0200 Subject: [PATCH] @darodi fix #154 mangafox : handle decimal chapters --- Contributors.md | 3 ++- comic_dl/sites/mangaFox.py | 2 +- docs/Contributors.md | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Contributors.md b/Contributors.md index c493bef..9699aad 100644 --- a/Contributors.md +++ b/Contributors.md @@ -21,4 +21,5 @@ [#150](https://github.com/Xonshiz/comic-dl/issues/150) [#142](https://github.com/Xonshiz/comic-dl/issues/142) [#148](https://github.com/Xonshiz/comic-dl/issues/148) -[#152](https://github.com/Xonshiz/comic-dl/issues/152) \ No newline at end of file +[#152](https://github.com/Xonshiz/comic-dl/issues/152) +[#154](https://github.com/Xonshiz/comic-dl/issues/154) \ No newline at end of file diff --git a/comic_dl/sites/mangaFox.py b/comic_dl/sites/mangaFox.py index 55497ac..c4d6eaa 100644 --- a/comic_dl/sites/mangaFox.py +++ b/comic_dl/sites/mangaFox.py @@ -38,7 +38,7 @@ class MangaFox(object): source, cookies_main = globalFunctions.GlobalFunctions().page_downloader(manga_url=comic_url) current_chapter_volume = str(re.search(r"current_chapter=\"(.*?)\";", str(source)).group(1)) - chapter_number = re.search(r"c(\d+)", current_chapter_volume).group(1) + chapter_number = re.search(r"c(\d+(\.\d+)?)", current_chapter_volume).group(1) series_code = str(re.search(r"series_code=\"(.*?)\";", str(source)).group(1)) current_page_number = int(str(re.search(r'current_page=(.*?)\;', str(source)).group(1)).strip()) last_page_number = int(str(re.search(r'total_pages=(.*?)\;', str(source)).group(1)).strip()) diff --git a/docs/Contributors.md b/docs/Contributors.md index c493bef..9699aad 100644 --- a/docs/Contributors.md +++ b/docs/Contributors.md @@ -21,4 +21,5 @@ [#150](https://github.com/Xonshiz/comic-dl/issues/150) [#142](https://github.com/Xonshiz/comic-dl/issues/142) [#148](https://github.com/Xonshiz/comic-dl/issues/148) -[#152](https://github.com/Xonshiz/comic-dl/issues/152) \ No newline at end of file +[#152](https://github.com/Xonshiz/comic-dl/issues/152) +[#154](https://github.com/Xonshiz/comic-dl/issues/154) \ No newline at end of file