Wont fail if description not found

This commit is contained in:
JChris246 2019-01-26 13:50:51 -04:00 committed by GitHub
parent bb53839e10
commit 547471ead5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ class YourPornIE(InfoExtractor):
thumbnail = self._og_search_thumbnail(webpage)
duration = parse_duration(self._search_regex(r'Video Info -> duration:<b>([0-9:]+)</b>',
webpage, 'duration'))
webpage, 'duration', default=None))
return {
'id': video_id,
'url': video_url,
@ -56,4 +56,4 @@ class YourPornIE(InfoExtractor):
'duration': duration,
'thumbnail': thumbnail,
'age_limit': 18
}
}