projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6888a87
)
[mdr] Clean up
author
Philipp Hagemeister
<phihag@phihag.de>
Mon, 16 Dec 2013 07:16:11 +0000
(08:16 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Mon, 16 Dec 2013 07:16:11 +0000
(08:16 +0100)
youtube_dl/extractor/mdr.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/mdr.py
b/youtube_dl/extractor/mdr.py
index 366352dbe7033bb0827f098e837e81ea1e934c14..d29cf2c07f205c6a79b9de0a981400b83d4cdcaa 100644
(file)
--- 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,