Add fallbacks for id and title, just in case.

This commit is contained in:
Tim Mann 2021-02-13 17:49:58 -08:00
parent d900bd96b4
commit 10273fbd22

View File

@ -49,8 +49,10 @@ class Pac12IE(InfoExtractor):
return self.url_result(vod_url)
return {
'id': cv.get('id'),
'title': cv.get('title'),
'id': cv.get('id') or video_id,
'title': (cv.get('title')
or self._html_search_regex(r'<title>(.+?)</title>',
webpage, 'title')),
'description': cv.get('description'),
'url': manifest_url,
'ext': 'mp4',