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 04-19-2023, 01:58 PM   #1081
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by ownedbycats View Post
Does that include using a custom folder instead of resources/images?
Yes. Although I'm not sure whether I should create a new custom folder or re-use the cc_icons folder calibre already creates.

The idea is to have one centralized folder for custom icons. I can see that the cc_icons have some requirements for icons inside it (It must be 128x128 png file). If @chaley does not see this post I will pm to ask if he have any objections or suggestions.

Last edited by capink; 04-19-2023 at 02:01 PM.
capink is offline   Reply With Quote
Old 04-19-2023, 02:05 PM   #1082
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by capink View Post
Yes. Although I'm not sure whether I should create a new custom folder or re-use the cc_icons folder calibre already creates.

The idea is to have one centralized folder for custom icons. I can see that the cc_icons have some requirements for icons inside it (It must be 128x128 png file). If @chaley does not see this post I will pm to ask if have any objections or suggestions.
That folder is used for icons on the book list. If that is like what you are doing then it is a good place to put them.

The opther option is tb_icons, where calibre's tag browser keeps icons used for categories in the tag browser. There are name rules that calibre used to identify the icon for a column. If you use different rules then there can be no name conflict. I think this is what @OBC is talking about
chaley is offline   Reply With Quote
Advert
Old 04-19-2023, 06:13 PM   #1083
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
My 2¢ - if optional plugins mingle resources with the core or one another, then its hard to get rid of them when the optional plugin is removed - IMO plugins should be self contained.

BR
BetterRed is offline   Reply With Quote
Old 04-19-2023, 07:48 PM   #1084
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,974
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Yes. If using the cc_icons folder, I'd also be concerned about collision with files in there. Clutter might also be an issue; the icons I use for column icons I usually would not use for AC and vice-versa. This is less a concern for tb_icons though.
ownedbycats is online now   Reply With Quote
Old 04-27-2023, 07:40 PM   #1085
bigwoof
Connoisseur
bigwoof began at the beginning.
 
Posts: 88
Karma: 18
Join Date: Jun 2020
Device: Boox Note Air3, don't use my kindle anymore
error with add_to_vars in newer versions of calibre?

Hi,

I'm getting this error when running the modified chain iterator code @capink generously provided a few pages back


Code:
calibre 6.17  embedded-python: True
Windows-10-10.0.22621-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.22621')
Python 3.10.1
Windows: ('10', '10.0.22621', 'SP0', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Action Chains (1, 18, 6) && Count Pages (1, 13, 0) && Editor Chains (0, 8, 5) && EpubCheck (0, 2, 4) && EpubMerge (2, 15, 0) && EpubSplit (3, 6, 0) && FanFicFare (4, 22, 1) && Favourites Menu (1, 3, 0) && Find Duplicates (1, 10, 8) && Generate Cover (2, 3, 2) && Job Spy (1, 0, 237) && KePub Input (3, 6, 3) && KePub Metadata Reader (3, 4, 3) && KePub Metadata Writer (3, 4, 3) && KePub Output (3, 6, 3) && Kobo Utilities (2, 16, 6) && KoboTouchExtended (3, 6, 3) && Modify ePub (1, 8, 1) && Quality Check (1, 13, 4) && Reading List (1, 15, 1) && Save Virtual Libraries To Column (2, 0, 1) && Save Virtual Libraries To Column GUI (2, 3, 0)
Traceback (most recent call last):
  File "calibre_plugins.action_chains.action", line 448, in run_chain
  File "calibre_plugins.action_chains.chains", line 391, in run
  File "calibre_plugins.action_chains.chains", line 206, in _run_loop
  File "calibre_plugins.action_chains.chains", line 181, in _run_loop
  File "Modified Chain Iterator", line 122, in run
TypeError: Chain.__init__() got an unexpected keyword argument 'add_to_vars'
line 122 is
Code:
target_chain = Chain(self.plugin_action, target_chain_config, show_progress=False,
add_to_vars=add_to_vars, chain_caller=True)
Thanks!
bigwoof is offline   Reply With Quote
Advert
Old 04-27-2023, 11:59 PM   #1086
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
There was a change to the latest version of the plugin that broke it. I modified the action in the original post. Update to the new code and it should run normally.
capink is offline   Reply With Quote
Old 04-28-2023, 01:43 AM   #1087
bigwoof
Connoisseur
bigwoof began at the beginning.
 
Posts: 88
Karma: 18
Join Date: Jun 2020
Device: Boox Note Air3, don't use my kindle anymore
Quote:
Originally Posted by capink View Post
There was a change to the latest version of the plugin that broke it. I modified the action in the original post. Update to the new code and it should run normally.
Thanks!! :-)
bigwoof is offline   Reply With Quote
Old 04-28-2023, 08:31 AM   #1088
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,974
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
@capink - Did 6.17 break chain caller? The caller actions went red/invalidated in my chains and cannot re-select them.
Attached Thumbnails
Click image for larger version

Name:	2023-04-28 09_31_57-Add actions.png
Views:	881
Size:	31.9 KB
ID:	201326  

Last edited by ownedbycats; 04-28-2023 at 08:42 AM.
ownedbycats is online now   Reply With Quote
Old 04-28-2023, 09:39 AM   #1089
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by ownedbycats View Post
@capink - Did 6.17 break chain caller? The caller actions went red/invalidated in my chains and cannot re-select them.
No. The Chain Caller is the one action that does not depend on any calibre code, so it cannot be broken by calibre upgrades. Double click on the error cell in the chain dialog and copy the error message.
capink is offline   Reply With Quote
Old 04-28-2023, 03:44 PM   #1090
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,974
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I already removed it from my chain so I could run it without erroring...

They aren't available in the action selector anymore, if that's a clue. Also I just noticed that the Modified Chain Caller had to be fixed. Maybe same issue?

Last edited by ownedbycats; 04-28-2023 at 05:22 PM.
ownedbycats is online now   Reply With Quote
Old 04-29-2023, 01:04 AM   #1091
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by ownedbycats View Post
Also I just noticed that the Modified Chain Caller had to be fixed. Maybe same issue?
No. These modifications were already added to the stock Chain Caller in the last version. They also did not affect the chain validation in any way. They made chain to fail with and error when running.
capink is offline   Reply With Quote
Old 04-29-2023, 03:05 AM   #1092
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,974
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
If you can send me an older version of AC I'll check the error.
ownedbycats is online now   Reply With Quote
Old 04-29-2023, 05:38 AM   #1093
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
deleted.

Last edited by capink; 04-29-2023 at 04:26 PM.
capink is offline   Reply With Quote
Old 04-29-2023, 08:48 AM   #1094
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,974
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Chain Caller is still missing!

Click image for larger version

Name:	2023-04-29 09_46_09-Window.png
Views:	805
Size:	23.3 KB
ID:	201341

Do you have the JSON for the Caller action? I can try adding that into my settings file.
ownedbycats is online now   Reply With Quote
Old 04-29-2023, 09:08 AM   #1095
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Chain Caller is and experimental action and needs the following plugin tweak

Code:
action_chains_experimental = True
Are you sure you have not changed or deleted this? If you have done so, it should also affect chain variants.
capink is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Editor Plugin] Editor Chains capink Plugins 106 06-17-2025 05:36 PM
Action Chains Resources capink Plugins 77 06-16-2025 12:45 PM
[GUI Plugin] Noosfere_util, a companion plugin to noosfere DB lrpirlet Plugins 2 08-18-2022 03:15 PM
[GUI Plugin] Save Virtual Libraries To Column (GUI) chaley Plugins 14 04-04-2021 05:25 AM


All times are GMT -4. The time now is 09:35 AM.


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