wustho / epy

CLI Ebook (epub2, epub3, fb2, mobi) Reader
GNU General Public License v3.0
962 stars 52 forks source link

Where is stored the bookmark file? #17

Closed NicolasFlandrois closed 3 years ago

NicolasFlandrois commented 3 years ago

Hi,

I am looking into the possibility to read books cross devices, and therefore the possibility to export/import bookmarks from a device to another (without transferring the entire book every time).

I can see through your code that you store the bookmark with the function savestate(). That same function creates json.dump() in a file.

My question then, where is that file stored?

Note: I installed your CLI app through pypi.org/pip install, and use it entirely in CLI. In my search through my device file system, epy is compiled. I don't see any json file around.

So I guess my questions are as follow:

Beside that query, I congratulate for a job well done!

wustho commented 3 years ago

Hey there, that's good idea, especially if it is possible to sync to cloud...

As for state file... You can check by adding -v as an arg, eg. epy -v. It will print version and absolute (path) locations of config file & state file being loaded.

It should be one of these:

NicolasFlandrois commented 3 years ago

Super cool ! Thx!

FYI, initially, I thought to use the power of a git server. Syncking around all devices would be "easier". But Yeah! cloud sync, on any platform could totally work!