mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[cleanup] Add more ruff rules (#10149)
Authored by: seproDev Reviewed-by: bashonly <88596187+bashonly@users.noreply.github.com> Reviewed-by: Simon Sawicki <contact@grub4k.xyz>
This commit is contained in:
		| @@ -37,11 +37,11 @@ class MicrosoftStreamIE(InfoExtractor): | ||||
|             sub_dict = automatic_captions if track.get('autoGenerated') else subtitles | ||||
|             sub_dict.setdefault(track['language'], []).append({ | ||||
|                 'ext': 'vtt', | ||||
|                 'url': track.get('url') | ||||
|                 'url': track.get('url'), | ||||
|             }) | ||||
|         return { | ||||
|             'subtitles': subtitles, | ||||
|             'automatic_captions': automatic_captions | ||||
|             'automatic_captions': automatic_captions, | ||||
|         } | ||||
| 
 | ||||
|     def extract_all_subtitles(self, *args, **kwargs): | ||||
| @@ -66,7 +66,7 @@ class MicrosoftStreamIE(InfoExtractor): | ||||
|             f'{api_url}/videos/{video_id}', video_id, | ||||
|             headers=headers, query={ | ||||
|                 '$expand': 'creator,tokens,status,liveEvent,extensions', | ||||
|                 'api-version': '1.4-private' | ||||
|                 'api-version': '1.4-private', | ||||
|             }) | ||||
|         video_id = video_data.get('id') or video_id | ||||
|         language = video_data.get('language') | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 sepro
					sepro