Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Server

Notices

Reply
 
Thread Tools Search this Thread
Old 01-10-2025, 03:47 AM   #1
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 540
Karma: 32158
Join Date: Feb 2012
Device: Onyx Boox Leaf
Calibre://URL and the Content Server

Dear Kovid,

First of all, thank you for your response and implementation in the plugin section. I would like to start a new thread for it where I don't disturb others.

I have updated Calibre to the latest version today (7.24), and try the calibre:// (for the first time).

Code:
calibre://show-book/Library_Name/book_id
1) It works in the Main Calibre but not functioning in the Content Server. I notice that the the URL shown in the status bar of Microsoft Edge when I hover the mouse on the link still shows calibre://. I think it should be converted to https or whatever the domain is???

2) Is it possible to make the Library_Name optional? I mean without it the "current" library name should apply. The reason is that I don't know what would happen when I "rename" the Library Name for whatever reason.

Best regards.
nqk is offline   Reply With Quote
Old 01-10-2025, 03:50 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,766
Karma: 24967300
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
1) works for me. Remember you need to be in the details view that is not in the listing of books but in the actual page for the book, only there are the links translated.

2) Use the Library name _ to mean current library. Although IIRC I havent added support for that to the content server, will do so for next release.
kovidgoyal is online now   Reply With Quote
Advert
Old 01-10-2025, 04:06 AM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,766
Karma: 24967300
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Also, how did you create the link? The best way to do that is right click in the book details panel for the book you want to link to and choose copy link to book.
kovidgoyal is online now   Reply With Quote
Old 01-10-2025, 04:23 AM   #4
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 540
Karma: 32158
Join Date: Feb 2012
Device: Onyx Boox Leaf
1) I manually edit the Comments box. This works just fine in the Main Calibre



Code:
<div>
<p><a href="calibre://show-book/K-lib/12592">test</a></p></div>
2) Thank you.
nqk is offline   Reply With Quote
Old 01-10-2025, 04:56 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,766
Karma: 24967300
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Open a bug report then and attach the metadata.db from the library where it is happening.
kovidgoyal is online now   Reply With Quote
Advert
Old 01-10-2025, 09:18 AM   #6
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 540
Karma: 32158
Join Date: Feb 2012
Device: Onyx Boox Leaf
Quote:
Originally Posted by kovidgoyal View Post
Open a bug report then and attach the metadata.db from the library where it is happening.
Oh. It seems it doesn't work on Microsoft Edge but ok on Chrome. I have no issue so far on Android where I use the Content Server the most. So, I think I am happy with it now. Looking forward to the next released with "current Library" support.

Thank you.

Sent from my Pixel 7 Pro using Tapatalk
nqk is offline   Reply With Quote
Old 01-10-2025, 11:18 AM   #7
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 540
Karma: 32158
Join Date: Feb 2012
Device: Onyx Boox Leaf
The "current library" works with Content Server already.

Sent from my Pixel 7 Pro using Tapatalk
nqk is offline   Reply With Quote
Old 01-10-2025, 12:40 PM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,766
Karma: 24967300
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yeah I guess its router works with _ already no need to special case it.
kovidgoyal is online now   Reply With Quote
Old 01-10-2025, 07:12 PM   #9
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,215
Karma: 29110326
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by nqk View Post
Oh. It seems it doesn't work on Microsoft Edge but ok on Chrome.
Last time I tried not even Onenote links worked on Edge

Edge was great when it had its own layout engine, its ePUB viewer was my favourite, but then M$ Blinked. That said, I do use it as my calibre browser via the openers_by_scheme Tweak.

BR
BetterRed is online now   Reply With Quote
Old 01-10-2025, 08:10 PM   #10
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 540
Karma: 32158
Join Date: Feb 2012
Device: Onyx Boox Leaf
Quote:
Originally Posted by kovidgoyal View Post
Yeah I guess its router works with _ already no need to special case it.
It renders the URL as follows

Code:
https://192.168.50.33:1808/#book_id=8408&library_id=_&panel=book_details
Here, the Content Server will tell me that I have no permission to modify the library _, if I attempt to edit the metadata. The cover page doesn't show up here either.

I manually remove the "&library_id=_" to make it editable. Small hiccup only.

Sent from my Pixel 7 Pro using Tapatalk
nqk is offline   Reply With Quote
Old 01-10-2025, 08:11 PM   #11
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,766
Karma: 24967300
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...b11e0ac59f3b2a
kovidgoyal is online now   Reply With Quote
Old 01-13-2025, 03:57 AM   #12
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 540
Karma: 32158
Join Date: Feb 2012
Device: Onyx Boox Leaf
Thank you, Kovid.

When you have time, would you support other syntaxes as well, including view-book, search and book-details?
nqk is offline   Reply With Quote
Old 01-13-2025, 05:02 AM   #13
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,766
Karma: 24967300
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
view-book is already supported. and show-book takes you to the details page anyway. As for search, dont really see the point, what's the use case?
kovidgoyal is online now   Reply With Quote
Old 01-13-2025, 06:55 AM   #14
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 540
Karma: 32158
Join Date: Feb 2012
Device: Onyx Boox Leaf
Quote:
Originally Posted by kovidgoyal View Post
view-book is already supported. and show-book takes you to the details page anyway. As for search, dont really see the point, what's the use case?
Oh, it is quite useful. Just say you have a boxset of books (not series), or translated books of the same title. If you use show-book, it would need many links for a all related books. With search, you can simply and a common query. Very useful.

Using book-id is good, but if the book is deleted (then added) the link will be broken, because the id is changed.

Sent from my Pixel 7 Pro using Tapatalk

Last edited by nqk; 01-13-2025 at 07:16 AM.
nqk is offline   Reply With Quote
Old 01-14-2025, 06:03 AM   #15
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,766
Karma: 24967300
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...9145989dd4435d
kovidgoyal is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
URL to authenticate on content server? cristoslc Server 2 07-05-2020 11:28 PM
Calibre GUI content server url-prefix ilovejedd Calibre 5 02-08-2012 12:07 AM
Content Server url prefix not working Caleb666 Calibre 3 09-04-2011 12:43 PM
Content Server --url-prefix danorum Calibre 8 12-12-2010 01:02 AM
Content Server Library Selection (also vhosts/url error questions) mmseng Calibre 9 10-30-2010 03:27 AM


All times are GMT -4. The time now is 12:38 AM.


MobileRead.com is a privately owned, operated and funded community.