![]() |
#1 |
Enthusiast
![]() Posts: 37
Karma: 10
Join Date: Oct 2020
Device: Kindle Paperwhite (1)
|
Custom URL Scheme
Hello,
I was wondering if a Custom URL Scheme does exist or could be implemented to launch the app passing some parameters to it. My use case would be to launch the app passing a search string (or book id in the library) in order to use this link from another app or website. An example could be the (mac) Dash App. It uses the Code:
dash://{query} Would anyone else find this useful or just me? ![]() Would it be feasible? |
![]() |
![]() |
![]() |
#3 |
Enthusiast
![]() Posts: 37
Karma: 10
Join Date: Oct 2020
Device: Kindle Paperwhite (1)
|
AWESOME!!! :]
|
![]() |
![]() |
![]() |
#4 |
Enthusiast
![]() Posts: 37
Karma: 10
Join Date: Oct 2020
Device: Kindle Paperwhite (1)
|
Follow-up question:
Given we now have this awesome functionality, does it exist a way to export libraries and book lists as textual data? For example my entire book list as CVS. This would be very useful in building these custom urls having the entire list of identifiers of my books/libraries |
![]() |
![]() |
![]() |
#5 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,195
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Enthusiast
![]() Posts: 37
Karma: 10
Join Date: Oct 2020
Device: Kindle Paperwhite (1)
|
I'm having a problem with this.
My library is located for example at '/Users/myuser/Calibre Library', so accordingly to the manual I call the url by replacing any space in the library name with an underscore `_` I have tried: - `calibre://show-book/Calibre_Library/1` - `calibre://show-book/Users/myuser/Calibre_Library/1` - `calibre://search/Calibre_Library?q=mysearch` All of them open the application but nothing more. So I guess there is a problem in my library name, otherwise I'm not sure what I'm doing wrong. This is not clear for me, from the Manual: Quote:
Please let me know if I should open another thread for this specific problem Last edited by groob; 11-19-2020 at 02:09 PM. |
|
![]() |
![]() |
![]() |
#7 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 243
Karma: 291844
Join Date: Oct 2019
Device: Kobo Nia
|
Are you using quote marks around your command string?
I used this and it opened Calibre and showed the result of the query Quote:
|
|
![]() |
![]() |
![]() |
#8 |
Enthusiast
![]() Posts: 37
Karma: 10
Join Date: Oct 2020
Device: Kindle Paperwhite (1)
|
|
![]() |
![]() |
![]() |
#9 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,985
Karma: 168961900
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Code:
"C:\Program Files\Calibre2\calibre.exe" Code:
"C:\Program Files\Calibre2\calibre.exe" calibre://show-book/Main/23863 Code:
"C:\Program Files\Calibre2\calibre.exe" calibre://search/Main?q=crooked Last edited by DNSB; 11-19-2020 at 10:49 PM. |
|
![]() |
![]() |
![]() |
#10 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 243
Karma: 291844
Join Date: Oct 2019
Device: Kobo Nia
|
I don't know what to add.
As I've shown the manual is correct in that changing any spaces in the library name to underscore works. Are you sure that there isn't anything odd about your calibre library name? Like an invisible character or something? I also used calibre-debug -g calibreurl to launch calibre to do the search and it also worked. But unfortunately it doesn't show anything to do with the URL or the library name, so it wasn't giving me any clue if I misspelt the library name or not. Last edited by georgemk; 11-20-2020 at 05:41 AM. Reason: Add debug paragraph |
![]() |
![]() |
![]() |
#11 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,322
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Open a book from the library in the calibre viewer, then click on Go to->Location and copy the URL from there. Adjust it as needed to do other things.
|
![]() |
![]() |
![]() |
#12 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Nov 2020
Device: none
|
Have the same problem.
Hi,
I can't seem to get this working either. I'm on macOS with Caliber 5.5. I have a library name "Calibre Library". I opened a book to get the URL. The URL I get from the Calibre Viewer is: Code:
URL for this position: calibre://view-book/_hex_-43616c696272655f4c696272617279/206/EPUB?open_at=epubcfi(/2/2/4/2@49.92:50) Code:
calibre://show-book/_hex_-43616c696272655f4c696272617279/206 Just to check I made sure things made sense (0a at end is null terminator): Code:
xxd -p <<< "Calibre_Library" 43616c696272655f4c6962726172790a Code:
xxd -p <<< "Calibre Library" 43616c69627265204c6962726172790a calibre://show-book/_hex_-43616c69627265204c696272617279/206 Thanks! |
![]() |
![]() |
![]() |
#13 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,322
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Works fine for me on macOS, running:
/Applications/calibre.app/Contents/MacOS/calibre calibre://show-book/Calibre_Library/12 replace 12 above with the id of some book in the library. |
![]() |
![]() |
![]() |
#14 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,322
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Or, via launch services:
open -a calibre.app --args calibre://show-book/Calibre_Library/12 |
![]() |
![]() |
![]() |
#15 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,322
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The launch services one does not however work if calibre is already running.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
html to pdf error: Blocking URL request with scheme: https | bobwolfe | Conversion | 8 | 06-15-2021 06:04 AM |
Help with URL Scheme for Google Translate (Mobile) | MeSue | Marvin | 30 | 10-04-2013 10:53 AM |
Would anyone know Slovoed's URL Scheme | Heitor | Marvin | 3 | 09-25-2013 01:16 AM |
Kobo custom font, naming scheme | sneakyspider | Kobo Reader | 3 | 05-16-2013 04:27 AM |