mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +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:
		| @@ -58,13 +58,13 @@ class ClypIE(InfoExtractor): | ||||
|             query['token'] = token | ||||
| 
 | ||||
|         metadata = self._download_json( | ||||
|             'https://api.clyp.it/%s' % audio_id, audio_id, query=query) | ||||
|             f'https://api.clyp.it/{audio_id}', audio_id, query=query) | ||||
| 
 | ||||
|         formats = [] | ||||
|         for secure in ('', 'Secure'): | ||||
|             for ext in ('Ogg', 'Mp3'): | ||||
|                 format_id = '%s%s' % (secure, ext) | ||||
|                 format_url = metadata.get('%sUrl' % format_id) | ||||
|                 format_id = f'{secure}{ext}' | ||||
|                 format_url = metadata.get(f'{format_id}Url') | ||||
|                 if format_url: | ||||
|                     formats.append({ | ||||
|                         'url': format_url, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 sepro
					sepro