Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readlightnovel failed to create epub #55

Closed
SirGryphin opened this issue Jan 26, 2019 · 5 comments
Closed

readlightnovel failed to create epub #55

SirGryphin opened this issue Jan 26, 2019 · 5 comments

Comments

@SirGryphin
Copy link
Contributor

This has happen multiple time now it fails to create everything except html and text files.

@yudilee
Copy link
Contributor

yudilee commented Jan 27, 2019

Do you run executable for windows or run py file? If you run py file, can you run it using -lll or set. env to debug mode. If you can please post error message here. I just try latest update and I can get epub output

/storage/emulated/0 $ lncrawl
======================================================================== 📒 Lightnovel Crawler 🍀 2.7.2 Download lightnovels into html, text, epub, mobi and json ------------------------------------------------------------------------⮕ Press Ctrl + C to exit ? Enter novel page url or query novel: https://www.readlightnovel.org/tensei-shitara-slime-datta-ken-wn Retrieving novel info... NOVEL: Tensei Shitara Slime Datta Ken (WN) ? Enter output direcotry: /storage/emulated/0/Lightnovels/Tensei Shitara Slime Datta Ken (WN) ? Which chapters to download? Everything! (252 chapters) ? Generate separate files for each volumes? No Getting cover image... Downloading chapters |████████████████████████████████| 252/252
Created: 252 text files
Created: 252 html files
Created: Tensei Shitara Slime Datta Ken (WN).epub
Downloading kindlegen...
Extracting kindlegen...
Failed to generate mobi for Tensei Shitara Slime Datta Ken (WN).epub

@dipu-bd
Copy link
Owner

dipu-bd commented Jan 27, 2019

@SirGryphin Can you specify the novel name and the site from where you were trying to download?

@yudilee -lll should work in the next release. It was temporarily disabled.

@SirGryphin
Copy link
Contributor Author

SirGryphin commented Jan 27, 2019

This is the novel I tried. I'm also using Windows exe not py the version.

https://www.readlightnovel.org/adorable-treasured-fox-divine-doctor-mother-overturning-the-heavens

@dipu-bd
Copy link
Owner

dipu-bd commented Jan 28, 2019

It happens to be the problem of long filenames. I used the novel title to create new files. In this case, the title is too long. And in windows very long filenames are not allowed. I will upload a fix tomorrow.

Although, you can make the current version working following this tutorial:
https://www.howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters/

@dipu-bd
Copy link
Owner

dipu-bd commented Jan 29, 2019

This problem is fixed using python-slugify. Both folder and filenames are formatted and shortened using it.

@dipu-bd dipu-bd closed this as completed Jan 29, 2019
dipu-bd pushed a commit that referenced this issue Sep 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants