08-26-2024, 08:30 PM | #1876 | |
null operator (he/him)
Posts: 21,114
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
08-27-2024, 11:56 AM | #1877 |
Junior Member
Posts: 5
Karma: 10
Join Date: Aug 2024
Device: Fire HD 10 (7th generation)
|
That's what I figured. I was hoping to make one myself, but I have no experience with coding. I tried reading the "Writing your own plugins to extend calibre’s functionality" manual on the Calibre website, but it all goes over my head. I couldn't find a easy tutorial anywhere? If you know of any, it would be appreciated. Or, is it impossible to explain in an "easy" way? Thanks! Rei
|
Advert | |
|
08-27-2024, 12:06 PM | #1878 |
Plugin Developer
Posts: 6,611
Karma: 4600391
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
IMO, the best approach is to find an existing plugin that does something similar and look at the code for that. There are several metadata plugins that scrape websites.
|
08-29-2024, 08:56 AM | #1879 | |
Junior Member
Posts: 5
Karma: 10
Join Date: Aug 2024
Device: Fire HD 10 (7th generation)
|
Quote:
Thanks! Rei |
|
08-29-2024, 11:11 AM | #1880 |
Plugin Developer
Posts: 6,611
Karma: 4600391
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
I don't use any metadata plugins. I believe most of them scrape a site somewhere. I'll start with a newer one.
All Calibre plugins are written in python. Open the plugin zip to see the source. How hard is python to learn? It's very subjective. I learned python working on plugins. But I already knew a half dozen other languages. And proper pythoners seem to hate my code. |
Advert | |
|
09-17-2024, 11:00 AM | #1881 |
Plugin Developer
Posts: 6,611
Karma: 4600391
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
I was panicking a bit when I saw I suddenly had the most recent post--2 weeks ago. |
09-17-2024, 11:15 AM | #1882 | |
want to learn what I want
Posts: 1,353
Karma: 6874872
Join Date: Sep 2020
Device: Calibre E-book viewer
|
Quote:
|
|
09-17-2024, 07:33 PM | #1883 | |
null operator (he/him)
Posts: 21,114
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
12-01-2024, 06:46 PM | #1884 |
Guru
Posts: 780
Karma: 340954
Join Date: Sep 2017
Location: Argentina
Device: moon+ reader, kindle paperwhite
|
Light Mode/Dark Mode Plugin Icons
I have a humble plugin to which I would like to be able to add this function. I know that there has to be a folder inside the image plugin with two files indicating icon_dark and icon_light. But I don't know what code I should add and where for this purpose. If it's not too much trouble, could someone guide me? I've reviewed some plugins and I feel like I'm not finding something. Last edited by dunhill; 12-01-2024 at 06:50 PM. |
12-02-2024, 08:31 AM | #1885 | |
Wizard
Posts: 1,098
Karma: 1261763
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
First, put your suffixed icons in the 'images' folder inside your plugin zip file. E.g.: 'images/icon_dark.png', 'images/icon_light.png'. Place this at the start of your main.py or similar: Code:
# Check for dark theme def is_dark_theme(): return QApplication.instance().is_dark_theme Code:
def get_icon(icon_name): icon_name = 'images/' + icon_name # Choose the suffix tc = 'dark' if is_dark_theme() else 'light' sq, ext = os.path.splitext(icon_name) sq = f'{sq}_{tc}{ext}' return get_icons(sq) Code:
icon = get_icon(icon_name.png) This will allow the plugin to change from light/dark theme when calibre starts. If you want it to change without restarting, than you need to rebuild the menus on the fly. Check out the rebuild_menus() method present in many plugins (ui.py). |
|
12-07-2024, 07:52 PM | #1886 | |
Guru
Posts: 780
Karma: 340954
Join Date: Sep 2017
Location: Argentina
Device: moon+ reader, kindle paperwhite
|
Quote:
|
|
Yesterday, 11:45 PM | #1887 |
Bozana
Posts: 25
Karma: 32224
Join Date: Jan 2013
Device: PC
|
I have no idea on how to do python or other coding, besides, htm/html and within epubs.
I would like to suggest a plugin, if someone is willing to do one, based on this website: https://why-choose.com/ As they have loads of tags and books that not found on goodreads. If anyone has time to write one, it would be greatly appreciated! Kindest regards, Bozana |
Today, 12:52 AM | #1888 |
Junior Member
Posts: 1
Karma: 10
Join Date: Dec 2024
Device: Android
|
A DriveThruRPG plugin. I see stuff available there that I can't find anywhere else. And it's got a lot of sister sites with ebook content as well.
|
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 08:19 AM |
New Plugin Type Idea: Library Plugin | cgranade | Plugins | 3 | 09-15-2010 01:11 PM |
Ideas? | mike_bike_kite | Which one should I buy? | 10 | 06-13-2010 04:37 PM |
Ideas | F1Wild | Amazon Kindle | 4 | 07-10-2009 07:01 AM |