aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/generic.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-01-07 08:07:46 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-01-07 08:07:46 +0100
commitc93c2ab1c3bc84f5525e2771c48bcd6d384d9dae (patch)
tree7bb30f77994873c30da3923db847074f251babef /youtube_dl/extractor/generic.py
parent7b09a4d847fae87b1b70cd44f2d1cbe7ada35db8 (diff)
[mpora] Add support (Fixes #2096)
Diffstat (limited to 'youtube_dl/extractor/generic.py')
-rw-r--r--youtube_dl/extractor/generic.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py
index 7d0e117de..c1f393e39 100644
--- a/youtube_dl/extractor/generic.py
+++ b/youtube_dl/extractor/generic.py
@@ -307,6 +307,11 @@ class GenericIE(InfoExtractor):
if mobj is not None:
return self.url_result(mobj.group(1), 'Aparat')
+ # Look for MPORA videos
+ mobj = re.search(r'<iframe .*?src="(http://mpora.com/videos/[^"]+)"', webpage)
+ if mobj is not None:
+ return self.url_result(mobj.group(1), 'Mpora')
+
# Start with something easy: JW Player in SWFObject
mobj = re.search(r'flashvars: [\'"](?:.*&)?file=(http[^\'"&]*)', webpage)
if mobj is None: