XZise created this task.
XZise added a subscriber: XZise.
XZise added a project: pywikibot-core.
Herald added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
`generate_family_file` does not verify if it'll use multiple hostnames for
one code. For example it generated:
```
self.langs = {
'pt-br': 'pt-br.finalfantasy.wikia.com',
'en': 'finalfantasy.wikia.com', # ←
'zh': 'zh.finalfantasy.wikia.com',
'ru': 'ru.finalfantasy.wikia.com',
'en': 'community.wikia.com', # ←
'vi': 'vi.finalfantasy.wikia.com',
'pl': 'pl.finalfantasy.wikia.com',
'fr': 'fr.finalfantasy.wikia.com',
'es': 'es.finalfantasy.wikia.com',
'de': 'de.finalfantasy.wikia.com',
'pt-br': 'pt-br.finalfantasy.wikia.com',
'ja': 'ja.finalfantasy.wikia.com',
'ro': 'ro.finalfantasy.wikia.com',
'ar': 'ar.finalfantasy.wikia.com',
'it': 'it.finalfantasy.wikia.com',
'is': 'is.finalfantasy.wikia.com',
'fi': 'fi.finalfantasy.wikia.com',
'eo': 'eo.finalfantasy.wikia.com',
}
```
Now for one `generate_family_file` should check if it uses multiple hostnames
for the same code and then we should check if we want to redesign the `langs`
attribute to be a list or something. Maybe something that gets later converted
into a dict but so that we can check that each code is unique. Because that
makes debugging really hard when suddenly a page not exists.
TASK DETAIL
https://phabricator.wikimedia.org/T104267
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise
Cc: Aklapper, pywikibot-bugs-list, XZise, jayvdb, Malyacko, P.Copp
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs