1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-20 09:52:50 +01:00

apply formatting

This commit is contained in:
sebastian.kondraciuk 2024-05-27 13:43:44 +02:00
parent 6d20f7dc69
commit 25f44777c0

View File

@ -488,7 +488,7 @@ def extract_follower_count(webpage):
..., 'require', ..., ..., ..., '__bbox', 'require', ..., ..., ..., '__bbox', 'result', 'data'), expected_type=dict) or []
followers = get_first(post, ('user', 'profile_header_renderer', 'user', 'profile_social_context', 'content', ..., 'text',
lambda k, v: k == 'text' and isinstance(v, str) and v.endswith('followers'))) or None
lambda k, v: k == 'text' and isinstance(v, str) and v.endswith('followers'))) or None
if not isinstance(followers, str):
return None