From c42551d3db974bcf4288ba1366e6561644e650b2 Mon Sep 17 00:00:00 2001 From: Joshua Lochner Date: Fri, 13 Dec 2019 04:04:15 +0200 Subject: [PATCH] Conforming to PEP8 (Flake8) --- youtube_dl/extractor/gamerdvr.py | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/youtube_dl/extractor/gamerdvr.py b/youtube_dl/extractor/gamerdvr.py index 52f463d7b..a37006866 100644 --- a/youtube_dl/extractor/gamerdvr.py +++ b/youtube_dl/extractor/gamerdvr.py @@ -3,16 +3,22 @@ from __future__ import unicode_literals from .common import InfoExtractor + class GamerDVRIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?gamerdvr\.com/gamer/\S+/video/(?P\d+)' + _VALID_URL = r'https?://(?:www\.)?gamerdvr\.com' + + '/gamer/\S+/video/(?P\d+)' _TEST = { 'url': 'https://gamerdvr.com/gamer/videogamer3/video/83193307', 'md5': 'f747c74fbc7617a70d8c071927623cde', 'info_dict': { 'id': '83193307', 'ext': 'mp4', - 'title': "videogamer3's Xbox Call of Duty®: Modern Warfare® clip 83193307. Find your Xbox clips on GamerDVR.com", - 'description': "videogamer3's Xbox Call of Duty®: Modern Warfare® clips and gameplay playing Call of Duty®: Modern Warfare®. All your Xbox clips and screenshots on GamerDVR.com. View, manage, and share easily!", + 'title': "videogamer3's Xbox Call of Duty®: Modern Warfare® " + + "clip 83193307. Find your Xbox clips on GamerDVR.com", + 'description': "videogamer3's Xbox Call of Duty®: Modern " + + "Warfare® clips and gameplay playing Call of Duty®: Modern " + + "Warfare®. All your Xbox clips and screenshots on GamerDVR.com. " + + "View, manage, and share easily!", 'uploader': 'videogamer3' } } @@ -20,14 +26,19 @@ class GamerDVRIE(InfoExtractor): def _real_extract(self, url): video_id = self._match_id(url) webpage = self._download_webpage(url, video_id) - video_url = self._html_search_regex(r"(.+?)', webpage, 'title') - description = self._html_search_regex(r"(.+?)', webpage, 'title') + description = self._html_search_regex( + r"