2011-12-20, 12:45
i had a look in the code
assuming i am a bit on the right path
/headphones/lib/musicbrainz2/webservice.py
guess this is the part that needs modifying
but here it stops for me
as i have no clue how to change it from here
guess changing it to python-headphones in this file will not do the trick
assuming i am a bit on the right path
/headphones/lib/musicbrainz2/webservice.py
guess this is the part that needs modifying
Quote: def _openUrl(self, url, data=None):
userAgent = 'python-musicbrainz/' + musicbrainz2.__version__
req = urllib2.Request(url)
req.add_header('User-Agent', userAgent)
return self._opener.open(req, data)
but here it stops for me
as i have no clue how to change it from here
guess changing it to python-headphones in this file will not do the trick