Xqt added a comment.
Very strange because `file_extension` property was introduced with Pywikibot
8.4 already. Could you please try the following code snippet (exprecting you
have a `minecraft_family` file:
py -m pwb shell
>>> site = pywikibot.Site('minecraft:ru')
>>> site.file_extensions
The following is expected then:
['flac', 'gif', 'ico', 'jpeg', 'jpg', 'mkv', 'mov', 'mp3', 'mp4', 'odm',
'oga', 'ogg', 'pdf', 'png', 'svg', 'wav', 'webm', 'webp']
btw. the namespace is filtered later in `(page for page in generator if
page.namespace() in namespaces)`.
TASK DETAIL
https://phabricator.wikimedia.org/T417961
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]