From db6f1fd92eb2a4dfb0a32e6e9921e3fda23c7490 Mon Sep 17 00:00:00 2001 From: CommanderRoot Date: Wed, 26 Jul 2017 23:05:49 +0200 Subject: [PATCH] Add Youtube game extraction --- youtube_dl/extractor/youtube.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 2e71795e7..d792a4948 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1567,6 +1567,15 @@ class YoutubeIE(YoutubeBaseInfoExtractor): else: video_description = '' + # game + video_game = self._html_search_regex( + r']+class="title"[^>]*>\s*Game\s*\s*(]*>.*\s*.*\s*.*\s.*\s*\s*)?]*>\s*
  • ]*>(?P.+?)]+class="title"[^>]*>\s*Game\s*\s*(]*>.*\s*.*\s*.*\s.*\s*\s*)?]*>\s*
  • (?P.+?)( \(.*\))?