1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-01-24 05:02:50 +08:00

extractor/gamestar: force view_count int conversion

This commit is contained in:
Hendrik v. Raven 2018-01-06 15:09:53 +01:00
parent 0b0870f9d0
commit 991bc36ea0

View File

@ -39,7 +39,7 @@ class GameStarIE(InfoExtractor):
info_dict = self._json_ld(json_ld, video_id)
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(
r'([0-9]+) Kommentare</span>', webpage, 'comment_count',
fatal=False))