[spankwire] Add support for generic embeds (refs #24633)

This commit is contained in:
Sergey M․ 2020-04-05 20:42:10 +07:00
parent d44a707fdd
commit 8fae1a04eb
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D
2 changed files with 12 additions and 0 deletions

View file

@ -67,6 +67,12 @@ class SpankwireIE(InfoExtractor):
'only_matching': True,
}]
@staticmethod
def _extract_urls(webpage):
return re.findall(
r'<iframe[^>]+\bsrc=["\']((?:https?:)?//(?:www\.)?spankwire\.com/EmbedPlayer\.aspx/?\?.*?\bArticleId=\d+)',
webpage)
def _real_extract(self, url):
video_id = self._match_id(url)