projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63f3cab
)
[arte:future] Switch to `search_regex` for now (Closes #5801)
author
Sergey M․
<dstftw@gmail.com>
Sun, 24 May 2015 15:25:00 +0000
(21:25 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 24 May 2015 15:25:00 +0000
(21:25 +0600)
youtube_dl/extractor/arte.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/arte.py
b/youtube_dl/extractor/arte.py
index 8273bd6c9ae3cdff82052c8f63efc68be97561b3..fce38248d1eaf7410d828a9821d4123332d94983 100644
(file)
--- a/
youtube_dl/extractor/arte.py
+++ b/
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)