aboutsummaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/extractor/spiegel.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <[email protected]>2013-11-26 18:48:52 +0100
committerJaime Marquínez Ferrándiz <[email protected]>2013-11-26 19:17:25 +0100
commite26f8712289c727a43d74a4669aee4924b9f75f2 (patch)
treece2e34f10baacc0eb24d0527154e5374560901cd /youtube_dl/extractor/spiegel.py
parent6e47b51eef26dbaa3634b73914e4ee7213ad38f7 (diff)
downloadyoutube-dl-e26f8712289c727a43d74a4669aee4924b9f75f2.tar.gz
youtube-dl-e26f8712289c727a43d74a4669aee4924b9f75f2.zip
Use the new '_download_xml' helper in more extractors
Diffstat (limited to 'youtube_dl/extractor/spiegel.py')
-rw-r--r--youtube_dl/extractor/spiegel.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/youtube_dl/extractor/spiegel.py b/youtube_dl/extractor/spiegel.py
index 19ce585cf..695520524 100644
--- a/youtube_dl/extractor/spiegel.py
+++ b/youtube_dl/extractor/spiegel.py
@@ -1,5 +1,4 @@
import re
-import xml.etree.ElementTree
from .common import InfoExtractor
@@ -33,12 +32,10 @@ class SpiegelIE(InfoExtractor):
r'<div class="module-title">(.*?)</div>', webpage, u'title')
xml_url = u'http://video2.spiegel.de/flash/' + video_id + u'.xml'
- xml_code = self._download_webpage(
+ idoc = self._download_xml(
xml_url, video_id,
note=u'Downloading XML', errnote=u'Failed to download XML')
- idoc = xml.etree.ElementTree.fromstring(xml_code)
-
formats = [
{
'format_id': n.tag.rpartition('type')[2],