mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-03 20:07:08 -05:00 
			
		
		
		
	lxml is not part of the standard library.
This commit is contained in:
		@@ -1,7 +1,6 @@
 | 
			
		||||
# coding: utf-8
 | 
			
		||||
"""Extractor for canalc2.tv"""
 | 
			
		||||
import re
 | 
			
		||||
import lxml.html
 | 
			
		||||
 | 
			
		||||
from .common import InfoExtractor
 | 
			
		||||
 | 
			
		||||
@@ -26,9 +25,8 @@ class Canalc2IE(InfoExtractor):
 | 
			
		||||
        
 | 
			
		||||
        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',
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user