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 09-15-2021, 06:32 PM   #706
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,383
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
Btw, since I can run from source I am willing to do some testing.
Most important is to be confident that the new optimisations didn't break anything. Simply using the new version helps with that.
chaley is offline   Reply With Quote
Old 09-15-2021, 07:36 PM   #707
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,193
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
deleted.

Last edited by capink; 09-24-2021 at 05:04 AM.
capink is offline   Reply With Quote
Advert
Old 09-16-2021, 12:53 AM   #708
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,840
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Updated source and installed the updated copies.

Ran my fanfic chain on a newly-downloaded story and didn't notice the pause between events (though there was one at the beginning, which I assume was it doing that hibernation thing mentioned earlier). The last modified updated as expected.

I'm not sure if this was also an issue in the last version, but I also test with my "mark as read" chain, which only affects columns that LM is set to ignore. There seemed to be a slight pause between those now. This might be something to investigate.

Will continue to use it. If I run into any issues I'll mention them.

EDIT: Actually, the "mark as read" thing seems to be due to "remove from Reading List" being one of the options; RL with a series column set is a little slow. If I run the chain on a book not on a list (I disabled the prompt so the plugin just ignores those) it's faster.

Last edited by ownedbycats; 09-16-2021 at 04:20 AM.
ownedbycats is online now   Reply With Quote
Old 09-16-2021, 07:22 AM   #709
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,193
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by ownedbycats View Post
(though there was one at the beginning, which I assume was it doing that hibernation thing mentioned earlier)
No. Entering hibernation mode is instantaneous (just setting a flag to True), so the delay cannot be related to Last Modified.

With these changes, the Last Modified will stay dormant (only listening to events) during the lifetime of the chain. When the chain finishes, it will do only one update per date field.

Note that this means that books affected will be updated with the same timestamp (which equals the time the Last Modified hibernation period ended.)
capink is offline   Reply With Quote
Old 09-22-2021, 12:26 AM   #710
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,840
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
The option to add a template is accessible before the user selects a column. This results in this occasionally happening to me:

1. Create a chain and add a single-field action to it. Open the Settings dialog.
2. Click the Add Template button. Put something in there.
3. Edit the template window and then select a column. Note that it changes to Ask at Runtime. (Or, in my case, fail to notice.)
4. Click the OK button. (This is usually where I go test my chain and find out I've set it up wrong.)
5. Re-open the Settings dialog and check the template editor. It's now empty. (And with luck, the template is no longer saved in the tester!)

While a relatively minor issue, greying out the Add Template if there's no column selected would prevent it entirely.

Thanks

Last edited by ownedbycats; 09-22-2021 at 01:58 AM.
ownedbycats is online now   Reply With Quote
Advert
Old 09-22-2021, 01:24 PM   #711
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,193
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by ownedbycats View Post
While a relatively minor issue, greying out the Add Template if there's no column selected would prevent it entirely.
Added to next version.
capink is offline   Reply With Quote
Old 09-24-2021, 04:10 AM   #712
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,193
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Version 1.13.0
  • Update: Events: Add "VL Tab Changed" event.
  • Update: Integration with Last Modified plugin hibernate mode.
  • Update: Single Field Edit: Add formats and cover fields.
  • Update: Single Field Edit: Disable template box when no field is chosen.
  • Minor Bug Fixes.

The new cover field supports the following actions: remove cover, set cover from book, generate cover, trim cover, add cover from predefined location (using template option)

The new formats field supports the following actions: remove formats, add format from predefined location (using template option)

Last edited by capink; 09-24-2021 at 04:19 AM.
capink is offline   Reply With Quote
Old 09-24-2021, 08:01 AM   #713
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,840
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Question: I'd like to try to Switch VL view action, but:

a) I have two VLs (cleanup and loans) without a corresponding view;
b) I have a books-on-device view without a corresponding VL (it does switch to all books though).

Will there be any issues?

EDIT: I tried it out and found I can assign the views to the specific VLs themselves. This'll work.

Slight feedback: I noticed the action causes some difficulty with dragging and dropping the tabs around. Is there any way to mitigate this?

Also, it caused some weird visual glitching when I try changing via the View Manager dropdown. "Crap, all my VLs are getting deleted! Oh. They're back now. Never mind."

Last edited by ownedbycats; 09-24-2021 at 08:26 AM.
ownedbycats is online now   Reply With Quote
Old 09-24-2021, 08:56 AM   #714
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,193
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by ownedbycats View Post

Slight feedback: I noticed the action causes some difficulty with dragging and dropping the tabs around. Is there any way to mitigate this?

Also, it caused some weird visual glitching when I try changing via the View Manager dropdown. "Crap, all my VLs are getting deleted! Oh. They're back now. Never mind."
That does not happen for me. I just tried moving the tabs around and it went smoothly.

I also tried changing the view from the view manager dropdown menu with no problems.

Edit: Moving the tabs around does will switch the tab order and consequently trigger the event. It is only noticeable for me I move a tab multiple places. Nothing can be done regarding this.

Last edited by capink; 09-24-2021 at 09:03 AM.
capink is offline   Reply With Quote
Old 09-24-2021, 09:28 AM   #715
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,840
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
In my case, when I ran switch view from the dropdown menu, it rapidly switched between all my views while causing the VL tabs to disappear. Then they all came back and it went to the selected view. It was a little alarming to see.

If you want, I can see if I can replicate it in a test library in a portable Calibre with only the two needed plugins.

Last edited by ownedbycats; 09-24-2021 at 10:44 AM.
ownedbycats is online now   Reply With Quote
Old 09-24-2021, 09:47 AM   #716
kevn57
Connoisseur
kevn57 began at the beginning.
 
kevn57's Avatar
 
Posts: 93
Karma: 10
Join Date: Jun 2011
Location: Albany NY
Device: Moonreader+
I'm a complete nube in calibre template language.

I'm trying to take the output of the plugin Pagecount which is the number of words in a book and dividing that by 320 which is my words per minute reading rate and output the total number of minutes to read the book into my custom integer col "#minutes"

I don't know how to assign the product of divide(vals, 320); to my custom column #minutes.

program:
col = '#pagecount';
vals = from_selection(col);
'#minutes' = divide(vals, 320);

But I get this result EXCEPTION: Formatter: Expected end of program, found '=' near '#minutes' on line 4
kevn57 is offline   Reply With Quote
Old 09-24-2021, 09:49 AM   #717
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,840
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
For future reference, this thread might be a better place to put template questions:

https://www.mobileread.com/forums/sh...d.php?t=338463

ownedbycats is online now   Reply With Quote
Old 09-24-2021, 09:53 AM   #718
kevn57
Connoisseur
kevn57 began at the beginning.
 
kevn57's Avatar
 
Posts: 93
Karma: 10
Join Date: Jun 2011
Location: Albany NY
Device: Moonreader+
Sorry, I tried to delete it and move but it'll only let me edit. I'll repost it in the correct thread.
kevn57 is offline   Reply With Quote
Old 09-24-2021, 10:45 AM   #719
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,840
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Don't worry. If you need a post deleted you can hit the little ! button next to Karma and ask a mod to do it.
ownedbycats is online now   Reply With Quote
Old 09-24-2021, 06:02 PM   #720
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,840
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I was able to replicate the weird visual glitching in a test library in a portable Calibre with only AC and VM.

Attached is my chain and the metadata.db of the library.

Assuming it's not an issue specific to my Windows environment, using View Manager's toolbar button to change views or using Re-Apply Current View should result in it switching between all available views and the tabs disappearing then reappearing.

It's more of an annoyance than anything serious - though considering I use re-apply sometimes to reset after changing sorts or something it does crop up a bit.

Thanks.
Attached Files
File Type: zip SwitchVLs.zip (465 Bytes, 282 views)
File Type: zip metadata.zip (62.5 KB, 296 views)

Last edited by ownedbycats; 09-24-2021 at 06:20 PM.
ownedbycats is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Editor Plugin] Editor Chains capink Plugins 103 Today 09:50 AM
Action Chains Resources capink Plugins 77 Yesterday 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 11:13 AM.


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