View Single Post
Old 08-31-2023, 03:25 PM   #1150
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,205
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by hillcountryfare View Post
I am loving this plugin but have a few things I can't figure out.

1) When I run an action chain with update metadata and covers and have more than 7 books selected, I get 503 and 403 errors related to rate limiting. Is there any way to add a delay or retry?
This is an issue with whatever metadata plugin being used at the time. Action Chains cannot do anything about it.


Quote:
Originally Posted by hillcountryfare View Post
I am loving this plugin but have a few things I can't figure out.
2) Is there a way to control which of the selected books a called chain executes against? I only want to run the Find ISBN plugin against books with no ISBN after their metadata is updated. I have tried a condition (program:ifempty(field('#isbn'),'FALSE')) but it appears if the condition matches on any book the action chain will run on all the selected books.
Conditions control whether an action runs or not. If you want to act on a subsection of current selection, the solution is to use the "Search Using Template" action to modify the selection as follows:
  • Enter the following template:
    Code:
    program:
    	original_selection = from_selection('id');
    	set_globals(original_selection=original_selection);
    	new_selection = '';
    	for book_id in original_selection:
    		isbn = select(book_field(book_id, 'ids'), 'isbn');
    		if ! isbn then
    			new_selection = list_join(new_selection, book_id, ',')
    		fi
    	rof;
    	new_selection
  • Select the "Output is a book_ids list" radio button.
  • Tick the "Select all books resulting from this template" checkbox.

Note: The previous template stores the original selections in a global variable called original_selection. In case you want to restore those selections, you use the same action with this template:
Code:
program:
	globals(original_selection)
Quote:
Originally Posted by hillcountryfare View Post
I am loving this plugin but have a few things I can't figure out.
3) I'd love to automate updating covers, but occasionally the downloaded covers are very low quality. Is there a way to only accept covers that are a higher resolution than the current covers? Alternatively, to only accept covers that are larger than a predefined dimension?
Again nothing the Action Chains can do about this.
capink is offline   Reply With Quote