From 66c31c84860c513d4bffb516e48a1f8085428f92 Mon Sep 17 00:00:00 2001 From: aeph6Ee0 Date: Tue, 11 Apr 2017 00:15:58 +0200 Subject: [PATCH] [GameStar] make comment_count regular expression flexible --- youtube_dl/extractor/gamestar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/gamestar.py b/youtube_dl/extractor/gamestar.py index 1c729850d..bf0c28a9f 100644 --- a/youtube_dl/extractor/gamestar.py +++ b/youtube_dl/extractor/gamestar.py @@ -55,8 +55,8 @@ class GameStarIE(InfoExtractor): view_count = json_ld.get('interactionCount') comment_count = int_or_none(self._html_search_regex( - r'([0-9]+)', - webpage, 'comment_count', fatal=False)) + r']+class=(["\'])[a-zA-Z0-9_\- ]*comment-text[a-zA-Z0-9_\- ]*\1[^>]*>]*>(?P[0-9]+)', + webpage, 'comment_count', group='comment_count', fatal=False)) info_dict.update({ 'id': video_id,