![]() |
#1 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: May 2025
Device: none
|
Trying to extract ISBN from title using action chain
Hi
I installed calibre yesterday and i try to import my books into it right now. As my books are in german, they wont get recognized that good. Several of my books are in pdf and the isbn is at the beginning of the title. Because of that, i installed the plugin "action chains" and made a action to extract the isbn from the title, which works fine, as long as i only have one book selected. if i have multiple books selected, every book gets the same ISBN. How can i run the action chain for each of the selected books or is there and easier way? Action Chain Single Filed Edit Column = identifiers Template Code:
program: title = from_selection('title'); isbn = shorten(title,13,"",0); test = ("isbn: " & isbn) |
![]() |
![]() |
![]() |
#2 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 875
Karma: 409970
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
|
I haven't tried the Extract ISBN plugin.
|
![]() |
![]() |
![]() |
#3 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: May 2025
Device: none
|
hey
i tried the Extract ISBN Plugin too. It cant find the ISBN. As i understand the plugin, it only looks on the pages itself. The ISBN would be on page 2 on the lower end and the plugin dosnt find it. Maybe because its a pdf? |
![]() |
![]() |
![]() |
#4 | |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,605
Karma: 7511185
Join Date: Sep 2020
Device: none
|
Quote:
To extract from titles, you could use a Python template instead, I've attached an example that worked fine for me. Your GPM template is missing a $ in second line: isbn = shorten($title,13,"",0); |
|
![]() |
![]() |
![]() |
#5 | |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: May 2025
Device: none
|
Quote:
adding the $ fixed the problem and i am finally able to select all files and get the isbn from the title. |
|
![]() |
![]() |
![]() |
#6 | |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,605
Karma: 7511185
Join Date: Sep 2020
Device: none
|
Quote:
(I forgot to tell you how to import the chain: you want to right-click Action Chains main dialog then choose import and load the zip file) |
|
![]() |
![]() |
![]() |
#7 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,398
Karma: 145491800
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#8 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,306
Karma: 168808723
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
![]() |
![]() |
![]() |
#9 | |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: May 2025
Device: none
|
Quote:
@Comfy.n ty for claryfing. i didnt have any identifier yet so it was no problem that it would delete them. now as i know how to add your chain, i will test it as soon as the current import / metadata import is complete. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Extract ISBN | kiwidude | Plugins | 548 | 03-04-2025 10:43 PM |
Any way to automatically Extract ISBN on add | ajdthomson | Library Management | 2 | 08-12-2021 02:36 PM |
Extract ISBN from PDF? | mdroberts | Calibre | 14 | 12-16-2016 07:32 AM |
[Old Thread] Extract ISBN from file name | ChristianQ | Calibre | 59 | 12-09-2015 05:08 AM |