duydl / logseq-calibre-annotation

Other
20 stars 2 forks source link

Can not open the epub book in logseq #5

Closed yibie closed 8 months ago

yibie commented 8 months ago

I can search the name of book, but when I click the 'open' button, logseq can not open the book. It shows "network error. Is the serve running or accessible?" image

But I seted the content sever of Calibre: image

Now, I don't know where the problem is.

At last, thanks for your great work!

duydl commented 8 months ago

Try clicking on the Test Server button. It will redirect you to the content server link in the browser, like this: http://127.0.0.1:8081/. Check if you can read books normally that way on the browser.

If you can, replace the link in the renderer {{renderer calibreViewer, special, http://localhost:8080/#book_id=24&fmt=epub&library_id=Audio-eBooks&mode=read_book}} {{renderer calibreHighlight, false, 2000, http://localhost:8080, Audio-eBooks, 24, epub}} with that link. Also replace the link in the setting of Calibre Metadata. image

If you cannot, we will have to discuss further. It would likely be a problem on Calibre side.

yibie commented 8 months ago

I had tryed, but it still show the wrong message: Failed to communicate with "//interface-data/init?1697553811876", network error. Is the server running and accessible

I replace the link in the renderer:

image

I changed the plugin setting: image

Calibre content sever works well, can open books, and read:

image
duydl commented 8 months ago

Remove the extra / after the port in the renderer to open the book and in the setting for later use. Hope that will resolve it. There was another user who had an issue stemming from the double slash.

yibie commented 8 months ago

It fixed now!

Thanks a lot.