Cover fetch from google and amazon does not work anymore
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Listen |
Fix Released
|
Medium
|
Mehdi Abaakouk |
Bug Description
On a fresh ubuntu 9.10 install, when you try to fetch a cover from google or amazon you get no results, and a message that says "INFO listen.
Using listen 0.6.2 from ubutu repositories.
A 'fast and dirty' fix to the problem is to change these lines of /usr/lib/
356 def on_search_
357
358 html = html_handler.read()
359 #js_images = re.findall(
360 js_images = re.findall(
361 if not js_images :
362 self.logwarn(
363 self.fail_fetch()
364 return
365
366 mid = len(js_images)/2
367 if page%2==0:
368 js_images = js_images[ : mid-1 ]
369 else:
370 js_images = js_images[ mid : ]
371
372 items = []
373 for jsimg in js_images:
374 info = jsimg[1]
375 url = str(jsimg[0])
376 title = jsimg[2]
377 #title = unicode(
378 #title = re.sub(
379 items.append((url, title , info))
380
381 self.populate(
At least lets you fetch google covers :)
python version:Python 2.6.4rc2 (r264rc2:75497, Oct 20 2009, 02:55:11)
[GCC 4.4.1] on linux2
Changed in listen: | |
status: | Fix Committed → Fix Released |
Hi,
Here is a patch for the Google image search.
Not sure what's wrong with the Amazon search.
Cheers,
Julien