do not use thumbnail_url anymore (closes #810), use set_empty_fields() method, do not give fields in constructor of BaseVideo anymore
This commit is contained in:
parent
56691d7ea7
commit
ef07a9e795
11 changed files with 79 additions and 66 deletions
|
|
@ -25,8 +25,8 @@ try:
|
|||
except ImportError:
|
||||
from cgi import parse_qs
|
||||
|
||||
from weboob.tools.browser import BasePage
|
||||
from weboob.tools.browser import BrokenPageError
|
||||
from weboob.capabilities import NotAvailable
|
||||
from weboob.tools.browser import BasePage, BrokenPageError
|
||||
|
||||
from ..video import InaVideo
|
||||
|
||||
|
|
@ -45,6 +45,8 @@ class BaseVideoPage(BasePage):
|
|||
video.date = date
|
||||
video.duration = duration
|
||||
video.description = self.get_description()
|
||||
|
||||
video.set_empty_fields(NotAvailable)
|
||||
return video
|
||||
|
||||
def get_id(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue