mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-05 14:06:15 +02:00
[extractor/generic] Don't return JW player without formats
CLoses #4765
This commit is contained in:
parent
89e4d86171
commit
4e4982ab5b
@ -25,6 +25,7 @@
|
|||||||
parse_resolution,
|
parse_resolution,
|
||||||
smuggle_url,
|
smuggle_url,
|
||||||
str_or_none,
|
str_or_none,
|
||||||
|
traverse_obj,
|
||||||
try_call,
|
try_call,
|
||||||
unescapeHTML,
|
unescapeHTML,
|
||||||
unified_timestamp,
|
unified_timestamp,
|
||||||
@ -2839,6 +2840,7 @@ def _real_extract(self, url):
|
|||||||
try:
|
try:
|
||||||
info = self._parse_jwplayer_data(
|
info = self._parse_jwplayer_data(
|
||||||
jwplayer_data, video_id, require_title=False, base_url=url)
|
jwplayer_data, video_id, require_title=False, base_url=url)
|
||||||
|
if traverse_obj(info, 'formats', ('entries', ..., 'formats')):
|
||||||
self.report_detected('JW Player data')
|
self.report_detected('JW Player data')
|
||||||
return merge_dicts(info, info_dict)
|
return merge_dicts(info, info_dict)
|
||||||
except ExtractorError:
|
except ExtractorError:
|
||||||
|
Loading…
Reference in New Issue
Block a user