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:
		| @@ -42,7 +42,7 @@ class R7IE(InfoExtractor): | ||||
|         video_id = self._match_id(url) | ||||
| 
 | ||||
|         video = self._download_json( | ||||
|             'http://player-api.r7.com/video/i/%s' % video_id, video_id) | ||||
|             f'http://player-api.r7.com/video/i/{video_id}', video_id) | ||||
| 
 | ||||
|         title = video['title'] | ||||
| 
 | ||||
| @@ -98,7 +98,7 @@ class R7ArticleIE(InfoExtractor): | ||||
| 
 | ||||
|     @classmethod | ||||
|     def suitable(cls, url): | ||||
|         return False if R7IE.suitable(url) else super(R7ArticleIE, cls).suitable(url) | ||||
|         return False if R7IE.suitable(url) else super().suitable(url) | ||||
| 
 | ||||
|     def _real_extract(self, url): | ||||
|         display_id = self._match_id(url) | ||||
| @@ -109,4 +109,4 @@ class R7ArticleIE(InfoExtractor): | ||||
|             r'<div[^>]+(?:id=["\']player-|class=["\']embed["\'][^>]+id=["\'])([\da-f]{24})', | ||||
|             webpage, 'video id') | ||||
| 
 | ||||
|         return self.url_result('http://player.r7.com/video/i/%s' % video_id, R7IE.ie_key()) | ||||
|         return self.url_result(f'http://player.r7.com/video/i/{video_id}', R7IE.ie_key()) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 sepro
					sepro