View Single Post
Old 03-27-2022, 08:51 PM   #364
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by grumbleskin View Post
So I am playing with this plugin and I am not understanding something. When I do a search from the homepage it sends me to a second page that lists the possible matches. When you click on them it takes you to the actual title.

I assume this is a POST command. https://www.rpg.net/megasearch.phtml
Is this what I need to start my search thread with in the plugin? Or is it the actual page of the actual title? https://index.rpg.net/display-entry.phtml?mainid=4042

I am sorry I am very noobish, but I am trying to learn how this works.
You use whichever gives you the results you want. But, usually it would be the first one. The plugin is "Internet Search" and the usual idea is to open a URL with parameters build from the metadata of the book to search for the information needed. But, if you can work out the exact URL from the metadata, then that would work as well.

Having said that, if I am interpreting the URL correctly, I would do it in a different way. The link takes me to the page for a specific book. The site is using "4042" to identify that book. I would create this as an identifier. Then you can click in the identifiers section of the details pane for the book to open the URL. The identifier can be associated with a metadata source plugin (can search the site for the book and fetch the metadata) or an identifier rule. The latter is created in the preferences and defines the URL to be used for an identifier when there is no associated source plugin.

The identifier rules are created in the calibre preferences, on the "Look & Feel" page under "Book Details". For this site, I would create an identifier rule something like:

Code:
Key: rpg
Name: rpg.net
Template: https://index.rpg.net/display-entry.phtml?mainid={id}
Then you add an identifier "rpg:4042" in to the identifier field of the book. Afterwards, the details pane for a book will show "rpg.net" as a clickable link. And to add the identifier, you can copy the URL for the page into the clipboard and click the identifier paste button.
davidfor is offline   Reply With Quote