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:
		| @@ -926,9 +926,9 @@ class BiliIntlIE(BiliIntlBaseIE): | ||||
|         if season_id and not video_data: | ||||
|             # Non-Bstation layout, read through episode list | ||||
|             season_json = self._call_api(f'/web/v2/ogv/play/episodes?season_id={season_id}&platform=web', video_id) | ||||
|             video_data = next( | ||||
|                 episode for episode in traverse_obj(season_json, ('sections', ..., 'episodes', ...), expected_type=dict) | ||||
|                 if str(episode.get('episode_id')) == ep_id) | ||||
|             video_data = traverse_obj(season_json, | ||||
|                                       ('sections', ..., 'episodes', lambda _, v: str(v['episode_id']) == ep_id), | ||||
|                                       expected_type=dict, get_all=False) | ||||
|         return self._extract_video_info(video_data, ep_id=ep_id, aid=aid) | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan