Browse Source

[mdr] Clean up

master
Philipp Hagemeister 11 years ago
parent
commit
8c5f0c9fbc
1 changed files with 1 additions and 2 deletions
  1. 3
      youtube_dl/extractor/mdr.py

3
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,

Loading…
Cancel
Save