mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-25 03:32:05 +00:00
[jwplatform] Support old-style jwplayer playlists
This commit is contained in:
parent
bd26441205
commit
fd15264172
2 changed files with 7 additions and 0 deletions
|
@ -6,6 +6,7 @@ Core
|
||||||
--xattr-set-filesize (#9054)
|
--xattr-set-filesize (#9054)
|
||||||
|
|
||||||
Extractors
|
Extractors
|
||||||
|
* [jwplatform] Improve JWPlayer handling
|
||||||
* [dctp] Fix extraction (#10734)
|
* [dctp] Fix extraction (#10734)
|
||||||
+ [leeco] Recognize more Le Sports URLs (#10794)
|
+ [leeco] Recognize more Le Sports URLs (#10794)
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,12 @@ class JWPlatformBaseIE(InfoExtractor):
|
||||||
jwplayer_data = {'playlist': [jwplayer_data]}
|
jwplayer_data = {'playlist': [jwplayer_data]}
|
||||||
|
|
||||||
entries = []
|
entries = []
|
||||||
|
|
||||||
|
# JWPlayer backward compatibility: single playlist item
|
||||||
|
# https://github.com/jwplayer/jwplayer/blob/v7.7.0/src/js/playlist/playlist.js#L10
|
||||||
|
if not isinstance(jwplayer_data['playlist'], list):
|
||||||
|
jwplayer_data['playlist'] = [jwplayer_data['playlist']]
|
||||||
|
|
||||||
for video_data in jwplayer_data['playlist']:
|
for video_data in jwplayer_data['playlist']:
|
||||||
# JWPlayer backward compatibility: flattened sources
|
# JWPlayer backward compatibility: flattened sources
|
||||||
# https://github.com/jwplayer/jwplayer/blob/v7.4.3/src/js/playlist/item.js#L29-L35
|
# https://github.com/jwplayer/jwplayer/blob/v7.4.3/src/js/playlist/item.js#L29-L35
|
||||||
|
|
Loading…
Reference in a new issue