mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-10 00:58:17 +02:00
[mixcloud] improved extraction of user description
This commit is contained in:
parent
dcaf00fb3e
commit
6d67169509
@ -195,12 +195,10 @@ def _handle_track_urls(self, urls):
|
|||||||
|
|
||||||
def _get_user_description(self, page_content):
|
def _get_user_description(self, page_content):
|
||||||
return self._html_search_regex(
|
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,
|
page_content,
|
||||||
"user description",
|
"user description",
|
||||||
group="description",
|
fatal=False)
|
||||||
fatal=False,
|
|
||||||
default="")
|
|
||||||
|
|
||||||
def _get_username(self, page_content):
|
def _get_username(self, page_content):
|
||||||
return self._og_search_title(page_content)
|
return self._og_search_title(page_content)
|
||||||
|
Loading…
Reference in New Issue
Block a user