mwoffliner icon indicating copy to clipboard operation
mwoffliner copied to clipboard

Double image description

Open Inbefortus opened this issue 3 years ago • 4 comments

ZIM: 2021-08 German Wikipedia

There are two image descriptions, although there should be only one (this is not the case everywhere).

http://library.kiwix.org/wikipedia_de_all_maxi/A/Belgien http://library.kiwix.org/wikipedia_de_all_maxi/A/Nationalpark_Eifel

Screenshot_20210905-093214_Samsung Internet Screenshot_20210905-093145_Samsung Internet Screenshot_20210905-094031_Samsung Internet

Inbefortus avatar Sep 05 '21 07:09 Inbefortus

Interesting, probably a bug in MWoffliner linked to some kind of change in HTML output.

kelson42 avatar Sep 05 '21 07:09 kelson42

This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

stale[bot] avatar Nov 09 '21 20:11 stale[bot]

@pavel-karatsiuba Can you please explain and fix this edge scenario?

kelson42 avatar Mar 23 '23 07:03 kelson42

In some cases, by API we are getting the same description for the image and for the parent Element. I have added a fix with checking if we got the same texts. If texts are the same then show only one of them.

pavel-karatsiuba avatar Mar 23 '23 17:03 pavel-karatsiuba