mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-14 12:15:23 +00:00
[ie/threads] Fix multi mixed media extraction
This commit is contained in:
@@ -75,7 +75,7 @@ class ThreadsIE(InfoExtractor):
|
||||
thumbnails = []
|
||||
|
||||
# Videos
|
||||
if (post.get('carousel_media') is not None): # Handle multiple videos posts
|
||||
if post.get('carousel_media') is not None: # Handle multiple videos posts
|
||||
media_list = post.get('carousel_media')
|
||||
else:
|
||||
media_list = [post]
|
||||
@@ -83,6 +83,7 @@ class ThreadsIE(InfoExtractor):
|
||||
for media in media_list:
|
||||
videos = media.get('video_versions')
|
||||
|
||||
if videos:
|
||||
for video in videos:
|
||||
formats.append({
|
||||
'format_id': '%s-%s' % (media.get('pk'), video['type']), # id-type
|
||||
|
||||
Reference in New Issue
Block a user