mirror of
https://github.com/l1ving/youtube-dl
synced 2025-01-24 11:32:51 +08:00
extractor/gamestar: force view_count int conversion
This commit is contained in:
parent
0b0870f9d0
commit
991bc36ea0
@ -39,7 +39,7 @@ class GameStarIE(InfoExtractor):
|
|||||||
info_dict = self._json_ld(json_ld, video_id)
|
info_dict = self._json_ld(json_ld, video_id)
|
||||||
info_dict['title'] = remove_end(info_dict['title'], ' - GameStar')
|
info_dict['title'] = remove_end(info_dict['title'], ' - GameStar')
|
||||||
|
|
||||||
view_count = json_ld.get('interactionCount')
|
view_count = int_or_none(json_ld.get('interactionCount'))
|
||||||
comment_count = int_or_none(self._html_search_regex(
|
comment_count = int_or_none(self._html_search_regex(
|
||||||
r'([0-9]+) Kommentare</span>', webpage, 'comment_count',
|
r'([0-9]+) Kommentare</span>', webpage, 'comment_count',
|
||||||
fatal=False))
|
fatal=False))
|
||||||
|
Loading…
Reference in New Issue
Block a user