0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-19 01:45:13 +00:00

[arte:future] Switch to search_regex for now (Closes #5801)

This commit is contained in:
Sergey M․ 2015-05-24 21:25:00 +06:00
parent 63f3cab4ae
commit 2ad5708c43

View file

@ -195,7 +195,9 @@ class ArteTVFutureIE(ArteTVPlus7IE):
def _real_extract(self, url): def _real_extract(self, url):
anchor_id, lang = self._extract_url_info(url) anchor_id, lang = self._extract_url_info(url)
webpage = self._download_webpage(url, anchor_id) webpage = self._download_webpage(url, anchor_id)
row = get_element_by_id(anchor_id, webpage) row = self._search_regex(
r'(?s)id="%s"[^>]*>.+?(<div[^>]*arte_vp_url[^>]*>)' % anchor_id,
webpage, 'row')
return self._extract_from_webpage(row, anchor_id, lang) return self._extract_from_webpage(row, anchor_id, lang)