aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/generic.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-01-08 01:27:11 -0800
committerPhilipp Hagemeister <phihag@phihag.de>2014-01-08 01:27:11 -0800
commitbb3c20965e8e816b8918ca085e0b7dae2b52a322 (patch)
treef6af6e1496fcb255ca56d7557ef937620f64bd27 /youtube_dl/extractor/generic.py
parent10bff13a6687527c2290c9345c50a337771a0bb1 (diff)
parent5f59ee794252f0a5a33c770cf8c0039486184d78 (diff)
Merge pull request #2116 from dstftw/novamov
[novamov] Add embedded player support
Diffstat (limited to 'youtube_dl/extractor/generic.py')
-rw-r--r--youtube_dl/extractor/generic.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py
index 70001f87d..ff23161d7 100644
--- a/youtube_dl/extractor/generic.py
+++ b/youtube_dl/extractor/generic.py
@@ -312,6 +312,12 @@ class GenericIE(InfoExtractor):
if mobj is not None:
return self.url_result(mobj.group(1), 'Mpora')
+ # Look for embedded Novamov player
+ mobj = re.search(
+ r'<iframe[^>]+?src=(["\'])(?P<url>http://(?:(?:embed|www)\.)?novamov\.com/embed\.php.+?)\1', webpage)
+ if mobj is not None:
+ return self.url_result(mobj.group('url'), 'Novamov')
+
# Start with something easy: JW Player in SWFObject
mobj = re.search(r'flashvars: [\'"](?:.*&)?file=(http[^\'"&]*)', webpage)
if mobj is None: