from ..utils import (
ExtractorError,
js_to_json,
+ parse_duration,
)
'uploader': 'The Escapist Presents',
'title': "Breaking Down Baldur's Gate",
'thumbnail': 're:^https?://.*\.jpg$',
+ 'duration': 264,
}
}
r"<h1\s+class='headline'>(.*?)</a>",
webpage, 'uploader', fatal=False)
description = self._html_search_meta('description', webpage)
+ duration = parse_duration(self._html_search_meta('duration', webpage))
raw_title = self._html_search_meta('title', webpage, fatal=True)
title = raw_title.partition(' : ')[2]
'title': title,
'thumbnail': self._og_search_thumbnail(webpage),
'description': description,
+ 'duration': duration,
}
if self._downloader.params.get('include_ads') and ad_formats: