bingryan / obsidian-ibook-plugin

export mac ibook annotations/hightlights to obsidian vault
MIT License
72 stars 2 forks source link

Why won't a certain book import? #49

Closed wealthychef1 closed 1 year ago

wealthychef1 commented 1 year ago

Hello, I was able to import four books to my Obsidian vault, lovely. Canceling Readwise in 4... 3... 2... However on the fifth book, it just seemed to silently fail. There are many highlights in the book, and it's the same format as the others, which is epub, but it just doesn't show up in the target folder. How can I troubleshoot this please?
Thanks for any guidance

bingryan commented 1 year ago

Can you search for your book through export-single-book-by-search

bingryan commented 1 year ago

delelte ibook dir, and try again.

you can open view-> Toggle Developer Tools, Check to see if there are five records like:

$ echo "
        SELECT 
            DISTINCT ZASSETID
        FROM ZBKLIBRARYASSET
    " | sqlite3  xxxxxxx
wealthychef1 commented 1 year ago

Can you search for your book through export-single-book-by-search

Yes and that is in fact how I'm doing this... is there a bulk import?

wealthychef1 commented 1 year ago

delelte ibook dir, and try again.

I did this and it had no apparent effect.

you can open view-> Toggle Developer Tools, Check to see if there are five records like:

$ echo "
      SELECT 
          DISTINCT ZASSETID
      FROM ZBKLIBRARYASSET
  " | sqlite3  xxxxxxx

There are not those records, but there is this when I try to import the book. It is indeed a lengthy book, is it hitting a word/character limit?

2023-05-13 17 46 42 CleanShot Obsidian
bingryan commented 1 year ago

Can you search for your book through export-single-book-by-search

Yes and that is in fact how I'm doing this... is there a bulk import?

https://github.com/bingryan/obsidian-ibook-plugin#export-all

bingryan commented 1 year ago

delelte ibook dir, and try again.

I did this and it had no apparent effect.

you can open view-> Toggle Developer Tools, Check to see if there are five records like:

$ echo "
        SELECT 
            DISTINCT ZASSETID
        FROM ZBKLIBRARYASSET
    " | sqlite3  xxxxxxx

There are not those records, but there is this when I try to import the book. It is indeed a lengthy book, is it hitting a word/character limit? 2023-05-13 17 46 42 CleanShot Obsidian

default 200KB, For your issue, I should increase the buffer :)

bingryan commented 1 year ago

@wealthychef1 update this plugin, try again :)

batch : https://github.com/bingryan/obsidian-ibook-plugin#export-all single: https://github.com/bingryan/obsidian-ibook-plugin#export-single-book-by-search

wealthychef1 commented 1 year ago

Confirmed fixed! Thank you. I'll check into the mass export soon.
I have an existing spreadsheet which I exported to CSV.
I want to combine my notes with the ibooks import somehow... that's my next project.
Thanks!