- Timestamp:
- 11/11/12 17:08:25 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/StreamVision/StreamVision.py
r649 r650 190 190 kw = {} 191 191 if url != k.missing_value and url.endswith('.jpg'): 192 response, content = self.http.request(url) 193 if response['content-type'].startswith('image/'): 194 file(self.imagePath, 'w').write(content) 195 kw['image_from_location'] = self.imagePath 192 try: 193 response, content = self.http.request(url) 194 except Exception, e: 195 import sys 196 print >> sys.stderr, 'Request for album art failed:', e 197 else: 198 if response['content-type'].startswith('image/'): 199 file(self.imagePath, 'w').write(content) 200 kw['image_from_location'] = self.imagePath 196 201 growlNotify(cleanStreamTitle(iTunes.current_stream_title()), 197 202 cleanStreamTrackName(trackName), **kw)
Note:
See TracChangeset
for help on using the changeset viewer.