mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-02-05 10:10:10 +09:00
Look harder for the description. Both tests pass now.
This commit is contained in:
parent
f5e049fbc2
commit
92a3cd37a6
@ -44,14 +44,18 @@ class Pac12IE(InfoExtractor):
|
|||||||
return None
|
return None
|
||||||
return self.url_result(vod_url)
|
return self.url_result(vod_url)
|
||||||
video_url = re.sub(r'\\', '', video_url)
|
video_url = re.sub(r'\\', '', video_url)
|
||||||
title = self._html_search_regex(r'<title>(.+?)</title>',
|
|
||||||
webpage, 'title')
|
|
||||||
if 'vod-' not in url and vod_url is not None:
|
if 'vod-' not in url and vod_url is not None:
|
||||||
video_id = self._match_id(vod_url)
|
video_id = self._match_id(vod_url)
|
||||||
|
title = self._html_search_regex(r'<title>(.+?)</title>',
|
||||||
|
webpage, 'title')
|
||||||
|
description = self._og_search_description(webpage, default=None) \
|
||||||
|
or self._search_regex(r'"description":"(?P<description>[^"]+)"',
|
||||||
|
webpage, 'description', default="") \
|
||||||
|
.encode('utf-8').decode('unicode_escape')
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'title': title,
|
'title': title,
|
||||||
'description': self._og_search_description(webpage),
|
'description': description,
|
||||||
'url': video_url,
|
'url': video_url,
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user