-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add more structured data when importing clippings & books #5
Comments
Note that things like date are localized and seem to use different formats (maybe depending on the Kindle device?). Examples
|
Why there is author_name as a separate field in the Clipping model, when there is the same field inside the Book model, and the Book model is used as a fk? |
Do you know if the part which differentiate between a highligh, a bookmark, and a note is also localized?
|
I don't quite remember. I think books were introduced later and there are plaintext(/non-kindle) clippings where we simply don't know the book (but the author) |
No, I think I noticed the above localization difference in error logs or something like that. This certainly is also a reason to store the actual raw files - then we might learn better, how they work (I think they also differ based on the device model...) |
So do you want to store each MyClippings as plaintext inside db? |
Would there be a reason to prefer something else like the filesystem over the DB? 🤔 But I guess going with the DB makes most sense. We could have a model for uploads which stores the timestamps and the file contents. Going forward, created clippings could reference this model if we want to keep track of this information (not sure whether this might be a useful feature in the future?). |
I think not. Besides, exporting all data from one model to txt files can be done with just a few lines of code.
Exactly, the MyClippings model would just have a TextField and a timestamp. I would use MyClippings files just to understand how they work, but regarding additional fields (author, note, date) and overall data update process I would choose the solution mentioned here: #16 (comment) |
We're currently not storing all data which can be found in
My Clippings.txt
.The text was updated successfully, but these errors were encountered: