From ac3046f2f7b527b3e44d1364201855df3d74ab3c Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Wed, 3 Apr 2013 11:36:59 +0300 Subject: Fixing fetching Part image --- gsxws.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gsxws.py b/gsxws.py index b36c676..99db20f 100755 --- a/gsxws.py +++ b/gsxws.py @@ -574,10 +574,8 @@ class Part(GsxObject): if self.partNumber is None: raise GsxError('Cannot fetch part image without part number') - url = 'https://km.support.apple.com.edgekey.net/kb/imageService.jsp?image=%s_350_350.gif' % self.partNumber - p = urlparse.urlparse(url) - filename = p.query.split('=')[1] - + image = '%s_350_350.gif' % self.partNumber + url = 'https://km.support.apple.com.edgekey.net/kb/imageService.jsp?image=%s' % image tmpfile = tempfile.NamedTemporaryFile(suffix=filename) try: -- cgit v1.2.3