Commit 3ff9c8b5 authored by Hermann Krumrey's avatar Hermann Krumrey

Fix static type errors

parent eea0f9e6
......@@ -38,7 +38,7 @@ def main(args: argparse.Namespace):
for scraper_cls in scrapers:
if scraper_cls.url_matches(args.url):
scraper = scraper_cls(
_format=args.format, destination=args.out
destination=args.out, _format=args.format
)
break
......
......@@ -63,7 +63,7 @@ class Chapter:
self.destination_dir = destination_dir
self.format = _format
self._page_load_callback = page_load_callback
self._pages = []
self._pages = [] # type: List[str]
@property
def name(self) -> str:
......
......@@ -29,15 +29,15 @@ class Scraper:
def __init__(
self,
destination: str,
_format: str = "cbz",
destination: Optional[str] = None,
languages: Optional[Set[str]] = None
):
"""
Initializes the Scraper object
:param _format: The format in which to store chapters
:param destination: The destination directory in
which to store chapters
:param _format: The format in which to store chapters
:param languages: Set of languages for which to check
"""
self.logger = logging.getLogger(self.__class__.__name__)
......@@ -93,7 +93,7 @@ class Scraper:
elif _id is not None:
url = self.generate_url(_id)
chapters = self._load_chapters(url)
chapters = self._load_chapters(str(url))
# Both sort steps are necessary!
chapters.sort(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment