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:
		| @@ -55,7 +55,7 @@ class AfreecaTVBaseIE(InfoExtractor): | ||||
|         if result != 1: | ||||
|             error = _ERRORS.get(result, 'You have failed to log in.') | ||||
|             raise ExtractorError( | ||||
|                 'Unable to login: %s said: %s' % (self.IE_NAME, error), | ||||
|                 f'Unable to login: {self.IE_NAME} said: {error}', | ||||
|                 expected=True) | ||||
| 
 | ||||
| 
 | ||||
| @@ -227,7 +227,7 @@ class AfreecaTVIE(AfreecaTVBaseIE): | ||||
|                 **traverse_obj(file_element, { | ||||
|                     'duration': ('duration', {functools.partial(int_or_none, scale=1000)}), | ||||
|                     'timestamp': ('file_start', {unified_timestamp}), | ||||
|                 }) | ||||
|                 }), | ||||
|             }) | ||||
| 
 | ||||
|         if traverse_obj(data, ('adult_status', {str})) == 'notLogin': | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 sepro
					sepro