catalog builder ignore "any" and "undefined"

Bug #1814458 reported by Katja on 2019-02-03
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

exclusion rule ignore "any" and "undefined".
As this works well for prefix, I compared the code.
The following two parts will solve the bug

# in \src\calibre\library\catalogs\epub_mobi_builder.py

# kwy: two rows added at 4810 similar to prefix rule row 600/601
if field_contents == '':
    field_contents = None

# showing existing follower rows for orientation only
if (self.db.metadata_for_field(field)['datatype'] == 'bool' and)

# kwy: four rows added at 4848+2 very close to prefix rule row 625-ff
elif field_contents is None and pat == 'None':
    exclusion_set.append(record)
    if record in filtered_data_set:
        filtered_data_set.remove(record)

# showing existing follower rows for orientation only
else:
    if (record not in filtered_data_set and

Hi @kovidgoyal,
do you mind to implement this?

Katja (katjawy) on 2019-02-03
tags: added: catalogs

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
Katja (katjawy) wrote :

Hi Kovid,
https://github.com/kovidgoyal/calibre/commits/master
Shows: RPUB/MOBI Catalog generation: Allow matching empty fields in exclusion rules. Fixes #1814458 [catalog builder ignore "any" and "undefined"](https://bugs.launchpad.net/calibre/+bug/1814458)
but titel refers to https://bugs.launchpad.net/calibre/+bug/1814459 which is not fixed acceptable upto now.

This is only fyi if you produce the release notes from that master.
Correct is:
EPUB/MOBI Catalog generation: Allow matching bool values ("any/undefined") in exclusion rules. Fixes #1814458 [catalog builder ignore "any" and "undefined"](https://bugs.launchpad.net/calibre/+bug/1814458)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers