noembryo / KoHighlights

KOHighlights is a utility for viewing KOReader's highlights and/or export them to simple text, html, csv or markdown files.
MIT License
128 stars 5 forks source link

Android Device not recognized in "Scan Directory"-dialogue #13

Closed Steiner91 closed 3 years ago

Steiner91 commented 3 years ago

Hi,

your tool is greatly useful all in all, I have however one little issue that makes exporting notes more cumbersome than it needs to be. I use a Likebook Mars as ereader and this device is unfortunately not recognized when I want to scan its book directory. I attached a screenshot, where you can see this: 2021-04-04 (2) My ereader appears as Likebook-T80D in the file explorer, but not in KoHighlights. Is there any way to fix this?

Best regards and thanks in advance.

noembryo commented 3 years ago

AFAIK in android readers when you press the Scan Directory button and select the the reader's drive (that I assumed you did), KOHighlights searches it for a directory named Koreader, which in turn must contains a directory named History, that has all the metadata files of the read books. A way to make it more specific is to select the History directory yourself. Does your system contains these folders?

Steiner91 commented 3 years ago

Thanks for your quick answer, I guess I was too unspecific. The problem is, that the reader's drive is not listed in the Scan Directory-browser at all, so I can't select it.

noembryo commented 3 years ago

Hmm.. That could mean that the partition that the android system presents to windows is not a normal USB Mass Storage device. I would guess its an MTP drive. The only solution to this, is to copy the History folder manually to a normal drive and select it with the Scan Directorry button..

Steiner91 commented 3 years ago

Yes, it is an MTP drive, the reader gives no other option unfortunately. Ah, that's a pity, and there is no easy way to implement support for MTP drives?

noembryo commented 3 years ago

Unfortunately this layer of functionality (the file selector) is provided by Qt4 itself (PySide) so there is nothing I can do to add support for MTP :disappointed: