Register Guidelines E-Books Search Today's Posts Mark Forums Read

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
Grumpy old git
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.
 
chaley's Avatar
 
Posts: 9,965
Karma: 3493677
Join Date: Jan 2010
Location: UK
Device: Reader
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
Guru
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: 646
Karma: 211740
Join Date: Aug 2015
Device: Kindle
deleted.

Last edited by capink; 09-24-2021 at 05:04 AM.
capink is offline   Reply With Quote
Old 09-16-2021, 12:53 AM   #708
ownedbycats
Wizard
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: 3,061
Karma: 13086534
Join Date: Oct 2018
Device: Kobo 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 offline   Reply With Quote
Old 09-16-2021, 07:22 AM   #709
capink
Guru
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: 646
Karma: 211740
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
Wizard
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: 3,061
Karma: 13086534
Join Date: Oct 2018
Device: Kobo 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 offline   Reply With Quote
Old 09-22-2021, 01:24 PM   #711
capink
Guru
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: 646
Karma: 211740
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
Guru
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: 646
Karma: 211740
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
Wizard
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: 3,061
Karma: 13086534
Join Date: Oct 2018
Device: Kobo 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 offline   Reply With Quote
Old 09-24-2021, 08:56 AM   #714
capink
Guru
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: 646
Karma: 211740
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
Wizard
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: 3,061
Karma: 13086534
Join Date: Oct 2018
Device: Kobo 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 offline   Reply With Quote
Old 09-24-2021, 09:47 AM   #716
kevn57
Enthusiast
kevn57 began at the beginning.
 
kevn57's Avatar
 
Posts: 39
Karma: 10
Join Date: Jun 2011
Location: Albany NY
Device: Nook Simple Touch
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
Wizard
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: 3,061
Karma: 13086534
Join Date: Oct 2018
Device: Kobo 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 offline   Reply With Quote
Old 09-24-2021, 09:53 AM   #718
kevn57
Enthusiast
kevn57 began at the beginning.
 
kevn57's Avatar
 
Posts: 39
Karma: 10
Join Date: Jun 2011
Location: Albany NY
Device: Nook Simple Touch
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
Wizard
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: 3,061
Karma: 13086534
Join Date: Oct 2018
Device: Kobo 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 offline   Reply With Quote
Old 09-24-2021, 06:02 PM   #720
ownedbycats
Wizard
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: 3,061
Karma: 13086534
Join Date: Oct 2018
Device: Kobo 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, 8 views)
File Type: zip metadata.zip (62.5 KB, 9 views)

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Save Virtual Libraries To Column (GUI) chaley Plugins 14 04-04-2021 05:25 AM
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 468 02-07-2021 04:07 PM
[GUI Plugin] Manga plugin mastertea Plugins 0 10-20-2019 02:45 PM
[GUI Plugin] Wordpress frescogamba Plugins 11 04-06-2015 09:09 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 10:15 PM.


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