[x-news] search for x-link in divs

This commit is contained in:
Laura Liberda 2021-02-24 14:48:54 +01:00
parent 8d30f19740
commit f91cd92ea0

View file

@ -28,7 +28,7 @@ class XLinkIE(InfoExtractor):
@staticmethod
def _extract_urls(webpage, url=None):
return [smuggle_url(mobj.group('url'), {'referer': url}) for mobj
in re.finditer(r'<(?:script\b[^>]+\bdata-url|iframe\b[^>]*\ssrc)=(["\']?)(?P<url>https?://get\.x-link\.pl/(?:[a-f\d]{8}-(?:[a-f\d]{4}-){3}[a-f\d]{12},){2}embed\.html)[^"\' ]*?\1', webpage)]
in re.finditer(r'<(?:(?:script|div)\b[^>]+\bdata-url|iframe\b[^>]*\ssrc)=(["\']?)(?P<url>https?://get\.x-link\.pl/(?:[a-f\d]{8}-(?:[a-f\d]{4}-){3}[a-f\d]{12},){2}embed\.html)[^"\' ]*?\1', webpage)]
def _real_extract(self, url):
video_id = self._match_id(url)