1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[extractor/generic] Make title optional for jwplayer embeds (closes #12410)

This commit is contained in:
Sergey M․ 2017-03-10 23:16:53 +07:00
parent bd34c32bd7
commit c2ee861c6d
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -2550,7 +2550,10 @@ class GenericIE(InfoExtractor):
try:
jwplayer_data = self._parse_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:
pass