aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrobin <rderooij685@gmail.com>2015-02-12 19:27:59 +0100
committerrobin <rderooij685@gmail.com>2015-02-12 19:28:58 +0100
commitc3d64fc1b30b46cc4f58aaa55c02918248bb1bee (patch)
tree9722a2eccc03f83df80d933b8fb96b8e90bc7c2b
parent7c24ce225d1ddb350f91b0fd78fefa40f6aa4481 (diff)
[nporadio] Edit to confirm to flake8 standards
-rw-r--r--youtube_dl/extractor/nporadio.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/youtube_dl/extractor/nporadio.py b/youtube_dl/extractor/nporadio.py
index dd8d97cb7..d1c4ec167 100644
--- a/youtube_dl/extractor/nporadio.py
+++ b/youtube_dl/extractor/nporadio.py
@@ -22,12 +22,12 @@ class NPORadioIE(InfoExtractor):
webpage = self._download_webpage(url, video_id)
title = self._html_search_regex(
- self._html_get_attribute_regex('data-channel'), webpage, 'title')
-
+ self._html_get_attribute_regex('data-channel'), webpage, 'title')
+
json_data = json.loads(
- self._html_search_regex(
- self._html_get_attribute_regex('data-streams'), webpage, 'data-streams'))
-
+ self._html_search_regex(
+ self._html_get_attribute_regex('data-streams'), webpage, 'data-streams'))
+
return {
'id': video_id,
'title': title,
@@ -37,4 +37,3 @@ class NPORadioIE(InfoExtractor):
def _html_get_attribute_regex(self, attribute):
return r'{0}\s*=\s*\'([^\']+)\''.format(attribute)
-