Page MenuHomePhabricator

interwiki.py does not recognize redirected category
Open, HighPublic

Description

pwb.py interwiki.py -family:wiktionary -lang:vi -prefixindex:category:User -untranslated -whenneeded

[[vi:User en-3]] is redirect to [[vi:User eng-3]], but bot asks for hint instead of skipping.
Probably related with T87222
few weeks ago bot sometimes recognized redirected category, sometimes not but when redirects were on starting wiki, recognizet it always

Event Timeline

JAnD raised the priority of this task from to High.
JAnD updated the task description. (Show Details)
JAnD added a project: Pywikibot-interwiki.py.
JAnD subscribed.

Starting bot on wiki with redirect works fine

C:\pwb>pwb.py interwiki -family:wiktionary  -whenneeded -prefixindex:Category:Bahasa_Bok 
NOTE: Number of pages queued is 0, trying to add 50 more.
Retrieving 1 pages from wiktionary:ms.
[[ms:Kategori:Bahasa Bokmaal Norway]]: [[ms:Kategori:Bahasa Bokmaal Norway]] gives new interwiki [[en:Category:Norwegian Bokmaal language]]
Retrieving 1 pages from wiktionary:en.
[[ms:Kategori:Bahasa Bokmaal Norway]]: [[en:Category:Norwegian Bokmaal language]] gives new interwiki [[af:Kategorie:Woorde in Boekmaal]]
...
NOTE: [[ms:Kategori:Bahasa Bokmaal Norway]]: [[en:Category:Norwegian Bokmaal language]] gives duplicate interwiki on same site [[ms:Kategori:Bahasa Norway Bokmaal]]
[[ms:Kategori:Bahasa Bokmaal Norway]]: [[en:Category:Norwegian Bokmaal language]] gives new interwiki [[mt:Kategorija:Lingwa Norvegiża Bokmaal]]
...
[[ms:Kategori:Bahasa Bokmaal Norway]]: [[en:Category:Norwegian Bokmaal language]] gives new interwiki [[zh:Category:shumiannuoweiyu]]
Retrieving 1 pages from wiktionary:ms.
NOTE: [[ms:Kategori:Bahasa Norway Bokmaal]] is redirect to [[ms:Kategori:Bahasa Bokmaal Norway]]
Retrieving 1 pages from wiktionary:nn.
Retrieving 1 pages from wiktionary:es.
...

When is bot running for small amount of pages, it recognised it:

pwb.py interwiki -family:wiktionary -whenneeded:3 -lang:cs -prefixindex:Category:Norština_(

NOTE: Number of pages queued is 0, trying to add 50 more.
Retrieving 2 pages from wiktionary:cs

....

Retrieving 2 pages from wiktionary:nn.
NOTE: [[cs:Kategorie:Norština (bokmaal)]]: [[nn:Kategori:Bokmaal]] gives duplicate interwiki on same site [[ms:Kategori:Bahasa Norway Bokmaal]]
Retrieving 3 pages from wiktionary:ms.
NOTE: [[ms:Kategori:Bahasa Norway Bokmaal]] is redirect to [[ms:Kategori:Bahasa Bokmaal Norway]]
NOTE: [[ms:Kategori:Bahasa Norway Nynorsk]] is redirect to [[ms:Kategori:Bahasa Nynorsk Norway]]
[[cs:Kategorie:Norština (nynorsk)]]: [[ms:Kategori:Bahasa Norway Nynorsk]] gives new redirect [[ms:Kategori:Bahasa Nynorsk Norway]]
Retrieving 2 pages from wiktionary:es.

But start on some other wiktionary for many pages does not recognise redirect:

C:\pwb>pwb.py interwiki -family:wiktionary -whenneeded:3 -lang:cs -start:Category:Norština_(
...


Retrieving 42 pages from wiktionary:en.
NOTE: [[cs:Kategorie:Norština (bokmaal)]]: [[en:Category:Norwegian Bokmaal language]] gives duplicate interwiki on same site [[ms:Kategori:Bahasa Norway Bokmaal]]
...

Retrieving 14 pages from wiktionary:ms.

...

======Post-processing [[cs:Kategorie:Norština (bokmaal)]]======
ERROR: Found more than one link for wiktionary:ms
==============================
Links to wiktionary:ms
  (1) Found link to [[ms:Kategori:Bahasa Bokmaal Norway]] in:
        [[cs:Kategorie:Norština (bokmaal)]]
  (2) Found link to [[ms:Kategori:Bahasa Norway Bokmaal]] in:
        [[af:Kategorie:Woorde in Boekmaal]]
        [[ast:Categoría:Noruegu bokmaal]]
        [[az:Kateqoriya:Yeni Norveç dilindeki sözler]]
        [[co:Categoria:Parolle in lingua nurveghjese bokmaal]]
...

(Removing projects; I'm pretty sure this issue isn't related to MediaWiki core)