+ # There are Wikidata links in ObjectName sametimes. Let's use it.
+ wikidata_match = re.search(r'wikidata\.org/wiki/(Q\d+)', meta['title'])
+ if wikidata_match is not None:
+ qitem = wikidata_match.group(1)
+ client = Client()
+ entity = client.get(qitem)
+ meta['title'] = entity.label.get('pl', str(entity.label))
+ author = entity.get(client.get(WIKIDATA.CREATOR))
+ meta['author'] = author.label.get('pl', str(author.label))
+