[Pywikipedia-bugs] [Maniphest] [Commented On] T360093: Imageinfo are not fully set by pagegenerators

2024-04-01 Thread gerritbot
gerritbot added a comment. Change #1013713 **merged** by jenkins-bot: [pywikibot/core@master] [bugfix] Use the same iiprop in PageGenerator as in APISite.loadimageinfo() https://gerrit.wikimedia.org/r/1013713 TASK DETAIL https://phabricator.wikimedia.org/T360093 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Commented On] T360093: Imageinfo are not fully set by pagegenerators

2024-03-30 Thread Xqt
Xqt added a comment. In T360093#9669731 , @BbvMoudi wrote: > Thanks @Xqt for the fix! > > Sidenote: … You are right but the workaround was intended to be used wihout changing the framework. TASK DETAIL https://phabricator.wik

[Pywikipedia-bugs] [Maniphest] [Commented On] T360093: Imageinfo are not fully set by pagegenerators

2024-03-28 Thread BbvMoudi
BbvMoudi added a comment. Thanks @Xqt for the fix! Sidenote: While your suggested workaround does not mess with the internals of the class as mine does, it invalidates the whole point of generators, i.e. that not a request for each of the pages separately but in batches. Calling metadata

[Pywikipedia-bugs] [Maniphest] [Commented On] T360093: Imageinfo are not fully set by pagegenerators

2024-03-24 Thread gerritbot
gerritbot added a comment. Change #1013713 had a related patch set uploaded (by Xqt; author: Xqt): [pywikibot/core@master] [bugfix] Use the same iiprop in PageGenerator as in APISite.loadimageinfo() https://gerrit.wikimedia.org/r/1013713 TASK DETAIL https://phabricator.wikimedia.o

[Pywikipedia-bugs] [Maniphest] [Commented On] T360093: Imageinfo are not fully set by pagegenerators

2024-03-24 Thread Xqt
Xqt added a comment. As a workaraound you can call metadata first: site = pywikibot.Site() page = next(pagegenerators.AllpagesPageGenerator(namespace='File')) _ = page.latest_file_info.metadata print(page.latest_file_info.mime) TASK DETAIL https://phabricator.wikimedia.org