jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/700383 )
Change subject: [bugfix] Enable -interwiki option with pagegenerators.py ......................................................................
[bugfix] Enable -interwiki option with pagegenerators.py
- pagegenerators -interwiki is decribed to work on the given page and all equivalent pages in other languages. But the called generator is InterwikiPageGenerator which does not yield pages as expected and the result is mostly empty. Use LanguageLinksPageGenerator instead. - Together with add_text this option can be used to put the same text on the same page in other wikis.
Bug: T57099 Change-Id: Iac4d7405fb954df83d4bf60711c57728e999bc56 --- M pywikibot/pagegenerators.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Matěj Suchánek: Looks good to me, but someone else must approve JJMC89: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/pagegenerators.py b/pywikibot/pagegenerators.py index 5be66b9..072ef0a 100644 --- a/pywikibot/pagegenerators.py +++ b/pywikibot/pagegenerators.py @@ -882,7 +882,7 @@ 'pywikibot-enter-page-processing', fallback_prompt='Which page should be processed?') page = pywikibot.Page(pywikibot.Link(value, self.site)) - return InterwikiPageGenerator(page) + return LanguageLinksPageGenerator(page)
def _handle_randomredirect(self, value): """Handle `-randomredirect` argument."""
pywikibot-commits@lists.wikimedia.org