mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-12-23 04:30:10 +09:00
[extractor/generic] Make title optional for jwplayer embeds (closes #12410)
This commit is contained in:
parent
bd34c32bd7
commit
c2ee861c6d
@ -2550,7 +2550,10 @@ class GenericIE(InfoExtractor):
|
|||||||
try:
|
try:
|
||||||
jwplayer_data = self._parse_json(
|
jwplayer_data = self._parse_json(
|
||||||
jwplayer_data_str, video_id, transform_source=js_to_json)
|
jwplayer_data_str, video_id, transform_source=js_to_json)
|
||||||
return self._parse_jwplayer_data(jwplayer_data, video_id)
|
info = self._parse_jwplayer_data(
|
||||||
|
jwplayer_data, video_id, require_title=False)
|
||||||
|
if not info.get('title'):
|
||||||
|
info['title'] = video_title
|
||||||
except ExtractorError:
|
except ExtractorError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user