dipu-bd / lightnovel-crawler

Generate and download e-books from online sources.
https://pypi.org/project/lightnovel-crawler/
GNU General Public License v3.0
1.52k stars 296 forks source link

Path not JSON serializable error #2468

Open prasadghanwat12 opened 2 months ago

prasadghanwat12 commented 2 months ago

While trying to run the telegram bot getting an error json path not serializable

CryZFix commented 1 month ago

Hello. As a temporary local solution, you can make changes to the files. https://github.com/dipu-bd/lightnovel-crawler/blob/7bee68ed003dbbee33ce51857c8fb749d074d9d4/lncrawl/core/novel_info.py#L99

Replace with output_path=app.output_path.__str__() https://github.com/dipu-bd/lightnovel-crawler/blob/7bee68ed003dbbee33ce51857c8fb749d074d9d4/lncrawl/binders/epub.py#L46 Replace with book.set_identifier(output_path.__str__() + suffix)

I'm still looking for a better solution.