jayvdb added a comment.
! In T57072#818875, @valhallasw wrote:
I'm not convinced this would actually work -- Page.delete uses the title (as far as I know), not the page id...
Invalid titles are an issue for sites that have switched from latin-1 to utf-8 -- sometimes, they still have a latin-1 page title in the database, which then cannot be retrieved nor deleted.
It looks like you are right. Page.delete refers itself to Site, and Site.deletepage does explicitly use the page title.
However the API does support it.
https://en.wikipedia.org/w/api.php?action=paraminfo&modules=delete
So maybe we create a subtask to create a -pageid generator which works almost identically to -page
And once that is built, someone can enhance Page/Site methods to use pageid to delete if available (and supported by the site's API version?), and fallback to title if the pageid hasnt been loaded.
TASK DETAIL https://phabricator.wikimedia.org/T57072
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: jayvdb Cc: pywikipedia-bugs, Ladsgroup, Legoktm, Billinghurst, Ricordisamoa, jayvdb, valhallasw