From 77d35d88c75e2bcf14e2ae5faf9f107046fa49e0 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Sat, 1 Apr 2023 20:46:00 -0500 Subject: [PATCH] Anthologies don't need per-story config(custom_columns_settings) --- calibre-plugin/fff_plugin.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/calibre-plugin/fff_plugin.py b/calibre-plugin/fff_plugin.py index 6e39bd835..6b3a95d6c 100644 --- a/calibre-plugin/fff_plugin.py +++ b/calibre-plugin/fff_plugin.py @@ -2329,7 +2329,11 @@ def update_metadata(self, db, book_id, book, mi, options): configuration = None if prefs['allow_custcol_from_ini']: - configuration = get_fff_adapter(book['url'],options['fileform']).get_configuration() + if book['all_metadata'].get('anthology',False): + # Anthologies don't need per-story config + configuration = get_fff_config(book['url'],options['fileform']) + else: + configuration = get_fff_adapter(book['url'],options['fileform']).get_configuration() # meta => custcol[,a|n|r|n_anthaver,r_anthaver] # cliches=>\#acolumn,r for line in configuration.getConfig('custom_columns_settings').splitlines():