Enhanced the test data to demonstrate issue#950

Presence of the "faviconMimeType" attribute in a book entry in library.xml
file is enough for libkiwix to assume that the book contains an illustration
(even if the "favicon" attribute is missing).
This commit is contained in:
Veloman Yunkan 2023-06-24 20:03:54 +04:00
parent 550fc2fcf9
commit f25d287afa
2 changed files with 5 additions and 1 deletions

View File

@ -32,6 +32,7 @@
articleCount="284"
mediaCount="2"
size="123"
faviconMimeType="image/png;favicon_attribute_is_absent"
></book>
<book
id="charlesray"
@ -48,5 +49,6 @@
articleCount="284"
mediaCount="2"
size="556"
favicon="faviconMimeType_attribute_is_absent"
></book>
</library>

View File

@ -144,7 +144,9 @@ 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"\