diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-03-10 23:16:53 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-03-10 23:16:53 +0700 |
commit | c2ee861c6d9697d9b46fdad9719b087b87cfb481 (patch) | |
tree | 4a05e4ec038e0c7cf7d5094369941a456a57b821 /youtube_dl/extractor | |
parent | bd34c32bd754f30dd34b2d43604de73681b7148b (diff) |
[extractor/generic] Make title optional for jwplayer embeds (closes #12410)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/generic.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index bc22421ae..ad47c3b6b 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -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 |