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:
		| @@ -1,7 +1,6 @@ | ||||
| import re | ||||
| 
 | ||||
| from .common import InfoExtractor | ||||
| from ..compat import compat_str | ||||
| from ..utils import int_or_none | ||||
| 
 | ||||
| 
 | ||||
| @@ -32,8 +31,8 @@ class PyvideoIE(InfoExtractor): | ||||
|         entries = [] | ||||
| 
 | ||||
|         data = self._download_json( | ||||
|             'https://raw.githubusercontent.com/pyvideo/data/master/%s/videos/%s.json' | ||||
|             % (category, video_id), video_id, fatal=False) | ||||
|             f'https://raw.githubusercontent.com/pyvideo/data/master/{category}/videos/{video_id}.json', | ||||
|             video_id, fatal=False) | ||||
| 
 | ||||
|         if data: | ||||
|             for video in data['videos']: | ||||
| @@ -43,7 +42,7 @@ class PyvideoIE(InfoExtractor): | ||||
|                         entries.append(self.url_result(video_url, 'Youtube')) | ||||
|                     else: | ||||
|                         entries.append({ | ||||
|                             'id': compat_str(data.get('id') or video_id), | ||||
|                             'id': str(data.get('id') or video_id), | ||||
|                             'url': video_url, | ||||
|                             'title': data['title'], | ||||
|                             'description': data.get('description') or data.get('summary'), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 sepro
					sepro