Browse Source
[extractor/generic] Make title optional for jwplayer embeds (closes #12410)
master
Sergey M․
7 years ago
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with
4 additions and
1 deletions
-
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 |
|
|
|
|
|
|
|