style(extractor/applepodcasts): linter

pull/13864/head
Florent Delahaye 3 weeks ago
parent c0c57653a0
commit 3809f672fa

@ -16,6 +16,7 @@ class ApplePodcastsBaseIE(InfoExtractor):
_BASE_HTML_JSON_LOCATION = r'<script [^>]*\bid=["\']serialized-server-data["\'][^>]*>' _BASE_HTML_JSON_LOCATION = r'<script [^>]*\bid=["\']serialized-server-data["\'][^>]*>'
_BASE_HTML_JSON_PATTERN = r'\[{(?s:.+)}\]' _BASE_HTML_JSON_PATTERN = r'\[{(?s:.+)}\]'
class ApplePodcastsIE(ApplePodcastsBaseIE): class ApplePodcastsIE(ApplePodcastsBaseIE):
_VALID_URL = ApplePodcastsBaseIE._BASE_URL_REGEX + r'.*?\bi=(?P<id>\d+)' _VALID_URL = ApplePodcastsBaseIE._BASE_URL_REGEX + r'.*?\bi=(?P<id>\d+)'
_TESTS = [{ _TESTS = [{
@ -85,6 +86,7 @@ class ApplePodcastsIE(ApplePodcastsBaseIE):
'vcodec': 'none', 'vcodec': 'none',
} }
class ApplePodcastsPlaylistIE(ApplePodcastsBaseIE): class ApplePodcastsPlaylistIE(ApplePodcastsBaseIE):
# Apple podcast items are partially described in the embedded json from main page (last episodes only) therefore API calls are mandatory to get a full list # Apple podcast items are partially described in the embedded json from main page (last episodes only) therefore API calls are mandatory to get a full list
@ -162,7 +164,6 @@ class ApplePodcastsPlaylistIE(ApplePodcastsBaseIE):
return all_episodes return all_episodes
def _real_extract(self, url): def _real_extract(self, url):
playlist_id = self._match_id(url) playlist_id = self._match_id(url)
webpage = self._download_webpage(url, playlist_id) webpage = self._download_webpage(url, playlist_id)

Loading…
Cancel
Save