mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[cleanup] Misc fixes
Closes https://github.com/yt-dlp/yt-dlp/pull/3213, Closes https://github.com/yt-dlp/yt-dlp/pull/3117 Related: https://github.com/yt-dlp/yt-dlp/issues/3146#issuecomment-1077323114, https://github.com/yt-dlp/yt-dlp/pull/3277#discussion_r841019671,a825ffbffa (commitcomment-68538986), https://github.com/yt-dlp/yt-dlp/issues/2360,5fa3c9a88f (r70393519),5fa3c9a88f (r70393254)
This commit is contained in:
		| @@ -397,8 +397,10 @@ class FacebookIE(InfoExtractor): | ||||
|                 r'handleWithCustomApplyEach\(\s*ScheduledApplyEach\s*,\s*(\{.+?\})\s*\);', webpage)] | ||||
|             post = traverse_obj(post_data, ( | ||||
|                 ..., 'require', ..., ..., ..., '__bbox', 'result', 'data'), expected_type=dict) or [] | ||||
|             media = [m for m in traverse_obj(post, (..., 'attachments', ..., 'media'), expected_type=dict) or [] | ||||
|                      if str(m.get('id')) == video_id and m.get('__typename') == 'Video'] | ||||
|             media = traverse_obj( | ||||
|                 post, | ||||
|                 (..., 'attachments', ..., 'media', lambda _, m: str(m['id']) == video_id and m['__typename'] == 'Video'), | ||||
|                 expected_type=dict) | ||||
|             title = get_first(media, ('title', 'text')) | ||||
|             description = get_first(media, ('creation_story', 'comet_sections', 'message', 'story', 'message', 'text')) | ||||
|             uploader_data = get_first(media, 'owner') or get_first(post, ('node', 'actors', ...)) or {} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan