[nporadio] Edit to confirm to flake8 standards
authorrobin <rderooij685@gmail.com>
Thu, 12 Feb 2015 18:27:59 +0000 (19:27 +0100)
committerrobin <rderooij685@gmail.com>
Thu, 12 Feb 2015 18:28:58 +0000 (19:28 +0100)
youtube_dl/extractor/nporadio.py

index dd8d97cb75c8f40ecea60c1f6b399f9617422d34..d1c4ec167aac1a60403da1334d723872ce444fdc 100644 (file)
@@ -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)
-