aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgsxws.py6
1 files 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: