projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd0abcc
)
lxml is not part of the standard library.
author
Pierre Rudloff
<contact@rudloff.pro>
Thu, 22 Aug 2013 12:47:51 +0000
(14:47 +0200)
committer
Pierre Rudloff
<contact@rudloff.pro>
Thu, 22 Aug 2013 12:47:51 +0000
(14:47 +0200)
youtube_dl/extractor/canalc2.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/canalc2.py
b/youtube_dl/extractor/canalc2.py
index d0e2ed536c3551f5bdb7f1bd82b2ee956a554f21..215abf5378fcff960798be10b14c23c593c6073f 100644
(file)
--- a/
youtube_dl/extractor/canalc2.py
+++ b/
youtube_dl/extractor/canalc2.py
@@
-1,7
+1,6
@@
# coding: utf-8
"""Extractor for canalc2.tv"""
import re
-import lxml.html
from .common import InfoExtractor
@@
-25,10
+24,9
@@
class Canalc2IE(InfoExtractor):
webpage).group(1)
video_url = 'http://vod-flash.u-strasbg.fr:8080/' + file_name
-
- html = lxml.html.fromstring(webpage)
-
- title = html.cssselect('.evenement8')[0].text_content()
+
+ title = self._html_search_regex(r'class="evenement8">(.*?)</a>',
+ webpage, u'title')
return {'id': video_id,
'ext' : 'mp4',