From 3431b53c4c8930d19d26e9ca6f97d5b5724426e2 Mon Sep 17 00:00:00 2001 From: AlexAplin Date: Sun, 17 Jun 2018 00:53:49 -0400 Subject: [PATCH] Use variable --- youtube_dl/extractor/iwara.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/iwara.py b/youtube_dl/extractor/iwara.py index 38a0727f5..4038de15a 100644 --- a/youtube_dl/extractor/iwara.py +++ b/youtube_dl/extractor/iwara.py @@ -97,7 +97,7 @@ class IwaraIE(InfoExtractor): comments_header = get_element_by_class('title', comments_id) if comments_header is not None: 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) if node_views_class is not None: