kemayo / leech

Turn a story on certain websites into an ebook for convenient reading
MIT License
154 stars 24 forks source link

Failed: Attempt to write to a readonly database #44

Open mrothbart opened 4 years ago

mrothbart commented 4 years ago

When creating an ebook with lots of chapters (Wandering Inn, TGaB, Heretical Edge, etc) there will be intermittant fails with the SQLite DB. Rerunning the script fixes it for a bunch of chapters but it can fail again, needing a rerun. It likely has something to do with the download and write speed, and database locks.

Add in a .1 second delay on DB writes to prevent locking and collision fails?

This is in powershell. WSL worked fine on first try.