From 62e47eaa4711ef0e81c074cbfa8d63d2a3214e05 Mon Sep 17 00:00:00 2001 From: darodi <4682830+darodi@users.noreply.github.com> Date: Sat, 10 Feb 2024 02:23:29 +0000 Subject: [PATCH] add chapmanganato.to (#350) --- comic_dl/honcho.py | 9 ++++++++- comic_dl/sites/manganelo.py | 2 ++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/comic_dl/honcho.py b/comic_dl/honcho.py index 8dd25dd..38b8031 100644 --- a/comic_dl/honcho.py +++ b/comic_dl/honcho.py @@ -223,7 +223,14 @@ def checker(self, comic_url, download_directory, chapter_range, **kwargs): comic_language=self.comic_language_resolver(comic_language), print_index=print_index) return 0 - elif domain in ["manganelo.com", "mangakakalot.com", "manganato.com", "readmanganato.com", "chapmanganato.com"]: + elif domain in [ + "manganelo.com", + "mangakakalot.com", + "manganato.com", + "readmanganato.com", + "chapmanganato.com", + "chapmanganato.to" + ]: manganelo.Manganelo(manga_url=comic_url, logger=logging, current_directory=current_directory, sorting_order=sorting, log_flag=log_flag, download_directory=download_directory, chapter_range=chapter_range, conversion=kwargs.get("conversion"), diff --git a/comic_dl/sites/manganelo.py b/comic_dl/sites/manganelo.py index 43f5686..fc167bf 100644 --- a/comic_dl/sites/manganelo.py +++ b/comic_dl/sites/manganelo.py @@ -104,6 +104,8 @@ def full_series(self, comic_url, sorting, download_directory, chapter_range, con all_links = chapter_list.findAll('a') else: # manganelo.com, manganato.com, readmanganato.com chapter_list = source.find('ul', {'class': 'row-content-chapter'}) + if chapter_list is None: + raise Exception('no chapter found') all_links = chapter_list.findAll('a') chapter_links = []