]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[brightcove] Encode object_str with utf-8
authorSergey M․ <dstftw@gmail.com>
Tue, 1 Apr 2014 13:17:35 +0000 (20:17 +0700)
committerSergey M․ <dstftw@gmail.com>
Tue, 1 Apr 2014 13:17:35 +0000 (20:17 +0700)
youtube_dl/extractor/brightcove.py
youtube_dl/extractor/generic.py

index 83eec84d3cd446b75854accd8dd8c2c754ba4349..339d60ff0f52ed31edcb77aa1b2e1d4994266a91 100644 (file)
@@ -87,7 +87,7 @@ class BrightcoveIE(InfoExtractor):
         object_str = object_str.replace('<--', '<!--')
         object_str = fix_xml_ampersands(object_str)
 
-        object_doc = xml.etree.ElementTree.fromstring(object_str)
+        object_doc = xml.etree.ElementTree.fromstring(object_str.encode('utf-8'))
 
         fv_el = find_xpath_attr(object_doc, './param', 'name', 'flashVars')
         if fv_el is not None:
index 9f698323c29b848f29f69d05b59727e4987b1d6b..3ad0e13f944f12b22aaba19d5f7159c629317a6c 100644 (file)
@@ -82,6 +82,17 @@ class GenericIE(InfoExtractor):
             },
             'add_ie': ['Brightcove'],
         },
+        {
+            'url': 'http://www.championat.com/video/football/v/87/87499.html',
+            'md5': 'fb973ecf6e4a78a67453647444222983',
+            'info_dict': {
+                'id': '3414141473001',
+                'ext': 'mp4',
+                'title': 'Видео. Удаление Дзагоева (ЦСКА)',
+                'description': 'Онлайн-трансляция матча ЦСКА - "Волга"',
+                'uploader': 'Championat',
+            },
+        },
         # Direct link to a video
         {
             'url': 'http://media.w3.org/2010/05/sintel/trailer.mp4',