mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-24 23:25:54 -07:00
Add fallbacks for id and title, just in case.
This commit is contained in:
parent
d900bd96b4
commit
10273fbd22
1 changed files with 4 additions and 2 deletions
|
@ -49,8 +49,10 @@ class Pac12IE(InfoExtractor):
|
||||||
return self.url_result(vod_url)
|
return self.url_result(vod_url)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': cv.get('id'),
|
'id': cv.get('id') or video_id,
|
||||||
'title': cv.get('title'),
|
'title': (cv.get('title')
|
||||||
|
or self._html_search_regex(r'<title>(.+?)</title>',
|
||||||
|
webpage, 'title')),
|
||||||
'description': cv.get('description'),
|
'description': cv.get('description'),
|
||||||
'url': manifest_url,
|
'url': manifest_url,
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue