Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-10-2021, 04:10 PM   #1
J-H
Member
J-H began at the beginning.
 
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.
Attached Files
File Type: zip Adlibris.zip (19.1 KB, 199 views)

Last edited by J-H; 10-03-2022 at 10:50 AM.
J-H is offline   Reply With Quote
Old 01-11-2021, 03:39 PM   #2
J-H
Member
J-H began at the beginning.
 
Posts: 17
Karma: 30
Join Date: Jan 2021
Device: Kindle
<reserved for future use>
J-H is offline   Reply With Quote
Advert
Old 01-12-2021, 12:00 PM   #3
SirBeardAlot
Member
SirBeardAlot began at the beginning.
 
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!
SirBeardAlot is offline   Reply With Quote
Old 01-12-2021, 12:25 PM   #4
SirBeardAlot
Member
SirBeardAlot began at the beginning.
 
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
SirBeardAlot is offline   Reply With Quote
Old 01-14-2021, 03:57 PM   #5
J-H
Member
J-H began at the beginning.
 
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
J-H is offline   Reply With Quote
Advert
Old 01-15-2021, 09:55 AM   #6
SirBeardAlot
Member
SirBeardAlot began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Aug 2019
Device: Kobo Libra H20
Quote:
Originally Posted by J-H View Post
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
It's not causing any actual problem (except in my head). Most other sites have shorter id's (just numbers). The long id from Adlibris makes it look a little bit messy.

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.
SirBeardAlot is offline   Reply With Quote
Old 01-15-2021, 10:30 AM   #7
J-H
Member
J-H began at the beginning.
 
Posts: 17
Karma: 30
Join Date: Jan 2021
Device: Kindle
Quote:
Originally Posted by SirBeardAlot View Post
It's not causing any actual problem (except in my head). Most other sites have shorter id's (just numbers). The long id from Adlibris makes it look a little bit messy.

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.
Ok, good
J-H is offline   Reply With Quote
Old 02-05-2021, 03:11 AM   #8
J-H
Member
J-H began at the beginning.
 
Posts: 17
Karma: 30
Join Date: Jan 2021
Device: Kindle
Quote:
Originally Posted by SirBeardAlot View Post
It's not causing any actual problem (except in my head). Most other sites have shorter id's (just numbers). The long id from Adlibris makes it look a little bit messy.

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.
The long Adlibris id is removed from the latest version. It now only uses the isbn.

Enjoy
J-H is offline   Reply With Quote
Old 04-11-2021, 03:54 PM   #9
Marween
Junior Member
Marween began at the beginning.
 
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"
)
Replace with:
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")
Marween is offline   Reply With Quote
Old 04-11-2021, 06:36 PM   #10
Marween
Junior Member
Marween began at the beginning.
 
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)
This will leave index out for all that has a series listed but not index, so they'll all end up as [1], but it's better than crashing/failing to download metadata I think?

Example: https://www.adlibris.com/se/e-bok/de...-9788726381689
Marween is offline   Reply With Quote
Old 04-20-2021, 04:41 AM   #11
SirBeardAlot
Member
SirBeardAlot began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Aug 2019
Device: Kobo Libra H20
Quote:
Originally Posted by J-H View Post
The long Adlibris id is removed from the latest version. It now only uses the isbn.

Enjoy
That's nice!

Found something else:

The link to Adlibris in the book details windows leads to the finnish Adlibris site, despite having Swedish selected in options.
SirBeardAlot is offline   Reply With Quote
Old 04-29-2021, 12:27 AM   #12
J-H
Member
J-H began at the beginning.
 
Posts: 17
Karma: 30
Join Date: Jan 2021
Device: Kindle
Marween and SirBeardAlot, thank you for noticing. Those issues should be fixed now.
J-H is offline   Reply With Quote
Old 07-27-2022, 06:05 PM   #13
baaba1012
Junior Member
baaba1012 began at the beginning.
 
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?
baaba1012 is offline   Reply With Quote
Old 10-03-2022, 10:52 AM   #14
J-H
Member
J-H began at the beginning.
 
Posts: 17
Karma: 30
Join Date: Jan 2021
Device: Kindle
Quote:
Originally Posted by baaba1012 View Post
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?
Hi!

Should work now. Let me know if there are any issues.

best regards,
J-H
J-H is offline   Reply With Quote
Old 11-15-2022, 05:25 AM   #15
Number9
Dude
Number9 ought to be getting tired of karma fortunes by now.Number9 ought to be getting tired of karma fortunes by now.Number9 ought to be getting tired of karma fortunes by now.Number9 ought to be getting tired of karma fortunes by now.Number9 ought to be getting tired of karma fortunes by now.Number9 ought to be getting tired of karma fortunes by now.Number9 ought to be getting tired of karma fortunes by now.Number9 ought to be getting tired of karma fortunes by now.Number9 ought to be getting tired of karma fortunes by now.Number9 ought to be getting tired of karma fortunes by now.Number9 ought to be getting tired of karma fortunes by now.
 
Number9's Avatar
 
Posts: 195
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.
Number9 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 05:48 AM.


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