1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-03 11:02:52 +08:00

[GameStar] make comment_count regular expression flexible

This commit is contained in:
aeph6Ee0 2017-04-11 00:15:58 +02:00
parent 7bff1e6584
commit 66c31c8486

View File

@ -55,8 +55,8 @@ class GameStarIE(InfoExtractor):
view_count = json_ld.get('interactionCount')
comment_count = int_or_none(self._html_search_regex(
r'<i class="zmdi zmdi-comment-text seperate"></i><span class="btn-text">([0-9]+)</span>',
webpage, 'comment_count', fatal=False))
r'<i[^>]+class=(["\'])[a-zA-Z0-9_\- ]*comment-text[a-zA-Z0-9_\- ]*\1[^>]*></i><span[^>]*>(?P<comment_count>[0-9]+)</span>',
webpage, 'comment_count', group='comment_count', fatal=False))
info_dict.update({
'id': video_id,