diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-01-07 11:04:27 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-01-07 11:04:27 +0100 |
commit | 42e4fcf23aace61ec6bf486d79ed0b263f40b73b (patch) | |
tree | f879843d580a5b549bdf4fbea805532ab76c9032 | |
parent | 9c63128668858c354994d90cba812ffa4c30bdf8 (diff) |
[generic] Fix regexes
-rw-r--r-- | youtube_dl/extractor/generic.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index c1f393e39..70001f87d 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -303,12 +303,12 @@ class GenericIE(InfoExtractor): return OoyalaIE._build_url_result(mobj.group(1)) # Look for Aparat videos - mobj = re.search(r'<iframe src="(http://www.aparat.com/video/[^"]+)"', webpage) + mobj = re.search(r'<iframe src="(http://www\.aparat\.com/video/[^"]+)"', webpage) 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) + mobj = re.search(r'<iframe .*?src="(http://mpora\.com/videos/[^"]+)"', webpage) if mobj is not None: return self.url_result(mobj.group(1), 'Mpora') |