![]() |
#1 |
Member
![]() Posts: 17
Karma: 30
Join Date: Jan 2021
Device: Kindle
|
[Metadata Source Plugin] Adlibris (Finland / Norway / Sweden)
Adlibris - Version 0.2.0 - 2022.10.03 - by J-H.
This plugin is for using Adlibris.com as a metadata source. It is compatible with Adlibris.com in Finland, Norway and Sweden. Choose from the plugin settings in Calibre which one you want to use. This plugin is originally based on plugins by Pr. BarnArt and Grant Drake. Installation Notes: Download the attached zip file and install the plugin as described in the Introduction to plugins thread. You can configure the plugin within Calibre. Changelog: v. 0.2.0 - 2022-10-03 * works with Calibre 6 and up (tested with 6.5) v. 0.1.2 - 2021-04-25 * fixed the link to the book. Now it refers to the chosen store (FI/SE/NO) and not always to the FI-store. * fixed series indexing. (thanks to Marween) + if the are no title matches, the plugin will try to remove 'unnecessary' part of the title and makes a new search: eg. the book's subtitle may be added to the title after a ':' or a '-' v. 0.1.1 - 2021-02-04 - removed adlibris_id as an id + isbn is now the only id + If no author is found the plugin will search for editor(s). + The plugin utilizes Dictor: an elegant dictionary and JSON handler by author Mike Reider. https://github.com/perfecto25/dictor v. 0.1.0 - 2021-01-10 Initial release. Last edited by J-H; 10-03-2022 at 10:50 AM. |
![]() |
![]() |
![]() |
#2 |
Member
![]() Posts: 17
Karma: 30
Join Date: Jan 2021
Device: Kindle
|
<reserved for future use>
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 17
Karma: 10
Join Date: Aug 2019
Device: Kobo Libra H20
|
Been looking for a swedish metadata source plugin like this for ages.
This plugin found metadata for several swedish books which no other plugin has been able to find. Thank you J-H. Keep up the good job! |
![]() |
![]() |
![]() |
#4 |
Member
![]() Posts: 17
Karma: 10
Join Date: Aug 2019
Device: Kobo Libra H20
|
I noticed that the adlibris identifier is extremely long. Does it have to be this long?
One example: adlibris_id:/se/bok/den-professionella-logiken-hur-vetenskap-och-praktik-forenas-i-det-moderna-kunskapssamhallet-9789147097609 |
![]() |
![]() |
![]() |
#5 |
Member
![]() Posts: 17
Karma: 30
Join Date: Jan 2021
Device: Kindle
|
Hi SirBeardAlot,
Nice to hear that you like the plugin. About the adlibris_id. As you can see the id is a part of url of the book. At the moment I do not know a shorter way to reference the book's adlibris page directly. What kind of problems the id is causing you? J-H |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Member
![]() Posts: 17
Karma: 10
Join Date: Aug 2019
Device: Kobo Libra H20
|
Quote:
![]() But hey, it's not a big deal at all. I am very happy with the plugin the way it is, and it works great for me. |
|
![]() |
![]() |
![]() |
#7 | |
Member
![]() Posts: 17
Karma: 30
Join Date: Jan 2021
Device: Kindle
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#8 | |
Member
![]() Posts: 17
Karma: 30
Join Date: Jan 2021
Device: Kindle
|
Quote:
Enjoy ![]() |
|
![]() |
![]() |
![]() |
#9 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Apr 2021
Device: none
|
I fixed the series indexing not working:
Line 114-118 in worker.py: Code:
# Series mi.series = dictor(data, "ProductVariants.0.ProductInfo.Series.Values.0.Value") mi.publisher = dictor( data, "ProductVariants.0.ProductInfo.Publisher.Values.0.Value" ) Code:
# Series series = dictor(data, "ProductVariants.0.ProductInfo.Series.Values.0.Value") series_index = dictor(data, "ProductVariants.0.ProductInfo.Series.Values.0.Unit") if series is not None: series_index = re.search("(\d+)", series_index) if series_index is not None and float(series_index.group(1)) < 3000: mi.series = series mi.series_index = series_index.group(1) mi.publisher = dictor(data, "ProductVariants.0.ProductInfo.Publisher.Values.0.Value") |
![]() |
![]() |
![]() |
#10 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Apr 2021
Device: none
|
Actually, for the odd case where series exist but it doesn't have a index:
Code:
if series is not None: mi.series = series if series_index is not None: series_index = re.search("(\d+)", series_index) if series_index is not None and float(series_index.group(1)) < 3000: mi.series_index = series_index.group(1) Example: https://www.adlibris.com/se/e-bok/de...-9788726381689 |
![]() |
![]() |
![]() |
#11 |
Member
![]() Posts: 17
Karma: 10
Join Date: Aug 2019
Device: Kobo Libra H20
|
|
![]() |
![]() |
![]() |
#12 |
Member
![]() Posts: 17
Karma: 30
Join Date: Jan 2021
Device: Kindle
|
Marween and SirBeardAlot, thank you for noticing. Those issues should be fixed now.
|
![]() |
![]() |
![]() |
#13 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jul 2022
Device: Pocketbook Inkpad 3
|
Hi!
Thank you for an awesome plugin. I'm not sure if you are still developing it but it has stopped working since Calibre was updated to 6.X. Is there any chance this plugin would be compatible with current Calibre version in the future? ![]() |
![]() |
![]() |
![]() |
#14 | |
Member
![]() Posts: 17
Karma: 30
Join Date: Jan 2021
Device: Kindle
|
Quote:
Should work now. Let me know if there are any issues. best regards, J-H |
|
![]() |
![]() |
![]() |
#15 |
Dude
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 206
Karma: 2184130
Join Date: Feb 2014
Location: Dobbstown
Device: Kobo Aura One; Kobo Aura H2o; Sony Reader PRS-T3
|
It works fine on my end. 👍🏻
Last edited by Number9; 11-19-2022 at 11:06 AM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Metadata Source Plugin] ADLIBRIS (SE) | Pr.BarnArt | Plugins | 49 | 01-11-2021 03:45 PM |
(Sweden) Adlibris has new Letto Frontlight... | owly | News | 1 | 12-03-2014 04:23 AM |
(Sweden) Adlibris has an ebook-sale | owly | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 07-04-2014 03:08 AM |
Adlibris Letto sale (Sweden) | owly | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 06-03-2014 10:20 AM |
(Sweden) Adlibris Letto for half price | owly | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 11-19-2013 10:35 AM |