01-15-2021, 01:31 PM | #1486 | |
Grand Sorcerer
Posts: 6,233
Karma: 11768331
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
|
|
01-15-2021, 04:16 PM | #1487 | |
null operator (he/him)
Posts: 20,565
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
If you add a lot of 'new' authors, then you might want to consider automating the above via a plugin, or an Action Chain what's-it. I don't add new authors that often, so I have no need for automation. My 'biggest' task wasn't the inter-library links, it was 'moving' the data out of the MHT files I exported from Evernote into the columns of 1,440 'books' in my Authors library. I used the MHT files to create the 'books' in the Authors library. BR |
|
Advert | |
|
01-16-2021, 04:02 AM | #1488 |
Grand Sorcerer
Posts: 6,233
Karma: 11768331
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Thank you, I thought that was the way but I was not sure if there was an automated way. As I have a whole library with authors, that is not polished, I think I'll keep it for a future development... or I'll think for the future authors and I'll explore from there (I already copy through a plugin new authors to the authors library).
|
01-16-2021, 05:17 AM | #1489 | |
Grand Sorcerer
Posts: 11,738
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
The code below generates links to a book for every author in the database. The output is 2-column CSV where column 1 is the author name and col 2 is the link. Code:
from calibre.library import db as DB import posixpath lib_path = sys.argv[1] lib_name = '_hex_-' + posixpath.basename(lib_path).encode('utf-8').hex() db = DB(path = lib_path, read_only=True) cache = db.new_api # Loop through all the books in the library author_info = cache.author_data() for auth_id in author_info: auth_books = cache.books_for_field('authors', auth_id) print('"{}",calibre://show-book/{}/{}'.format( author_info[auth_id]['name'], lib_name, str(next(iter(auth_books))))) Code:
calibre-debug -e script.py path-to-library
Last edited by chaley; 01-16-2021 at 05:06 PM. Reason: Forgot script argument to calibre-debug |
|
01-16-2021, 05:49 AM | #1490 | |
Grand Sorcerer
Posts: 6,233
Karma: 11768331
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
|
|
Advert | |
|
01-16-2021, 04:58 PM | #1491 | |
Grand Sorcerer
Posts: 6,233
Karma: 11768331
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
|
|
01-16-2021, 05:01 PM | #1492 |
Grand Sorcerer
Posts: 11,738
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
01-17-2021, 04:35 AM | #1493 |
Grand Sorcerer
Posts: 6,233
Karma: 11768331
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Thank you! I already have the authors extracted, now to load them.
|
02-03-2021, 08:46 PM | #1494 |
Connoisseur
Posts: 79
Karma: 24858
Join Date: Feb 2020
Device: none
|
I submitted an enhancement request that got denied, so I'm hoping someone here could be of assistance.
I'd love to have additional access to the wonderful new URIs. 1. A keyboard shortcut to copy the link to show/open a book to clipboard 2. A right click context menu option to do the same. Is there any existing plugin or other option for doing something like this? |
02-03-2021, 09:18 PM | #1495 |
Custom User Title
Posts: 8,596
Karma: 61176603
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
If you're not already aware, you can right-click on the details pane to copy the Calibre links.
|
02-04-2021, 07:36 AM | #1496 | |
Connoisseur
Posts: 79
Karma: 24858
Join Date: Feb 2020
Device: none
|
Quote:
Edit: looks like kovid reconsidered and added keyboard shortcuts that are off by default but can be customized. I suppose they'll be in tomorrow's release! Last edited by nixsee; 02-04-2021 at 07:41 AM. |
|
02-12-2021, 05:24 PM | #1497 |
(he/him/his)
Posts: 12,159
Karma: 79742714
Join Date: Jul 2010
Location: Sunshine Coast, BC
Device: Oasis (Gen3),Paperwhite (Gen10), Voyage, Paperwhite(orig), Fire HD 8
|
Is there a plugin that allows me to have a book in multiple series? For example, Dana Stabenow has two active series -- Kate Shugak and Liam Campbell. The 19th book in the Kate Shugak series is also the 5th book in the Liam Campbell series. Ideally, I'd like to be able to list it as "Kate Shugak [19.0],Liam Campbell [5.0]" in the series column.
|
02-12-2021, 05:46 PM | #1498 | |
Guru
Posts: 919
Karma: 417282
Join Date: Jun 2015
Device: kobo aura h2o, kobo forma
|
Quote:
|
|
02-12-2021, 05:57 PM | #1499 | |
null operator (he/him)
Posts: 20,565
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Create two books with same title and author but different series, putting the format file(s) into what I regarded as the 'primary book'. And then cross reference and share the content via a calibre://show-book and calibre://view-book links in a #related/Related long text column. As a reminder to click the view_book link to read the content, colour the book line if it has no formats. BR |
|
02-12-2021, 06:03 PM | #1500 |
Grand Sorcerer
Posts: 11,738
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
And then use Grouped search terms (Preferences / Searching / Grouped searches) to combine the standard and custom series columns together for searching.
|
Tags |
calibre, chatbot, cover, epub fix, epub-fix, google books, kindle, metadata calibre title, missing, pdf, pdf and calibre, plugin development, scribe |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-505 Any ideas what this might be? | Neupy | Sony Reader | 4 | 07-03-2012 07:19 AM |
New Plugin Type Idea: Library Plugin | cgranade | Plugins | 3 | 09-15-2010 12:11 PM |
Ideas? | mike_bike_kite | Which one should I buy? | 10 | 06-13-2010 03:37 PM |
Ideas | F1Wild | Amazon Kindle | 4 | 07-10-2009 06:01 AM |