mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[extractor/embedly] Embedded links may be for other extractors
Bug in bfd973ece3
Closes #5987
This commit is contained in:
parent
355d781bed
commit
87ebab0615
1 changed files with 4 additions and 4 deletions
|
@ -62,13 +62,13 @@ class EmbedlyIE(InfoExtractor):
|
||||||
}]
|
}]
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _extract_embed_urls(cls, url, webpage):
|
def _extract_from_webpage(cls, url, webpage):
|
||||||
# Bypass suitable check
|
# Bypass "ie=cls" and suitable check
|
||||||
for mobj in re.finditer(r'class=["\']embedly-card["\'][^>]href=["\'](?P<url>[^"\']+)', webpage):
|
for mobj in re.finditer(r'class=["\']embedly-card["\'][^>]href=["\'](?P<url>[^"\']+)', webpage):
|
||||||
yield mobj.group('url')
|
yield cls.url_result(mobj.group('url'))
|
||||||
|
|
||||||
for mobj in re.finditer(r'class=["\']embedly-embed["\'][^>]src=["\'][^"\']*url=(?P<url>[^&]+)', webpage):
|
for mobj in re.finditer(r'class=["\']embedly-embed["\'][^>]src=["\'][^"\']*url=(?P<url>[^&]+)', webpage):
|
||||||
yield urllib.parse.unquote(mobj.group('url'))
|
yield cls.url_result(urllib.parse.unquote(mobj.group('url')))
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
qs = parse_qs(url)
|
qs = parse_qs(url)
|
||||||
|
|
Loading…
Reference in a new issue