mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-10 07:42:53 +08:00
Use variable
This commit is contained in:
parent
cdde4e4764
commit
3431b53c4c
@ -97,7 +97,7 @@ class IwaraIE(InfoExtractor):
|
|||||||
comments_header = get_element_by_class('title', comments_id)
|
comments_header = get_element_by_class('title', comments_id)
|
||||||
if comments_header is not None:
|
if comments_header is not None:
|
||||||
comment_count = int_or_none(self._html_search_regex(
|
comment_count = int_or_none(self._html_search_regex(
|
||||||
r'([\d,]+)', get_element_by_class('title', comments_id), 'comment_count', fatal=False))
|
r'([\d,]+)', comments_header, 'comment_count', fatal=False))
|
||||||
|
|
||||||
node_views_class = get_element_by_class('node-views', webpage)
|
node_views_class = get_element_by_class('node-views', webpage)
|
||||||
if node_views_class is not None:
|
if node_views_class is not None:
|
||||||
|
Loading…
Reference in New Issue
Block a user