From c93c2ab1c3bc84f5525e2771c48bcd6d384d9dae Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Tue, 7 Jan 2014 08:07:46 +0100 Subject: [PATCH] [mpora] Add support (Fixes #2096) --- youtube_dl/extractor/__init__.py | 1 + youtube_dl/extractor/generic.py | 5 +++ youtube_dl/extractor/mpora.py | 66 ++++++++++++++++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 youtube_dl/extractor/mpora.py diff --git a/youtube_dl/extractor/__init__.py b/youtube_dl/extractor/__init__.py index f1167989e..009d3b60f 100644 --- a/youtube_dl/extractor/__init__.py +++ b/youtube_dl/extractor/__init__.py @@ -112,6 +112,7 @@ from .metacafe import MetacafeIE from .metacritic import MetacriticIE from .mit import TechTVMITIE, MITIE from .mixcloud import MixcloudIE +from .mpora import MporaIE from .mofosex import MofosexIE from .mtv import MTVIE from .muzu import MuzuTVIE 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'