new preview_url attribute
This commit is contained in:
parent
0bd6951873
commit
3d02ff23a0
1 changed files with 2 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ __all__ = ['ICapVideoProvider', 'Video']
|
|||
|
||||
|
||||
class Video(object):
|
||||
def __init__(self, _id, title=u'', url=u'', author=u'', duration=0, date=None, rating=0, rating_max=0):
|
||||
def __init__(self, _id, title=u'', url=u'', author=u'', duration=0, date=None, rating=0, rating_max=0, preview_url=None):
|
||||
self.id = _id
|
||||
self.title = title
|
||||
self.url = url
|
||||
|
|
@ -34,6 +34,7 @@ class Video(object):
|
|||
self.date = date
|
||||
self.rating = rating
|
||||
self.rating_max = rating_max
|
||||
self.preview_url = preview_url
|
||||
|
||||
class ICapVideoProvider(ICap):
|
||||
def iter_page_urls(self, mozaic_url):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue