Topic: [solved] Error using tagger.xmlws.get
Hi,
I'm trying to use tagger.xmlws.get to grab an XML file from Last.FM, and I'm getting an error:
E: <sip.voidptr object at 0x03B72CE0> 12:17:39 Network request error for : Protocol "" is unknown (QT code 301, HTTP code 0)I'm not sure what I'm doing wrong, but here's my code:
fmhost = 'ws.audioscrobbler.com'
fmport = 80
from picard.webservice import REQUEST_DELAY
REQUEST_DELAY[(fmhost, fmport)] = 200
fmmethod = "2.0/?method="
fmid = "&mbid=" + self.metadata['musicbrainz_albumartistid']
fmapi = "&api_key=123456789012345678901234567890"
fmpath = fmmethod + "artist.getTopTags" + fmid + fmapi
self.album.tagger.xmlws.get(fmhost, fmport, fmpath, partial(self._getgenres))Can anyone spot what I'm doing wrong?