This story: https://www.royalroad.com/fiction/46933/iakesi-they-call-me-homeless-but-i-cast-fireball fails to download.
The error mentions somthing about a lack of a cover so a specifiying one in leech.json might be a workaround.
With this errors:
Traceback (most recent call last):
File "/home/lukas/.local/lib/python3.8/site-packages/ebook/cover.py", line 38, in make_cover_from_url
img = requests.Session().get(url)
File "/home/lukas/.local/lib/python3.8/site-packages/requests/sessions.py", line 542, in get
return self.request('GET', url, **kwargs)
File "/home/lukas/.local/lib/python3.8/site-packages/requests/sessions.py", line 515, in request
prep = self.prepare_request(req)
File "/home/lukas/.local/lib/python3.8/site-packages/requests/sessions.py", line 443, in prepare_request
p.prepare(
File "/home/lukas/.local/lib/python3.8/site-packages/requests/models.py", line 318, in prepare
self.prepare_url(url, params)
File "/home/lukas/.local/lib/python3.8/site-packages/requests/models.py", line 392, in prepare_url
raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL '/dist/img/nocover-new-min.png': No scheme supplied. Perhaps you meant http:///dist/img/nocover-new-min.png?
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/lukas/.local/bin/leech", line 8, in
sys.exit(cli())
File "/home/lukas/.local/lib/python3.8/site-packages/click/core.py", line 829, in call
return self.main(args, kwargs)
File "/home/lukas/.local/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/lukas/.local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/lukas/.local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, ctx.params)
File "/home/lukas/.local/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(args, **kwargs)
File "/home/lukas/.local/lib/python3.8/site-packages/leech.py", line 170, in download
filename = ebook.generate_epub(story, options, normalize=normalize, output_dir=output_dir)
File "/home/lukas/.local/lib/python3.8/site-packages/ebook/init.py", line 132, in generate_epub
image = make_cover_from_url(story.cover_url, story.title, story.author)
File "/home/lukas/.local/lib/python3.8/site-packages/ebook/cover.py", line 49, in make_cover_from_url
logger.info("Encountered an error downloading cover: " + e)
TypeError: can only concatenate str (not "MissingSchema") to str``
This story: https://www.royalroad.com/fiction/46933/iakesi-they-call-me-homeless-but-i-cast-fireball fails to download. The error mentions somthing about a lack of a cover so a specifiying one in leech.json might be a workaround. With this errors: Traceback (most recent call last): File "/home/lukas/.local/lib/python3.8/site-packages/ebook/cover.py", line 38, in make_cover_from_url img = requests.Session().get(url) File "/home/lukas/.local/lib/python3.8/site-packages/requests/sessions.py", line 542, in get return self.request('GET', url, **kwargs) File "/home/lukas/.local/lib/python3.8/site-packages/requests/sessions.py", line 515, in request prep = self.prepare_request(req) File "/home/lukas/.local/lib/python3.8/site-packages/requests/sessions.py", line 443, in prepare_request p.prepare( File "/home/lukas/.local/lib/python3.8/site-packages/requests/models.py", line 318, in prepare self.prepare_url(url, params) File "/home/lukas/.local/lib/python3.8/site-packages/requests/models.py", line 392, in prepare_url raise MissingSchema(error) requests.exceptions.MissingSchema: Invalid URL '/dist/img/nocover-new-min.png': No scheme supplied. Perhaps you meant http:///dist/img/nocover-new-min.png?
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/lukas/.local/bin/leech", line 8, in
sys.exit(cli())
File "/home/lukas/.local/lib/python3.8/site-packages/click/core.py", line 829, in call
return self.main(args, kwargs)
File "/home/lukas/.local/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/lukas/.local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/lukas/.local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, ctx.params)
File "/home/lukas/.local/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(args, **kwargs)
File "/home/lukas/.local/lib/python3.8/site-packages/leech.py", line 170, in download
filename = ebook.generate_epub(story, options, normalize=normalize, output_dir=output_dir)
File "/home/lukas/.local/lib/python3.8/site-packages/ebook/init.py", line 132, in generate_epub
image = make_cover_from_url(story.cover_url, story.title, story.author)
File "/home/lukas/.local/lib/python3.8/site-packages/ebook/cover.py", line 49, in make_cover_from_url
logger.info("Encountered an error downloading cover: " + e)
TypeError: can only concatenate str (not "MissingSchema") to str``