Page MenuHomePhabricator

Books with question mark (?) in title are not producing thumbnails
Closed, ResolvedPublic

Description

The books with "?" in title is not producing thumbnails on the Wikisource reader app, even if they have P4714 qualifier linked to P996. Instead, the thumbnail is totally black.

For example, see - কাহাকে?

photo_2025-10-09_15-01-41.jpg (574×1,280 px, 20 KB)

Event Timeline

@Bodhisattwa I would like to work on this. Could you assign it to me?

@Bodhisattwa I would like to work on this. Could you assign it to me?

Sure, assigned. Best of luck!

@Bodhisattwa sure, I will do so once I'm done with the task. Thank you for that

Hello @Bodhisattwa I have managed to fix the issue and i have opened a PR, https://github.com/cis-india/Wikisource-Reader/pull/34. Kindly review.

Hello @Bodhisattwa I have managed to fix the issue and i have opened a PR, https://github.com/cis-india/Wikisource-Reader/pull/34. Kindly review.

@Muguro , thank you for the pull request. Primary mentor @Saiphani02 will review it in his due time. In the meantime, kindly record your contribution at this URL on Outreachy website: https://www.outreachy.org/outreachy-december-2025-internship-cohort/communities/wikimedia/improve-the-wikisource-reader-app/contributions/

Hi @Muguro, thank you for sending the PR. The thumbnail image URLs are better to be encoded at the wsindex API as well to avoid any further issues. If you are familiar with Python, please checkout the repository for wsindex on Codeberg and see if you can fix it there. https://codeberg.org/ph4ni/wsindex

Hi @Saiphani02, thank you for the review.
Handling the url in the api would work best, let me have a look at that.
Should I still maintain the PR though?

@Saiphani has merged the PR. @Muguro, thank you for your contribution to resolve this issue.