From 10273fbd22619c5a5055ef49ebfb706402a87949 Mon Sep 17 00:00:00 2001 From: Tim Mann Date: Sat, 13 Feb 2021 17:49:58 -0800 Subject: [PATCH] Add fallbacks for id and title, just in case. --- youtube_dl/extractor/pac12.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/pac12.py b/youtube_dl/extractor/pac12.py index 5619cac9d..785730cd6 100644 --- a/youtube_dl/extractor/pac12.py +++ b/youtube_dl/extractor/pac12.py @@ -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'(.+?)', + webpage, 'title')), 'description': cv.get('description'), 'url': manifest_url, 'ext': 'mp4',