Explorar o código

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

Sergey M․ %!s(int64=10) %!d(string=hai) anos
pai
achega
2ad5708c43
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      youtube_dl/extractor/arte.py

+ 3 - 1
youtube_dl/extractor/arte.py

@@ -195,7 +195,9 @@ class ArteTVFutureIE(ArteTVPlus7IE):
     def _real_extract(self, url):
         anchor_id, lang = self._extract_url_info(url)
         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)