mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +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:
		| @@ -1,5 +1,4 @@ | ||||
| from .common import InfoExtractor | ||||
| from ..compat import compat_str | ||||
| from ..utils import ( | ||||
|     int_or_none, | ||||
|     parse_duration, | ||||
| @@ -75,7 +74,7 @@ class MySpassIE(InfoExtractor): | ||||
|         for group in self._search_regex(r'/myspass2009/\d+/(\d+)/(\d+)/(\d+)/', video_url, 'myspass', group=(1, 2, 3), default=[]): | ||||
|             group_int = int(group) | ||||
|             if group_int > video_id_int: | ||||
|                 video_url = video_url.replace(group, compat_str(group_int // video_id_int)) | ||||
|                 video_url = video_url.replace(group, str(group_int // video_id_int)) | ||||
| 
 | ||||
|         return { | ||||
|             'id': video_id, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 sepro
					sepro