From fed1f5ee0f9dccc2bc71a251f0c5e7cd33c80c92 Mon Sep 17 00:00:00 2001 From: ealgase Date: Tue, 20 Nov 2018 18:38:08 -0500 Subject: [PATCH] [narando] fix flake8 issues --- youtube_dl/extractor/narando.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/youtube_dl/extractor/narando.py b/youtube_dl/extractor/narando.py index 66a733597..bdb36f3e9 100644 --- a/youtube_dl/extractor/narando.py +++ b/youtube_dl/extractor/narando.py @@ -3,13 +3,13 @@ from __future__ import unicode_literals from .common import InfoExtractor + class NarandoIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?narando\.com/articles/(?P([a-zA-Z]|-)+)' _TEST = { 'url': 'https://narando.com/articles/an-ihrem-selbstlob-erkennt-man-sie', 'md5': 'd20f671f0395bab8f8285d1f6e8f965e', 'info_dict': { -# 'id': 'b2t4t789kxgy9g7ms4rwjvvw', was being used as id previously, is internal video id 'id': 'an-ihrem-selbstlob-erkennt-man-sie', 'ext': 'mp3', 'title': 'An ihrem Selbstlob erkennt man sie', @@ -28,14 +28,14 @@ class NarandoIE(InfoExtractor): # webpage = self._download_webpage(url,"?") # print(url) # print('https://narando.com/articles/'+video_id) - webpage = self._download_webpage('https://narando.com/articles/'+video_id, video_id) + webpage = self._download_webpage('https://narando.com/articles/' + video_id, video_id) # TODO more code goes here, for example ... title = self._html_search_regex(r'

(.+?)

', webpage, 'title') # print(title) player_id = self._html_search_regex(" ".join(r'[\n\r].*https:\/\/narando.com\/r\/\s*([^"]*)'.split()), webpage, 'player_id') - player_page = self._download_webpage('https://narando.com/widget?r='+player_id, player_id) + player_page = self._download_webpage('https://narando.com/widget?r=' + player_id, player_id) download_url = self._html_search_regex(r'.
\s*([^?]*)', player_page, 'download_url') - description = self._html_search_regex(ur'', webpage, 'description') + description = self._html_search_regex(r'', webpage, 'description') return { 'id': video_id, 'title': title,