mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 02:25:11 +00:00
[generic] Allow soundcloud embeds with additional attributes
This commit is contained in:
parent
7d11297f3f
commit
ac645ac7d0
1 changed files with 13 additions and 1 deletions
|
@ -405,6 +405,18 @@ class GenericIE(InfoExtractor):
|
||||||
'expected_warnings': [
|
'expected_warnings': [
|
||||||
r'501.*Not Implemented'
|
r'501.*Not Implemented'
|
||||||
],
|
],
|
||||||
|
},
|
||||||
|
# Soundcloud embed
|
||||||
|
{
|
||||||
|
'url': 'http://nakedsecurity.sophos.com/2014/10/29/sscc-171-are-you-sure-that-1234-is-a-bad-password-podcast/',
|
||||||
|
'info_dict': {
|
||||||
|
'id': '174391317',
|
||||||
|
'ext': 'mp3',
|
||||||
|
'description': 'md5:ff867d6b555488ad3c52572bb33d432c',
|
||||||
|
'uploader': 'Sophos Security',
|
||||||
|
'title': 'Chet Chat 171 - Oct 29, 2014',
|
||||||
|
'upload_date': '20141029',
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -838,7 +850,7 @@ def _playlist_from_matches(matches, getter, ie=None):
|
||||||
|
|
||||||
# Look for embeded soundcloud player
|
# Look for embeded soundcloud player
|
||||||
mobj = re.search(
|
mobj = re.search(
|
||||||
r'<iframe src="(?P<url>https?://(?:w\.)?soundcloud\.com/player[^"]+)"',
|
r'<iframe\s+(?:[a-zA-Z0-9_-]+="[^"]+"\s+)*src="(?P<url>https?://(?:w\.)?soundcloud\.com/player[^"]+)"',
|
||||||
webpage)
|
webpage)
|
||||||
if mobj is not None:
|
if mobj is not None:
|
||||||
url = unescapeHTML(mobj.group('url'))
|
url = unescapeHTML(mobj.group('url'))
|
||||||
|
|
Loading…
Reference in a new issue