Bug #1868

search is broken on the francetelevisions backend

Added by Alexandre Poux over 2 years ago. Updated over 2 years ago.

Status:Resolved Start:2015-04-21
Priority:Normal Due date:
Assigned to:- % Done:

100%

Category:Application / videoob Spent time: -
Target version:-
Module:francetelevisions Branch:

Description

$>videoob search onpc --backend=francetelevisions --debug
2015-04-21 05:24:10,431:DEBUG:modules:1.0:modules.py:161:load_module Loaded module "francetelevisions" from /home/alex/.local/share/weboob/modules/1.0/francetelevisions
2015-04-21 05:24:10,432:DEBUG:backend:1.0:modules.py:98:create_instance Created backend "francetelevisions" for module "francetelevisions"
2015-04-21 05:24:10,432:DEBUG:root:1.0:iniconfig.py:45:load Loading application configuration file: /home/alex/.config/weboob/videoob.
2015-04-21 05:24:10,433:DEBUG:root:1.0:iniconfig.py:62:load Application configuration file loaded: /home/alex/.config/weboob/videoob.
2015-04-21 05:24:10,437:DEBUG:bcall:1.0:bcall.py:81:backend_process <Backend 'francetelevisions'>: Calling function <bound method Videoob._do_complete of <weboob.applications.videoob.videoob.Videoob object at 0x7f5c702a4e10>>
2015-04-21 05:24:10,441:DEBUG:requests.packages.urllib3.util.retry:1.0:retry.py:155:from_int Converted retries value: 2 > Retry(total=2, connect=None, read=None, redirect=None)
2015-04-21 05:24:10,447:INFO:requests.packages.urllib3.connectionpool:1.0:connectionpool.py:203:_new_conn Starting new HTTP connection (1): pluzz.webservices.francetelevisions.fr
2015-04-21 05:24:10,549:DEBUG:requests.packages.urllib3.connectionpool:1.0:connectionpool.py:383:_make_request "GET /pluzz/programme HTTP/1.1" 200 19909
2015-04-21 05:24:10,577:DEBUG:backend.francetelevisions.browser:1.0:browsers.py:596:internal_callback Handle http://pluzz.webservices.francetelevisions.fr/pluzz/programme with Programs
2015-04-21 05:24:11,016:INFO:requests.packages.urllib3.connectionpool:1.0:connectionpool.py:203:_new_conn Starting new HTTP connection (1): pluzz.francetv.fr
2015-04-21 05:24:11,118:DEBUG:requests.packages.urllib3.connectionpool:1.0:connectionpool.py:383:_make_request "GET /recherche?recherche=onpc HTTP/1.1" 200 6748
2015-04-21 05:24:11,125:DEBUG:backend.francetelevisions.browser:1.0:browsers.py:596:internal_callback Handle http://pluzz.francetv.fr/recherche?recherche=onpc with IndexPage
2015-04-21 05:24:11,125:DEBUG:bcall:1.0:bcall.py:90:backend_process <Backend 'francetelevisions'>: Called function <bound method Videoob._do_complete of <weboob.applications.videoob.videoob.Videoob object at 0x7f5c702a4e10>> returned: <generator object _do_complete_iter at 0x7f5c6e8620f0>
2015-04-21 05:24:11,128:WARNING:item:1.0:elements.py:272:handle_attr Attribute title raises RegexpError("Unable to match 1st .+(\\d{2}
\\d{2}-\\d{2}).+ in u''",)
Bug(francetelevisions): Unable to match 1st .+(\d{2}-\d{2}-\d{2}).+ in u''
2015-04-21 05:24:11,142:DEBUG:requests.packages.urllib3.util.retry:1.0:retry.py:155:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None) === [ 0%] Getting http://updates.weboob.org/1.0/main/
2015-04-21 05:24:11,144:INFO:requests.packages.urllib3.connectionpool:1.0:connectionpool.py:203:_new_conn Starting new HTTP connection (1): updates.weboob.org
2015-04-21 05:24:11,253:DEBUG:requests.packages.urllib3.connectionpool:1.0:connectionpool.py:383:_make_request "GET /1.0/main/modules.list HTTP/1.1" 200 35970
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/weboob/core/bcall.py", line 95, in backend_process
for subresult in result:
File "/usr/lib64/python2.7/site-packages/weboob/tools/application/base.py", line 284, in do_complete_iter
for i, sub in enumerate(res):
File "/usr/lib64/python2.7/site-packages/weboob/browser/elements.py", line 151, in iter
for obj in item:
File "/usr/lib64/python2.7/site-packages/weboob/browser/elements.py", line 258, in iter
self.handle_attr(attr, getattr(self, 'obj
%s' % attr))
File "/usr/lib64/python2.7/site-packages/weboob/browser/elements.py", line 269, in handle_attr
value = self.use_selector(func, key=key)
File "/usr/lib64/python2.7/site-packages/weboob/browser/elements.py", line 79, in use_selector
value = func(self)
File "/usr/lib64/python2.7/site-packages/weboob/browser/filters/standard.py", line 617, in call
values = [self.select(selector, item, obj=self._obj, key=self._key) for selector in self.selector]
File "/usr/lib64/python2.7/site-packages/weboob/browser/filters/standard.py", line 166, in select
return selector(item)
File "/usr/lib64/python2.7/site-packages/weboob/browser/filters/standard.py", line 173, in call
return self.filter(self.select(self.selector, item, key=self._key, obj=self._obj))
File "/usr/lib64/python2.7/site-packages/weboob/browser/filters/standard.py", line 135, in print_debug
res = function(self, value)
File "/usr/lib64/python2.7/site-packages/weboob/browser/filters/standard.py", line 509, in filter
return self.default_or_raise(RegexpError(msg))
File "/usr/lib64/python2.7/site-packages/weboob/browser/filters/standard.py", line 91, in default_or_raise
raise exception
RegexpError: Unable to match 1st .+(\d{2}-\d{2}-\d{2}).+ in u''

Associated revisions

Revision 6af73546128da7ae6f3b286d9b1e9758786dd0fa
Added by Benjamin CARTON over 2 years ago

[francetelevisions] fix #1868 site changed

History

Updated by Alexandre Poux over 2 years ago

Désolé pour la première version non formaté, je suis allé un peu vite.

$>videoob search onpc --backend=francetelevisions --debug
@2015-04-21 05:24:10,431:DEBUG:modules:1.0:modules.py:161:load_module Loaded module "francetelevisions" from /home/alex/.local/share/weboob/modules/1.0/francetelevisions
2015-04-21 05:24:10,432:DEBUG:backend:1.0:modules.py:98:create_instance Created backend "francetelevisions" for module "francetelevisions" 
2015-04-21 05:24:10,432:DEBUG:root:1.0:iniconfig.py:45:load Loading application configuration file: /home/alex/.config/weboob/videoob.
2015-04-21 05:24:10,433:DEBUG:root:1.0:iniconfig.py:62:load Application configuration file loaded: /home/alex/.config/weboob/videoob.
2015-04-21 05:24:10,437:DEBUG:bcall:1.0:bcall.py:81:backend_process <Backend 'francetelevisions'>: Calling function <bound method Videoob._do_complete of <weboob.applications.videoob.videoob.Videoob object at 0x7f5c702a4e10>>
2015-04-21 05:24:10,441:DEBUG:requests.packages.urllib3.util.retry:1.0:retry.py:155:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None)
2015-04-21 05:24:10,447:INFO:requests.packages.urllib3.connectionpool:1.0:connectionpool.py:203:_new_conn Starting new HTTP connection (1): pluzz.webservices.francetelevisions.fr
2015-04-21 05:24:10,549:DEBUG:requests.packages.urllib3.connectionpool:1.0:connectionpool.py:383:_make_request "GET /pluzz/programme HTTP/1.1" 200 19909
2015-04-21 05:24:10,577:DEBUG:backend.francetelevisions.browser:1.0:browsers.py:596:internal_callback Handle http://pluzz.webservices.francetelevisions.fr/pluzz/programme with Programs
2015-04-21 05:24:11,016:INFO:requests.packages.urllib3.connectionpool:1.0:connectionpool.py:203:_new_conn Starting new HTTP connection (1): pluzz.francetv.fr
2015-04-21 05:24:11,118:DEBUG:requests.packages.urllib3.connectionpool:1.0:connectionpool.py:383:_make_request "GET /recherche?recherche=onpc HTTP/1.1" 200 6748
2015-04-21 05:24:11,125:DEBUG:backend.francetelevisions.browser:1.0:browsers.py:596:internal_callback Handle http://pluzz.francetv.fr/recherche?recherche=onpc with IndexPage
2015-04-21 05:24:11,125:DEBUG:bcall:1.0:bcall.py:90:backend_process <Backend 'francetelevisions'>: Called function <bound method Videoob._do_complete of <weboob.applications.videoob.videoob.Videoob object at 0x7f5c702a4e10>> returned: <generator object _do_complete_iter at 0x7f5c6e8620f0>
2015-04-21 05:24:11,128:WARNING:item:1.0:elements.py:272:handle_attr Attribute title raises RegexpError("Unable to match 1st .+(\\d{2}-\\d{2}-\\d{2}).+ in u''",)
Bug(francetelevisions): Unable to match 1st .+(\d{2}-\d{2}-\d{2}).+ in u''
2015-04-21 05:24:11,142:DEBUG:requests.packages.urllib3.util.retry:1.0:retry.py:155:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None)
=== [  0%] Getting http://updates.weboob.org/1.0/main/
2015-04-21 05:24:11,144:INFO:requests.packages.urllib3.connectionpool:1.0:connectionpool.py:203:_new_conn Starting new HTTP connection (1): updates.weboob.org
2015-04-21 05:24:11,253:DEBUG:requests.packages.urllib3.connectionpool:1.0:connectionpool.py:383:_make_request "GET /1.0/main/modules.list HTTP/1.1" 200 35970
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/weboob/core/bcall.py", line 95, in backend_process
    for subresult in result:
  File "/usr/lib64/python2.7/site-packages/weboob/tools/application/base.py", line 284, in _do_complete_iter
    for i, sub in enumerate(res):
  File "/usr/lib64/python2.7/site-packages/weboob/browser/elements.py", line 151, in __iter__
    for obj in item:
  File "/usr/lib64/python2.7/site-packages/weboob/browser/elements.py", line 258, in __iter__
    self.handle_attr(attr, getattr(self, 'obj_%s' % attr))
  File "/usr/lib64/python2.7/site-packages/weboob/browser/elements.py", line 269, in handle_attr
    value = self.use_selector(func, key=key)
  File "/usr/lib64/python2.7/site-packages/weboob/browser/elements.py", line 79, in use_selector
    value = func(self)
  File "/usr/lib64/python2.7/site-packages/weboob/browser/filters/standard.py", line 617, in __call__
    values = [self.select(selector, item, obj=self._obj, key=self._key) for selector in self.selector]
  File "/usr/lib64/python2.7/site-packages/weboob/browser/filters/standard.py", line 166, in select
    return selector(item)
  File "/usr/lib64/python2.7/site-packages/weboob/browser/filters/standard.py", line 173, in __call__
    return self.filter(self.select(self.selector, item, key=self._key, obj=self._obj))
  File "/usr/lib64/python2.7/site-packages/weboob/browser/filters/standard.py", line 135, in print_debug
    res = function(self, value)
  File "/usr/lib64/python2.7/site-packages/weboob/browser/filters/standard.py", line 509, in filter
    return self.default_or_raise(RegexpError(msg))
  File "/usr/lib64/python2.7/site-packages/weboob/browser/filters/standard.py", line 91, in default_or_raise
    raise exception
RegexpError: Unable to match 1st .+(\d{2}-\d{2}-\d{2}).+ in u''@

Updated by Benjamin CARTON over 2 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Updated by Alexandre Poux over 2 years ago

Merci, le fix fonctionne parfaitement.

Also available in: Atom PDF