mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[cleanup] Misc (#11347)
Closes #11361 Authored by: avagordon01, bashonly, grqz, Grub4K, seproDev Co-authored-by: Ava Gordon <avagordon01@gmail.com> Co-authored-by: bashonly <bashonly@protonmail.com> Co-authored-by: N/Ame <173015200+grqz@users.noreply.github.com> Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
This commit is contained in:
		| @@ -67,7 +67,7 @@ class WeiboBaseIE(InfoExtractor): | ||||
|                 'format': ('quality_desc', {str}), | ||||
|                 'format_id': ('label', {str}), | ||||
|                 'ext': ('mime', {mimetype2ext}), | ||||
|                 'tbr': ('bitrate', {int_or_none}, {lambda x: x or None}), | ||||
|                 'tbr': ('bitrate', {int_or_none}, filter), | ||||
|                 'vcodec': ('video_codecs', {str}), | ||||
|                 'fps': ('fps', {int_or_none}), | ||||
|                 'width': ('width', {int_or_none}), | ||||
| @@ -107,14 +107,14 @@ class WeiboBaseIE(InfoExtractor): | ||||
|             **traverse_obj(video_info, { | ||||
|                 'id': (('id', 'id_str', 'mid'), {str_or_none}), | ||||
|                 'display_id': ('mblogid', {str_or_none}), | ||||
|                 'title': ('page_info', 'media_info', ('video_title', 'kol_title', 'name'), {str}, {lambda x: x or None}), | ||||
|                 'title': ('page_info', 'media_info', ('video_title', 'kol_title', 'name'), {str}, filter), | ||||
|                 'description': ('text_raw', {str}), | ||||
|                 'duration': ('page_info', 'media_info', 'duration', {int_or_none}), | ||||
|                 'timestamp': ('page_info', 'media_info', 'video_publish_time', {int_or_none}), | ||||
|                 'thumbnail': ('page_info', 'page_pic', {url_or_none}), | ||||
|                 'uploader': ('user', 'screen_name', {str}), | ||||
|                 'uploader_id': ('user', ('id', 'id_str'), {str_or_none}), | ||||
|                 'uploader_url': ('user', 'profile_url', {lambda x: urljoin('https://weibo.com/', x)}), | ||||
|                 'uploader_url': ('user', 'profile_url', {urljoin('https://weibo.com/')}), | ||||
|                 'view_count': ('page_info', 'media_info', 'online_users_number', {int_or_none}), | ||||
|                 'like_count': ('attitudes_count', {int_or_none}), | ||||
|                 'repost_count': ('reposts_count', {int_or_none}), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 sepro
					sepro