1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[mixcloud] improved extraction of user description

This commit is contained in:
Philip Huppert 2016-04-10 15:53:17 +02:00
parent dcaf00fb3e
commit 6d67169509

View file

@ -195,12 +195,10 @@ class MixcloudUserIE(InfoExtractor):
def _get_user_description(self, page_content):
return self._html_search_regex(
r'<div class="description-text">.*?<p>(?P<description>.*?)</p></div></div></div>',
r'<div class="description-text">.*?<p>(.*?)</p></div></div></div>',
page_content,
"user description",
group="description",
fatal=False,
default="")
fatal=False)
def _get_username(self, page_content):
return self._og_search_title(page_content)