mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +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:
		| @@ -469,7 +469,7 @@ class NiconicoIE(InfoExtractor): | ||||
|         comment_user_key = traverse_obj(api_data, ('comment', 'keys', 'userKey')) | ||||
|         user_id_str = session_api_data.get('serviceUserId') | ||||
|  | ||||
|         thread_ids = [x for x in traverse_obj(api_data, ('comment', 'threads')) or [] if x['isActive']] | ||||
|         thread_ids = traverse_obj(api_data, ('comment', 'threads', lambda _, v: v['isActive'])) | ||||
|         raw_danmaku = self._extract_all_comments(video_id, thread_ids, user_id_str, comment_user_key) | ||||
|         if not raw_danmaku: | ||||
|             self.report_warning(f'Failed to get comments. {bug_reports_message()}') | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan