mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-22 18:22:21 +00:00
lxml is not part of the standard library.
This commit is contained in:
parent
cd0abcc0bb
commit
ff2424595a
1 changed files with 3 additions and 5 deletions
|
@ -1,7 +1,6 @@
|
||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
"""Extractor for canalc2.tv"""
|
"""Extractor for canalc2.tv"""
|
||||||
import re
|
import re
|
||||||
import lxml.html
|
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
|
|
||||||
|
@ -25,10 +24,9 @@ class Canalc2IE(InfoExtractor):
|
||||||
webpage).group(1)
|
webpage).group(1)
|
||||||
|
|
||||||
video_url = 'http://vod-flash.u-strasbg.fr:8080/' + file_name
|
video_url = 'http://vod-flash.u-strasbg.fr:8080/' + file_name
|
||||||
|
|
||||||
html = lxml.html.fromstring(webpage)
|
title = self._html_search_regex(r'class="evenement8">(.*?)</a>',
|
||||||
|
webpage, u'title')
|
||||||
title = html.cssselect('.evenement8')[0].text_content()
|
|
||||||
|
|
||||||
return {'id': video_id,
|
return {'id': video_id,
|
||||||
'ext' : 'mp4',
|
'ext' : 'mp4',
|
||||||
|
|
Loading…
Reference in a new issue