[weboob] Crash de weboorrents lors d'une recherche avec plusieurs termes

Nolwenn donolwenn at gmail.com
Wed Jul 31 22:57:47 CEST 2013


weboorrents plante quand on fait une recherche avec plusieurs termes alors 
qu'avec un seul terme tout se passe bien.

Une copie de la version debug http://pastebin.com/sLdLseLH

weboorrents -d
2013-07-31 22:10:27,937:DEBUG:modules:modules.py:152:load_module Loaded 
module "isohunt" from /home/nolwenn/.local/share/weboob/modules/0.f/isohunt             
2013-07-31 22:10:27,937:DEBUG:backend:modules.py:95:create_instance 
Created backend instance "isohunt" for backend "isohunt"                                    
2013-07-31 22:10:27,937:DEBUG:modules:modules.py:152:load_module Loaded 
module "kickass" from /home/nolwenn/.local/share/weboob/modules/0.f/kickass             
2013-07-31 22:10:27,938:DEBUG:backend:modules.py:95:create_instance 
Created backend instance "kickass" for backend "kickass"                                    
2013-07-31 22:10:27,938:DEBUG:modules:modules.py:152:load_module Loaded 
module "piratebay" from 
/home/nolwenn/.local/share/weboob/modules/0.f/piratebay         
2013-07-31 22:10:27,938:DEBUG:backend:modules.py:95:create_instance 
Created backend instance "piratebay" for backend "piratebay"                                
2013-07-31 22:10:27,939:DEBUG:modules:modules.py:152:load_module Loaded 
module "btmon" from /home/nolwenn/.local/share/weboob/modules/0.f/btmon                 
2013-07-31 22:10:27,939:DEBUG:backend:modules.py:95:create_instance 
Created backend instance "btmon" for backend "btmon"                                        
Welcome to weboorrents v0.f

Copyright(C) 2010-2012 Romain Bignon
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Type "help" to display available commands.

Loaded backends: btmon, isohunt, kickass, piratebay

weboorrents> search fashion nuggets
2013-07-31 22:10:34,585:DEBUG:bcall:bcall.py:110:_caller <Backend 'isohunt'>: 
Calling function <bound method Weboorrents._do_complete of 
<weboob.applications.weboorrents.weboorrents.Weboorrents object at 
0x208a150>>                         
2013-07-31 22:10:34,596:DEBUG:bcall:bcall.py:110:_caller <Backend 'kickass'>: 
Calling function <bound method Weboorrents._do_complete of 
<weboob.applications.weboorrents.weboorrents.Weboorrents object at 
0x208a150>>                         
2013-07-31 22:10:34,612:DEBUG:bcall:bcall.py:110:_caller <Backend 
'piratebay'>: Calling function <bound method Weboorrents._do_complete of 
<weboob.applications.weboorrents.weboorrents.Weboorrents object at 
0x208a150>>                       
2013-07-31 22:10:34,614:DEBUG:bcall:bcall.py:110:_caller <Backend 'btmon'>: 
Calling function <bound method Weboorrents._do_complete of 
<weboob.applications.weboorrents.weboorrents.Weboorrents object at 
0x208a150>>                           
2013-07-31 22:10:34,934:DEBUG:bcall:bcall.py:116:_caller <Backend 'kickass'>: 
Called function <bound method Weboorrents._do_complete of 
<weboob.applications.weboorrents.weboorrents.Weboorrents object at 
0x208a150>> raised an error: BrowserHTTPNotFound('HTTP Error 404: Not Found 
(url="https://kickass.to/usearch/fashion+nuggets/?field=seeders&sorder=desc")',)                                         
2013-07-31 
22:10:35,066:DEBUG:backend.isohunt.browser:browser.py:684:_change_location 
[user_id=None] Went on 
https://isohunt.com/torrents/fashion+nuggets?iht=-1&ihp=1&ihs1=1&iho1=d                                                            
2013-07-31 
22:10:35,121:DEBUG:backend.btmon.browser:browser.py:684:_change_location 
[user_id=None] Went on http://www.btmon.com/torrent/?f=fashion+nuggets      
2013-07-31 22:10:35,252:DEBUG:bcall:bcall.py:119:_caller <Backend 'isohunt'>: 
Called function <bound method Weboorrents._do_complete of 
<weboob.applications.weboorrents.weboorrents.Weboorrents object at 
0x208a150>> returned: <generator object _do_complete_iter at 
0x7fc16017d280>                                         
* (1) INDIE 2 - TTRG (isohunt)
            3.6 GB   (Seed:  3 / Leech:  0)
* (2) Goldie Lookin Chain Mega DiscographyGoldie Lookin Chain MEGA 
DISCOGRAPHY - 18.05.08 Glc (isohunt)
            4.3 GB   (Seed:  1 / Leech:  0)
* (3) Games.for. Nokia.java (isohunt)
           396.2MB   (Seed:  1 / Leech:  0)
* (4) reggae tunes (isohunt)
            5.7 GB   (Seed:  0 / Leech:  2)
* (5) PCFSX-FS2004 FlightSimEXperience Roads & Rivers of Victoria (isohunt)
            27.2MB   (Seed:  0 / Leech:  0)
* (6) spiele java (isohunt)
           477.6MB   (Seed:  0 / Leech:  0)
* (7) HUSTLERS AND CELEBS (isohunt)
            60.3MB   (Seed:  0 / Leech:  0)
2013-07-31 
22:10:35,600:DEBUG:backend.piratebay.browser:browser.py:684:_change_location 
[user_id=None] Went on https://thepiratebay.sx/search/fashion%2Bnuggets/0/7/0                                                                           
2013-07-31 22:10:35,699:DEBUG:bcall:bcall.py:119:_caller <Backend 
'piratebay'>: Called function <bound method Weboorrents._do_complete of 
<weboob.applications.weboorrents.weboorrents.Weboorrents object at 
0x208a150>> returned: <generator object _do_complete_iter at 
0x7fc16017d320>                                       
2013-07-31 22:10:35,710:DEBUG:bcall:bcall.py:119:_caller <Backend 'btmon'>: 
Called function <bound method Weboorrents._do_complete of 
<weboob.applications.weboorrents.weboorrents.Weboorrents object at 
0x208a150>> returned: <generator object _do_complete_iter at 
0x7fc16017db40>                                           
Traceback (most recent call last):
  File "/usr/bin/weboorrents", line 27, in <module>
    Weboorrents.run()
  File "/usr/lib/python2.7/site-packages/weboob/tools/application/console.py", 
line 196, in run
    super(ConsoleApplication, klass).run(args)
  File "/usr/lib/python2.7/site-packages/weboob/tools/application/base.py", 
line 393, in run
    sys.exit(app.main(args))
  File "/usr/lib/python2.7/site-packages/weboob/tools/application/repl.py", 
line 276, in main
    self.cmdloop()
  File "/usr/lib/python2.7/cmd.py", line 142, in cmdloop
    stop = self.onecmd(line)
  File "/usr/lib/python2.7/site-packages/weboob/tools/application/repl.py", 
line 349, in onecmd
    return super(ReplApplication, self).onecmd(line)
  File "/usr/lib/python2.7/cmd.py", line 221, in onecmd
    return func(arg)
  File "/usr/lib/python2.7/site-
packages/weboob/applications/weboorrents/weboorrents.py", line 169, in 
do_search
    self.cached_format(torrent)
  File "/usr/lib/python2.7/site-packages/weboob/tools/application/repl.py", 
line 1085, in cached_format
    self.format(obj, alias=alias)
  File "/usr/lib/python2.7/site-packages/weboob/tools/application/repl.py", 
line 1092, in format
    self.formatter.format(obj=result, selected_fields=fields, alias=alias)
  File "/usr/lib/python2.7/site-
packages/weboob/tools/application/formatters/iformatter.py", line 150, in 
format
    formatted = self.format_obj(obj, alias)
  File "/usr/lib/python2.7/site-
packages/weboob/tools/application/formatters/iformatter.py", line 200, in 
format_obj
    desc = self.get_description(obj)
  File "/usr/lib/python2.7/site-
packages/weboob/applications/weboorrents/weboorrents.py", line 71, in 
get_description
    return '%10s   (Seed: %2d / Leech: %2d)' % (size, obj.seeders, 
obj.leechers)
TypeError: %d format: a number is required, not NotAvailableMeta


More information about the weboob mailing list