johnfactotum / foliate

Read e-books in style
https://johnfactotum.github.io/foliate/
GNU General Public License v3.0
6.2k stars 288 forks source link

Import Google Play Books metadata #645

Closed hirnschmalz closed 3 years ago

hirnschmalz commented 3 years ago

Question: Is there a way to import metadata (last reading position, annotations, comments) made in Google Play Books?

Version:

johnfactotum commented 3 years ago

Does Google provide a way to export those data? If so, what does the exported data look like?

hirnschmalz commented 3 years ago

This data can exported via Google Takeout. I can provide you some sample data if you want.

I thought of this more as a one time action rather than something like a sync. I switched from Google to a self hosted Nextcloud and to foliate as my primary ebook reader. And now it would be great if the metadata could be transferred.

johnfactotum commented 3 years ago

The format used by Foliate is documented in the wiki. You can try writing your own script to convert from Google. The most important bit is the CFI. If Google provides CFI data, and you have the exact same EPUB file available to be opened by Foliate, then the conversion should, at least in theory, be straightforward. If not, then a direct import would not currently be possible.

hirnschmalz commented 3 years ago

Thanks for your answer. Since I only have one book to migrate it won't make sense to create a script. I was just wondering if such a migration script already exists.