nsfw is handled in video subclasses

nsfw
This commit is contained in:
Christophe Benz 2010-07-12 03:13:30 +02:00
commit d427f0a899
5 changed files with 10 additions and 6 deletions

View file

@ -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():