Fixed import
This commit is contained in:
parent
d279d07634
commit
bb53839e10
@ -1,9 +1,7 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from youtube_dl import utils
|
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..utils import urljoin
|
from ..utils import (urljoin, parse_duration)
|
||||||
|
|
||||||
|
|
||||||
class YourPornIE(InfoExtractor):
|
class YourPornIE(InfoExtractor):
|
||||||
@ -49,8 +47,8 @@ class YourPornIE(InfoExtractor):
|
|||||||
|
|
||||||
thumbnail = self._og_search_thumbnail(webpage)
|
thumbnail = self._og_search_thumbnail(webpage)
|
||||||
|
|
||||||
duration = utils.parse_duration(self._search_regex(r'Video Info -> duration:<b>([0-9:]+)</b>',
|
duration = parse_duration(self._search_regex(r'Video Info -> duration:<b>([0-9:]+)</b>',
|
||||||
webpage, 'duration'))
|
webpage, 'duration'))
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'url': video_url,
|
'url': video_url,
|
||||||
@ -58,4 +56,4 @@ class YourPornIE(InfoExtractor):
|
|||||||
'duration': duration,
|
'duration': duration,
|
||||||
'thumbnail': thumbnail,
|
'thumbnail': thumbnail,
|
||||||
'age_limit': 18
|
'age_limit': 18
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user