From 31c3d1ed378151a8585f992defecd403e5094185 Mon Sep 17 00:00:00 2001 From: carsten demming Date: Thu, 22 Feb 2018 20:47:08 +0100 Subject: [PATCH] - flake8 --- youtube_dl/extractor/youtube.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 4491d35bd..790f133a2 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -2628,13 +2628,11 @@ class YoutubeSearchIE(SearchInfoExtractor, YoutubePlaylistIE): regex_pre = '(?s)class\s*=\s*"\s*yt-lockup-title\s*"[^<].+?(?=a\s*href="/watch\?v=' regex_post = ').+?(?=title)title\s*=\s*"([^"]+)"[^>]+' for curr_id in video_ids: - regex_combined = r''+regex_pre+curr_id+regex_post - extracted_title = self._html_search_regex( - regex_combined, - html_content,'title') + regex_combined = r'' + regex_pre + curr_id + regex_post + extracted_title = self._html_search_regex(regex_combined, html_content, 'title') video_id_objects.append({ - 'vid_id': curr_id, - 'title': extracted_title.encode('utf-8') + 'vid_id': curr_id, + 'title': extracted_title.encode('utf-8') }) new_videos = self._ids_to_results_with_title(video_id_objects)