Replies: 8 comments 1 reply
-
Another request of the same kind: Hi I'm looking a way to modify the publications folder. |
Beta Was this translation helpful? Give feedback.
-
A reference is Calibre: https://blog.calibre-ebook.com/how-to-backup-move-and-export-your-library-in-calibre/ |
Beta Was this translation helpful? Give feedback.
-
For expert / technical users, there is a workaround to "externalise" the publications folder: filesystem symbolic linking. For example on MacOS (and I assume Linux too):
Naturally, this technique is for advanced users only, as command line mistakes are easily made, which can result in corrupting Thorium's database. Notably: the Regarless of how user-friendly the method is, there are significant caveats which is why I would personally be reluctant to offer this feature in the first place: Separating the publication assets from Thorium's internal database gives users a false impression that manually adding/removing files to/from the "externalised" publications folder will work. It will not, it will break things. Thorium automatically discards entries from the publications database when their corresponding assets fail to load. Consequently, if the user makes a mistake when creating the symbolic link, or if they manually edit the contents of the "externalised" publications folder in such a way that the files cannot be found when Thorium starts, then the application's internal database will be updated to remove the offending entries, resulting in loss of data in the user interface. The files remain on the filesystem, but because they are contained in folders named with UUID alphanumerical characters, they will be hard to find. In fact, even if they are found and re-imported, all settings associated with the newly-imported publications are reset to their initial state (i.e. no bookmarks, display configuration, etc.). Plus, unless the user moved the orphan UUID folder out of the "externalised" publication folder, there will be duplicates because Thorium creates a fresh UUID folder for any newly-imported publication. Furthermore, certain publication types such as PDF and DAISY are transformed before they are actually imported into Thorium's database and physical filesystem store, so the resulting An alternative option that could deter users from fiddling with the files manually would be to "externalise" not only the publications folder, but Thorium's entire database system (and possibly other Electron-specific files that are normally stored in |
Beta Was this translation helpful? Give feedback.
-
@panaC in preparation for such "externalised" storage feature which would give Thorium users more flexibility, we would at the very least need to relax the current logic which automatically prunes the database when publication resources fail to load / cannot be found. For example, we could implement a special "flag" that would identify broken bookshelf entries when Thorium starts, and "move" them (logically, not physically) to a lower user interface strip (category in the library view), and highlight them in red or some other "failure" indicator. |
Beta Was this translation helpful? Give feedback.
-
Calibre may offer a good reference on that:
In the export case, because we modify some publications (DAISY), we can admit that the exported format is our internal format, or we can work on a reconstruction of the original format. It's our call but it is independent from the core export feature. |
Beta Was this translation helpful? Give feedback.
-
Moving this to a "discussion", as the issue is currently not actionable (details need to be fleshed out). |
Beta Was this translation helpful? Give feedback.
-
Related question in the documentation repo : edrlab/thorium-reader-doc#11 |
Beta Was this translation helpful? Give feedback.
-
A first simple step could be Export all publications. |
Beta Was this translation helpful? Give feedback.
-
It would be very useful to be able to change the storage location of ebooks, for example to a cloud synced volume so that the library can be accessed from more than one computer. Or even better, if a standard like WebDAV could be added as a storage location.
Many thanks
Beta Was this translation helpful? Give feedback.
All reactions