format change according by flake8
This commit is contained in:
parent
a30b01348f
commit
513ec05236
@ -11,9 +11,11 @@ from ..compat import (
|
||||
|
||||
from .common import InfoExtractor
|
||||
|
||||
|
||||
class XimalayaBaseIE(InfoExtractor):
|
||||
_GEO_COUNTRIES = ['CN']
|
||||
|
||||
|
||||
class XimalayaIE(XimalayaBaseIE):
|
||||
IE_NAME = 'ximalaya'
|
||||
IE_DESC = 'ximalaya.com'
|
||||
@ -76,11 +78,9 @@ class XimalayaIE(XimalayaBaseIE):
|
||||
audio_uploader_id = audio_info.get('uid')
|
||||
|
||||
if is_m:
|
||||
intro = re.search(r'(?s)<section class=["\']content[^>]+>(.+)</section>'
|
||||
, webpage)
|
||||
intro = re.search(r'(?s)<section class=["\']content[^>]+>(.+)</section>', webpage)
|
||||
else:
|
||||
intro = re.search(r'(?s)<div class="rich_intro"[^>]*>(.+?</article>)',
|
||||
webpage)
|
||||
intro = re.search(r'(?s)<div class="rich_intro"[^>]*>(.+?</article>)', webpage)
|
||||
|
||||
if intro:
|
||||
audio_description = intro.group(1).strip()
|
||||
@ -155,8 +155,8 @@ class XimalayaAlbumIE(XimalayaBaseIE):
|
||||
if not mobj:
|
||||
break
|
||||
|
||||
next_url = self._BASE_URL_TEMPL % mobj['more']
|
||||
self.report_download_webpage(next_url)
|
||||
next_url = self._BASE_URL_TEMPL % mobj.group('more')
|
||||
self.report_download_webpage('%d %s' % (page_num, next_url))
|
||||
html = self._download_webpage(next_url, playlist_id)
|
||||
if not html.strip():
|
||||
# Some webpages show a "Load more" button but they don't
|
||||
|
Loading…
x
Reference in New Issue
Block a user