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:
		| @@ -34,7 +34,7 @@ class WeiboBaseIE(InfoExtractor): | ||||
|                     'browser': f'Chrome{chrome_ver},0,0,0', | ||||
|                     'fonts': 'undefined', | ||||
|                     'screenInfo': '1920*1080*24', | ||||
|                     'plugins': '' | ||||
|                     'plugins': '', | ||||
|                 }, separators=(',', ':'))}))['data'] | ||||
| 
 | ||||
|         self._download_webpage( | ||||
| @@ -90,7 +90,7 @@ class WeiboBaseIE(InfoExtractor): | ||||
|                             'video_details', lambda _, v: v['label'].startswith(format_id), { | ||||
|                                 'size': ('size', {int_or_none}), | ||||
|                                 'tbr': ('bitrate', {int_or_none}), | ||||
|                             } | ||||
|                             }, | ||||
|                         ), get_all=False), | ||||
|                     }) | ||||
|         return formats | ||||
| @@ -162,7 +162,7 @@ class WeiboIE(WeiboBaseIE): | ||||
|             'view_count': int, | ||||
|             'like_count': int, | ||||
|             'repost_count': int, | ||||
|         } | ||||
|         }, | ||||
|     }, { | ||||
|         'url': 'https://weibo.com/0/4224132150961381', | ||||
|         'note': 'no playback_list example', | ||||
| @@ -185,7 +185,7 @@ class WeiboVideoIE(WeiboBaseIE): | ||||
|             'ext': 'mp4', | ||||
|             'display_id': 'LEZDodaiW', | ||||
|             'title': '呃,稍微了解了一下靡烟miya,感觉这东西也太二了', | ||||
|             'description': '呃,稍微了解了一下靡烟miya,感觉这东西也太二了 http://t.cn/A6aerGsM ', | ||||
|             'description': '呃,稍微了解了一下靡烟miya,感觉这东西也太二了 http://t.cn/A6aerGsM \u200b\u200b\u200b', | ||||
|             'duration': 76, | ||||
|             'timestamp': 1659344278, | ||||
|             'upload_date': '20220801', | ||||
| @@ -196,7 +196,7 @@ class WeiboVideoIE(WeiboBaseIE): | ||||
|             'view_count': int, | ||||
|             'like_count': int, | ||||
|             'repost_count': int, | ||||
|         } | ||||
|         }, | ||||
|     }] | ||||
| 
 | ||||
|     def _real_extract(self, url): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 sepro
					sepro