Edo78 / obsidian-koreader-sync

Obsidian.md plugin to sync highlights/notes from koreader
MIT License
76 stars 7 forks source link

Only getting highlights from books in the root folder of the KOreader device #63

Open s-cassidy opened 2 years ago

s-cassidy commented 2 years ago

I use calibre to add books to my KOreader device, which by default makes a separate folder for each author on the device. Therefore almost all my books are in sub-folders corresponding to authors. When I use the KOreader sync plugin, I only get the highlights from the handful of books in the root folder of the device.

Is there a way around this or could you add a recursive folder sync option?

jjanvier commented 2 years ago

Same for me. I could maybe open a PR to fix the problem if you show me where it could be fixed

jjanvier commented 2 years ago

From what I understood from the code @Edo78 you're looking for files called metadata*.lua on the reader https://github.com/Edo78/obsidian-koreader-sync/blob/master/src/koreader-metadata.ts#L23

The problem is that I don't have such files on my reader.