support changes on website
This commit is contained in:
parent
f7214e5e62
commit
1be12a9dbe
3 changed files with 18 additions and 24 deletions
|
|
@ -28,11 +28,11 @@ class YoupornVideo(BaseVideo):
|
|||
def __init__(self, *args, **kwargs):
|
||||
BaseVideo.__init__(self, *args, **kwargs)
|
||||
self.nsfw = True
|
||||
self.ext = 'flv'
|
||||
self.ext = u'flv'
|
||||
|
||||
@classmethod
|
||||
def id2url(cls, _id):
|
||||
if _id.isdigit():
|
||||
return 'http://www.youporn.com/watch/%d' % int(_id)
|
||||
return u'http://www.youporn.com/watch/%d' % int(_id)
|
||||
else:
|
||||
return None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue