From 991bc36ea0c49b5b730b4c7e25e9c196971a8693 Mon Sep 17 00:00:00 2001 From: "Hendrik v. Raven" Date: Sat, 6 Jan 2018 15:09:53 +0100 Subject: [PATCH] extractor/gamestar: force view_count int conversion --- youtube_dl/extractor/gamestar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/gamestar.py b/youtube_dl/extractor/gamestar.py index e607d6ab8..f330e7cca 100644 --- a/youtube_dl/extractor/gamestar.py +++ b/youtube_dl/extractor/gamestar.py @@ -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', webpage, 'comment_count', fatal=False))