mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[Bilibili:comments] Fix infinite loop (#1423)
Closes #1412 Authored by: u-spec-png
This commit is contained in:
		| @@ -376,8 +376,10 @@ class BiliBiliIE(InfoExtractor): | ||||
|             replies = traverse_obj( | ||||
|                 self._download_json( | ||||
|                     f'https://api.bilibili.com/x/v2/reply?pn={idx}&oid={video_id}&type=1&jsonp=jsonp&sort=2&_=1567227301685', | ||||
|                     video_id, note=f'Extracting comments from page {idx}'), | ||||
|                 ('data', 'replies')) or [] | ||||
|                     video_id, note=f'Extracting comments from page {idx}', fatal=False), | ||||
|                 ('data', 'replies')) | ||||
|             if not replies: | ||||
|                 return | ||||
|             for children in map(self._get_all_children, replies): | ||||
|                 yield from children | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 u-spec-png
					u-spec-png