1 # -*- coding: utf-8 -*-
4 def wikipedia_albumdetails(data
):
6 # check in case musicbrainz did not provide a direct link
7 if 'extract' in data
['query']['pages'][0] and not data
['query']['pages'][0]['extract'].endswith('may refer to:'):
8 albumdata
['description'] = re
.sub('\n\n\n== .*? ==\n', ' ', data
['query']['pages'][0]['extract'])