diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-12-16 08:16:11 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-12-16 08:16:11 +0100 |
commit | 8c5f0c9fbc09b361517cd5045d856fec96381696 (patch) | |
tree | 73230843a082d46907ac9be970736aa07572db32 /youtube_dl/extractor/mdr.py | |
parent | 6888a874a1dcdc916bafa5aa55864b60514f5fa4 (diff) |
[mdr] Clean up
Diffstat (limited to 'youtube_dl/extractor/mdr.py')
-rw-r--r-- | youtube_dl/extractor/mdr.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/youtube_dl/extractor/mdr.py b/youtube_dl/extractor/mdr.py index 366352dbe..d29cf2c07 100644 --- a/youtube_dl/extractor/mdr.py +++ b/youtube_dl/extractor/mdr.py @@ -30,7 +30,6 @@ class MDRIE(InfoExtractor): m = re.match(self._VALID_URL, url) video_id = m.group('video_id') domain = m.group('domain') - mediatype = m.group('type') # determine title and media streams from webpage html = self._download_webpage(url, video_id) @@ -70,7 +69,7 @@ class MDRIE(InfoExtractor): formats.append(format) formats.sort(key=lambda f: (f.get('vbr'), f['abr'])) if not formats: - raise ValueError('Could not find any valid formats') + raise ExtractorError(u'Could not find any valid formats') return { 'id': video_id, |