Skip to content

Commit

Permalink
Anthologies don't need per-story config(custom_columns_settings)
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmXinu committed Apr 2, 2023
1 parent f25ed9e commit 77d35d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion calibre-plugin/fff_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 77d35d8

Please sign in to comment.