code formatting

This commit is contained in:
grqx_wsl 2024-11-05 00:18:14 +13:00
parent d69a1be537
commit eacad11a5a

View file

@ -123,7 +123,7 @@ def _extract_page_metadata(cls, webpage, item_id):
'id': item_id,
'title': cls._html_search_regex(r'(?i)<h1[^>]*>([^<]+)</h1>', webpage, 'title', default=None),
'thumbnail': cls._html_search_meta(['og:image', 'twitter:image'],
webpage, 'thumbnail', default=''),
webpage, 'thumbnail', default=''),
'like_count': parse_count(cls._get_element_by_class_and_tag('btn_favorite', 'button', metadata_div)),
'repost_count': parse_count(cls._get_element_by_class_and_tag('btn_share', 'button', metadata_div)),
'comment_count': parse_count(cls._get_element_by_class_and_tag('btn_comment', 'button', metadata_div)),