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:
		| @@ -53,7 +53,7 @@ class CanalplusIE(InfoExtractor): | ||||
|         video_data = self._download_json(info_url, video_id, 'Downloading video JSON') | ||||
| 
 | ||||
|         if isinstance(video_data, list): | ||||
|             video_data = [video for video in video_data if video.get('ID') == video_id][0] | ||||
|             video_data = next(video for video in video_data if video.get('ID') == video_id) | ||||
|         media = video_data['MEDIA'] | ||||
|         infos = video_data['INFOS'] | ||||
| 
 | ||||
| @@ -97,8 +97,7 @@ class CanalplusIE(InfoExtractor): | ||||
|         return { | ||||
|             'id': video_id, | ||||
|             'display_id': display_id, | ||||
|             'title': '%s - %s' % (titrage['TITRE'], | ||||
|                                   titrage['SOUS_TITRE']), | ||||
|             'title': '{} - {}'.format(titrage['TITRE'], titrage['SOUS_TITRE']), | ||||
|             'upload_date': unified_strdate(infos.get('PUBLICATION', {}).get('DATE')), | ||||
|             'thumbnails': thumbnails, | ||||
|             'description': infos.get('DESCRIPTION'), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 sepro
					sepro