mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-08-24 00:01:04 +02:00
[nporadio] Edit to confirm to flake8 standards
This commit is contained in:
parent
7c24ce225d
commit
c3d64fc1b3
@ -22,11 +22,11 @@ def _real_extract(self, url):
|
|||||||
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_search_regex(
|
||||||
self._html_get_attribute_regex('data-streams'), webpage, 'data-streams'))
|
self._html_get_attribute_regex('data-streams'), webpage, 'data-streams'))
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
@ -37,4 +37,3 @@ def _real_extract(self, url):
|
|||||||
|
|
||||||
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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user