rewrite video decorators to be in browser
This commit is contained in:
parent
83ec57629b
commit
0de0f2a768
19 changed files with 167 additions and 119 deletions
|
|
@ -23,6 +23,10 @@ __all__ = ['YoupornVideo']
|
|||
|
||||
|
||||
class YoupornVideo(BaseVideo):
|
||||
def __init__(self, *args, **kwargs):
|
||||
BaseVideo.__init__(self, *args, **kwargs)
|
||||
self.id = u'%s@youporn.com' % self.id
|
||||
|
||||
@classmethod
|
||||
def id2url(cls, _id):
|
||||
return 'http://www.youporn.com/watch/%d' % int(_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue