mwoffliner
mwoffliner copied to clipboard
Double image description
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
Interesting, probably a bug in MWoffliner linked to some kind of change in HTML output.
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.
@pavel-karatsiuba Can you please explain and fix this edge scenario?
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.