diff --git a/youtube_dl/extractor/nporadio.py b/youtube_dl/extractor/nporadio.py index dd8d97cb75..d1c4ec167a 100644 --- a/youtube_dl/extractor/nporadio.py +++ b/youtube_dl/extractor/nporadio.py @@ -22,12 +22,12 @@ def _real_extract(self, url): 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 @@ def _real_extract(self, url): def _html_get_attribute_regex(self, attribute): return r'{0}\s*=\s*\'([^\']+)\''.format(attribute) -