Fool-proof checking of book illustration presence

Now (in a library.xml flow) a book is considered to contain an
illustration only if both "faviconMimeType" and "favicon" attributes
are set to non-empty values.
This commit is contained in:
Veloman Yunkan
2023-06-24 20:10:41 +04:00
parent f25d287afa
commit f41007989b
2 changed files with 6 additions and 7 deletions

View File

@ -144,9 +144,7 @@ std::string maskVariableOPDSFeedData(std::string s)
"wikipedia_ru_ray_charles",\
"",\
"public_tag_with_a_value:value_of_a_public_tag;_private_tag_with_a_value:value_of_a_private_tag;wikipedia;_pictures:no;_videos:no;_details:no",\
"<link rel=\"http://opds-spec.org/image/thumbnail\"\n" \
" href=\"/ROOT%23%3F/catalog/v2/illustration/raycharles_uncategorized/?size=48\"\n" \
" type=\"image/png;favicon_attribute_is_absent;width=48;height=48;scale=1\"/>\n ", \
"",\
"zimfile", \
"zimfile", \
"125952"\