aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_dl/extractor/metacafe.py
diff options
context:
space:
mode:
Diffstat (limited to 'hypervideo_dl/extractor/metacafe.py')
-rw-r--r--hypervideo_dl/extractor/metacafe.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/hypervideo_dl/extractor/metacafe.py b/hypervideo_dl/extractor/metacafe.py
index 9e92416..7b2d4a0 100644
--- a/hypervideo_dl/extractor/metacafe.py
+++ b/hypervideo_dl/extractor/metacafe.py
@@ -19,7 +19,7 @@ from ..utils import (
class MetacafeIE(InfoExtractor):
- _VALID_URL = r'https?://(?:www\.)?metacafe\.com/watch/(?P<video_id>[^/]+)/(?P<display_id>[^/?#]+)'
+ _VALID_URL = r'https?://(?:www\.)?metacafe\.com/watch/(?P<id>[^/]+)/(?P<display_id>[^/?#]+)'
_DISCLAIMER = 'http://www.metacafe.com/family_filter/'
_FILTER_POST = 'http://www.metacafe.com/f/index.php?inputType=filter&controllerGroup=user'
IE_NAME = 'metacafe'
@@ -130,7 +130,7 @@ class MetacafeIE(InfoExtractor):
def _real_extract(self, url):
# Extract id and simplified title from URL
- video_id, display_id = re.match(self._VALID_URL, url).groups()
+ video_id, display_id = self._match_valid_url(url).groups()
# the video may come from an external site
m_external = re.match(r'^(\w{2})-(.*)$', video_id)