[weboob] [videoob] AttributeError: 'NoneType' object has no attribute 'group'

Romain Garbage romain.garbage at gmail.com
Sun May 1 11:53:33 CEST 2011


Hi,

Running videoob from weboob-0.7 under FreeBSD (FYI I did a port, it is
currently being tested), I am unable to get info or play a video.
Below is backtrace with command history. Any idea?

videoob> backends
Enabled: dailymotion
Disabled: canalplus, arte, youtube, ina
videoob> search hijodelaluna rasgueo
Search pattern: hijodelaluna rasgueo
2011-05-01 11:40:56,297:DEBUG:bcall:bcall.py:78:__init__ Creating a
new thread for <Backend 'dailymotion'>
2011-05-01 11:40:56,298:DEBUG:bcall:bcall.py:98:_caller <Backend
'dailymotion'>: Thread created successfully
2011-05-01 11:40:56,298:DEBUG:bcall:bcall.py:103:_caller <Backend
'dailymotion'>: Calling function <bound method Videoob._do_complete of
<weboob.applications.videoob.videoob.Videoob object at 0x8018eee10>>
2011-05-01 11:41:16,980:DEBUG:backend.dailymotion.browser:browser.py:422:_change_location
[user_id=None] Went on
http://www.dailymotion.com/relevance/search/hijodelaluna+rasgueo/1
2011-05-01 11:41:17,157:DEBUG:bcall:bcall.py:112:_caller <Backend
'dailymotion'>: Called function <bound method Videoob._do_complete of
<weboob.applications.videoob.videoob.Videoob object at 0x8018eee10>>
returned: <generator object _do_complete_iter at 0x80bea0c80>
* (1) Flamenco lesson--El rasgueo clasico (dailymotion)
            0:06:42 - hijodelaluna (60/60)
* (2) Flamenco lesson--El rasgueo I (dailymotion)
            0:09:02 - hijodelaluna (60/60)
* (3) Flamenco-El rasgueo abanico (dailymotion)
            0:05:20 - hijodelaluna (60/60)
* (4) Flamenco lesson -El rasgueo  tangos (dailymotion)
            0:05:54 - hijodelaluna (60/60)
* (5) flamenco lesson rasgueo (dailymotion)
            0:04:00 - hijodelaluna (60/60)
videoob> info 2
2011-05-01 11:41:31,187:DEBUG:bcall:bcall.py:78:__init__ Creating a
new thread for <Backend 'dailymotion'>
2011-05-01 11:41:31,188:DEBUG:bcall:bcall.py:98:_caller <Backend
'dailymotion'>: Thread created successfully
2011-05-01 11:41:31,188:DEBUG:bcall:bcall.py:103:_caller <Backend
'dailymotion'>: Calling function <bound method Videoob._do_complete of
<weboob.applications.videoob.videoob.Videoob object at 0x8018eee10>>
2011-05-01 11:41:31,189:DEBUG:backend.dailymotion:backend.py:246:fillobj
Fill <weboob.backends.dailymotion.video.DailymotionVideo object at
0x80be9a850> with fields: ['url', 'date', 'thumbnail']
2011-05-01 11:41:31,504:DEBUG:backend.dailymotion.browser:browser.py:422:_change_location
[user_id=None] Went on http://www.dailymotion.com/video/5412621
2011-05-01 11:41:31,665:DEBUG:bcall:bcall.py:109:_caller <Backend
'dailymotion'>: Called function <bound method Videoob._do_complete of
<weboob.applications.videoob.videoob.Videoob object at 0x8018eee10>>
raised an error: AttributeError("'NoneType' object has no attribute
'group'",)
Error(dailymotion): 'NoneType' object has no attribute 'group'
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/weboob-0.7-py2.7.egg/weboob/core/bcall.py",
line 105, in _caller
    result = function(backend, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/weboob-0.7-py2.7.egg/weboob/tools/application/base.py",
line 254, in _do_complete
    res = getattr(backend, function)(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/weboob-0.7-py2.7.egg/weboob/tools/backend.py",
line 247, in fillobj
    return value(self, obj, missing_fields) or obj
  File "/usr/local/lib/python2.7/site-packages/weboob-0.7-py2.7.egg/weboob/backends/dailymotion/backend.py",
line 53, in fill_video
    video = self.browser.get_video(DailymotionVideo.id2url(video.id), video)
  File "/usr/local/lib/python2.7/site-packages/weboob-0.7-py2.7.egg/weboob/tools/browser/decorators.py",
line 47, in inner
    return func(self, *new_args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/weboob-0.7-py2.7.egg/weboob/backends/dailymotion/browser.py",
line 41, in get_video
    return self.page.get_video(video)
  File "/usr/local/lib/python2.7/site-packages/weboob-0.7-py2.7.egg/weboob/backends/dailymotion/pages.py",
line 83, in get_video
    mediaURL = urllib.unquote(mobj.group(1))
AttributeError: 'NoneType' object has no attribute 'group'



More information about the weboob mailing list