Comments (6)
The type should be adjusted here. This will likely squash this issue. I've just gotta get to it. or get a pr ;)
https://github.com/th3r00t/pyShelf/blob/8adcb0e1723597578ea34d2e60a276ad57e29384/src/interface/models.py
from pyshelf.
Thanks for this report!
from pyshelf.
I've run into this and It looks like it's probably on the book.rights value.
the epub has this in the contents.opf
<dc:rights>Text copyright © 2019 by Dragonsteel Entertainment, LLC; Cover art copyright © 2019 by Charlie Bowater; Starsight map by Bryan Mark Taylor copyright © 2019 by Dragonsteel Entertainment, LLC; Additional illustrations by Isaac Stewart and Ben McSweeney copyright © 2018 by Dragonsteel&#x00A0;Entertainment, LLC</dc:rights>
Which contains a string longer than 255 characters. And truncating this fixes the import. My specific book is Starsight by Brandon Sanderson
from pyshelf.
The best way to fix it is to likely stop using varchar() and instead just use the text type.
https://www.postgresql.org/docs/13/datatype-character.html has the details about how they differ
from pyshelf.
I may make a PR later then for it. Another good link for anyone coming back to this later
https://wiki.postgresql.org/wiki/Don%27t_Do_This#Don.27t_use_varchar.28n.29_by_default
from pyshelf.
Should be fixed with merge #73
from pyshelf.
Related Issues (20)
- Binary image display in template HOT 2
- [Feature] ebook friendly ui HOT 2
- Installation Options
- Incorrect Website HOT 3
- Linux Install importBooks Issue HOT 3
- Django settings contain sensitive data and debug is default on HOT 7
- Add ability to import books from frontend HOT 6
- Add ability to directly E-mail Mobi files to Kindle E-mail addresses
- Allow user defined config variables as docker environment variables
- Add Support for Other Architectures HOT 1
- Website is down HOT 1
- Dynamically display books in html HOT 2
- Import books times out when executed from web ui HOT 1
- sqlite support ? HOT 1
- Features - link pyshelf to pyshelf HOT 2
- Calibre support
- Add user HOT 1
- Features - github support HOT 3
- Features - attached ressources HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyshelf.