mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +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:
		| @@ -34,7 +34,7 @@ class APAIE(InfoExtractor): | ||||
|         video_id, base_url = mobj.group('id', 'base_url') | ||||
| 
 | ||||
|         webpage = self._download_webpage( | ||||
|             '%s/player/%s' % (base_url, video_id), video_id) | ||||
|             f'{base_url}/player/{video_id}', video_id) | ||||
| 
 | ||||
|         jwplatform_id = self._search_regex( | ||||
|             r'media[iI]d\s*:\s*["\'](?P<id>[a-zA-Z0-9]{8})', webpage, | ||||
| @@ -47,7 +47,7 @@ class APAIE(InfoExtractor): | ||||
| 
 | ||||
|         def extract(field, name=None): | ||||
|             return self._search_regex( | ||||
|                 r'\b%s["\']\s*:\s*(["\'])(?P<value>(?:(?!\1).)+)\1' % field, | ||||
|                 rf'\b{field}["\']\s*:\s*(["\'])(?P<value>(?:(?!\1).)+)\1', | ||||
|                 webpage, name or field, default=None, group='value') | ||||
| 
 | ||||
|         title = extract('title') or video_id | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 sepro
					sepro