Skip to content

Commit

Permalink
Merge pull request #286 from darodi/master
Browse files Browse the repository at this point in the history
add support for manganato, readmanganato
  • Loading branch information
Xonshiz authored Jun 4, 2021
2 parents ffc7a9b + 988eaf9 commit dae4f6c
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Supported_Sites.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* [mangareader.net](http://www.mangareader.net/)
* [readcomicbooksonline.net](http://readcomicbooksonline.net/)
~* [readcomics.website](http://www.readcomics.website/)~
* [manganelo.com](https://manganelo.com/) * [mangakakalot.com](https://mangakakalot.com/)
* [manganelo.com](https://manganelo.com/) * [mangakakalot.com](https://mangakakalot.com/) * [manganato.com](https://manganato.com/) * [readmanganato.com](https://readmanganato.com/)
* [hqbr.com.br](https://hqbr.com.br/home)
* [comicextra.com](http://www.comicextra.com)
* [readcomics.io](https://www.readcomics.io/)
Expand Down
2 changes: 1 addition & 1 deletion comic_dl/honcho.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ 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"]:
elif domain in ["manganelo.com", "mangakakalot.com", "manganato.com", "readmanganato.com"]:
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"),
Expand Down
2 changes: 1 addition & 1 deletion comic_dl/sites/mangaFox.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(self, manga_url, download_directory, chapter_range, **kwargs):
url_split = str(manga_url).split("/")
self.print_index = kwargs.get("print_index")

if len(url_split) is 5:
if len(url_split) == 5:
self.full_series(comic_url=manga_url, comic_name=self.comic_name, sorting=self.sorting,
download_directory=download_directory, chapter_range=chapter_range, conversion=conversion,
keep_files=keep_files)
Expand Down
2 changes: 1 addition & 1 deletion comic_dl/sites/mangaHere.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(self, manga_url, download_directory, chapter_range, **kwargs):

url_split = str(manga_url).split("/")

if len(url_split) is 5:
if len(url_split) == 5:
self.full_series(comic_url=manga_url, comic_name=self.comic_name, sorting=self.sorting,
download_directory=download_directory, chapter_range=chapter_range, conversion=conversion,
keep_files=keep_files)
Expand Down
4 changes: 2 additions & 2 deletions comic_dl/sites/manganelo.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def single_chapter(self, manga_url, download_directory, conversion, keep_files):
breadcrumb_parts = breadcrumb.findAll('a')
comic_name = (breadcrumb_parts[1])['title']
chapter_number = (breadcrumb_parts[2]).find('span').text
else: # manganelo
else: # manganelo.com, manganato.com, readmanganato.com
breadcrumb = source.find('div', {'class': 'panel-breadcrumb'})
breadcrumb_parts = breadcrumb.findAll('a')
comic_name = (breadcrumb_parts[1])['title']
Expand Down Expand Up @@ -77,7 +77,7 @@ def full_series(self, comic_url, sorting, download_directory, chapter_range, con
if "mangakakalot" in comic_url:
chapter_list = source.find('div', {'class': 'chapter-list'})
all_links = chapter_list.findAll('a')
else: # manganelo
else: # manganelo.com, manganato.com, readmanganato.com
chapter_list = source.find('ul', {'class': 'row-content-chapter'})
all_links = chapter_list.findAll('a')

Expand Down
2 changes: 1 addition & 1 deletion comic_dl/sites/rawSenManga.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def single_chapter(self, comic_url, comic_name, download_directory, conversion,
links = []
file_names = []
for x in range(0, last_page_number + 1):
if x is 0:
if x == 0:
pass
else:
# file_name = "0" + str(x) + ".jpg"
Expand Down
2 changes: 1 addition & 1 deletion docs/Supported_Sites.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* [mangareader.net](http://www.mangareader.net/)
* [readcomicbooksonline.net](http://readcomicbooksonline.net/)
~* [readcomics.website](http://www.readcomics.website/)~
* [manganelo.com](https://manganelo.com/) * [mangakakalot.com](https://mangakakalot.com/)
* [manganelo.com](https://manganelo.com/) * [mangakakalot.com](https://mangakakalot.com/) * [manganato.com](https://manganato.com/) * [readmanganato.com](https://readmanganato.com/)
* [hqbr.com.br](https://hqbr.com.br/home)
* [comicextra.com](http://www.comicextra.com)
* [readcomics.io](https://www.readcomics.io/)
Expand Down

0 comments on commit dae4f6c

Please sign in to comment.