Added manga-py source

This commit is contained in:
2019-12-14 22:33:14 -05:00
parent 9a4dd4b09b
commit 45067caea6
420 changed files with 18054 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
# cli chapters parser
class ChapterHelper:
chapters = ''
def __init__(self, chapters: str):
self.chapters = chapters
if isinstance(self.chapters, str):
self.chapters = self.chapters.split(' ')
def get_chapters(self, urls):
chapters = []
for i, url in enumerate(urls):
if i in self.chapters:
chapters.append(urls)
return chapters