new 'nsfw' Video attribute
This commit is contained in:
parent
ba257b41da
commit
35c0c7385b
3 changed files with 6 additions and 3 deletions
|
|
@ -64,4 +64,5 @@ class IndexPage(PornPage):
|
|||
rating=rating,
|
||||
rating_max=rating_max,
|
||||
duration=duration,
|
||||
preview_url=preview_url)
|
||||
preview_url=preview_url,
|
||||
nsfw=True)
|
||||
|
|
|
|||
|
|
@ -34,7 +34,8 @@ class VideoPage(PornPage):
|
|||
|
||||
self.video = Video(self.get_id(),
|
||||
self.get_title(),
|
||||
self.get_url())
|
||||
self.get_url(),
|
||||
nsfw=True)
|
||||
|
||||
self.set_details(self.video)
|
||||
|
||||
|
|
|
|||
|
|
@ -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, preview_url=None):
|
||||
def __init__(self, _id, title=u'', url=u'', author=u'', duration=0, date=None, rating=0, rating_max=0, preview_url=None, nsfw=False):
|
||||
self.id = _id
|
||||
self.title = title
|
||||
self.url = url
|
||||
|
|
@ -35,6 +35,7 @@ class Video(object):
|
|||
self.rating = rating
|
||||
self.rating_max = rating_max
|
||||
self.preview_url = preview_url
|
||||
self.nsfw = nsfw
|
||||
|
||||
class ICapVideoProvider(ICap):
|
||||
def iter_page_urls(self, mozaic_url):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue