Sfoglia il codice sorgente

[nporadio] Edit to confirm to flake8 standards

robin 10 anni fa
parent
commit
c3d64fc1b3
1 ha cambiato i file con 5 aggiunte e 6 eliminazioni
  1. 5 6
      youtube_dl/extractor/nporadio.py

+ 5 - 6
youtube_dl/extractor/nporadio.py

@@ -22,12 +22,12 @@ class NPORadioIE(InfoExtractor):
         webpage = self._download_webpage(url, video_id)
         webpage = self._download_webpage(url, video_id)
 
 
         title = self._html_search_regex(
         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(
         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 {
         return {
             'id': video_id,
             'id': video_id,
             'title': title,
             'title': title,
@@ -37,4 +37,3 @@ class NPORadioIE(InfoExtractor):
 
 
     def _html_get_attribute_regex(self, attribute):
     def _html_get_attribute_regex(self, attribute):
         return r'{0}\s*=\s*\'([^\']+)\''.format(attribute)
         return r'{0}\s*=\s*\'([^\']+)\''.format(attribute)
-