https://bugzilla.wikimedia.org/show_bug.cgi?id=72847
Bug ID: 72847 Summary: fileIsShared only works with Wikimedia and Wikitravel shared repository Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: network Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jayvdb@gmail.com Web browser: --- Mobile Platform: ---
Setting up a shared_image_repository for a family requires adding logic to page.fileIsShared, which is currently:
if not self.site.has_image_repository: return False elif 'wikitravel_shared' in self.site.shared_image_repository(): return self.fileUrl().startswith( u'http://wikitravel.org/upload/shared/') else: return self.fileUrl().startswith( 'https://upload.wikimedia.org/wikipedia/commons/')