From 0f8a01d4f35d73fe90f9838e11e854e27595f9da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Thu, 22 May 2014 19:35:46 +0700 Subject: [PATCH] [swrmediathek] Simplify --- youtube_dl/extractor/swrmediathek.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/swrmediathek.py b/youtube_dl/extractor/swrmediathek.py index 5ba3f3504..457c50411 100644 --- a/youtube_dl/extractor/swrmediathek.py +++ b/youtube_dl/extractor/swrmediathek.py @@ -43,7 +43,7 @@ def _real_extract(self, url): webpage = self._download_webpage(url, video_id) smilurl = 'http://swrmediathek.de/rtmpQuals/%s/clips.smil' - smildoc = self._download_xml(smilurl % video_id, video_id, note='Downloading SMIL page') + smildoc = self._download_xml(smilurl % video_id, video_id, 'Downloading SMIL page') baseurl = smildoc.find('.//meta').attrib['base'] @@ -67,8 +67,8 @@ def _real_extract(self, url): return { 'id': video_id, - 'title': self._html_search_regex(r'', webpage, 'title'), + 'title': self._html_search_meta('title', webpage, 'title', fatal=True), 'thumbnail': self._search_regex(r'', webpage, 'thumbnail'), 'formats': formats, - 'description': self._html_search_regex(r'', webpage, 'description'), + 'description': self._html_search_meta('description', webpage, 'description'), }