nsfw is handled in video subclasses
nsfw
This commit is contained in:
parent
c999c68459
commit
d427f0a899
5 changed files with 10 additions and 6 deletions
|
|
@ -23,6 +23,10 @@ __all__ = ['YoupornVideo']
|
|||
|
||||
|
||||
class YoupornVideo(BaseVideo):
|
||||
def __init__(self, *args, **kwargs):
|
||||
BaseVideo.__init__(self, *args, **kwargs)
|
||||
self.nsfw = True
|
||||
|
||||
@classmethod
|
||||
def id2url(cls, _id):
|
||||
if _id.isdigit():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue