@@ -25,6 +25,7 @@ class YouPornIE(InfoExtractor):
25
25
'title' : 'Sex Ed: Is It Safe To Masturbate Daily?' ,
26
26
'description' : 'Love & Sex Answers: http://bit.ly/DanAndJenn -- Is It Unhealthy To Masturbate Daily?' ,
27
27
'thumbnail' : r're:^https?://.*\.jpg$' ,
28
+ 'duration' : 210 ,
28
29
'uploader' : 'Ask Dan And Jennifer' ,
29
30
'upload_date' : '20101217' ,
30
31
'average_rating' : int ,
@@ -153,6 +154,8 @@ def _real_extract(self, url):
153
154
thumbnail = self ._search_regex (
154
155
r'(?:imageurl\s*=|poster\s*:)\s*(["\'])(?P<thumbnail>.+?)\1' ,
155
156
webpage , 'thumbnail' , fatal = False , group = 'thumbnail' )
157
+ duration = int_or_none (self ._html_search_meta (
158
+ 'video:duration' , webpage , 'duration' , fatal = False ))
156
159
157
160
uploader = self ._html_search_regex (
158
161
r'(?s)<div[^>]+class=["\']submitByLink["\'][^>]*>(.+?)</div>' ,
@@ -194,6 +197,7 @@ def extract_tag_box(regex, title):
194
197
'title' : title ,
195
198
'description' : description ,
196
199
'thumbnail' : thumbnail ,
200
+ 'duration' : duration ,
197
201
'uploader' : uploader ,
198
202
'upload_date' : upload_date ,
199
203
'average_rating' : average_rating ,
0 commit comments