aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_dl/extractor/savefrom.py
diff options
context:
space:
mode:
Diffstat (limited to 'hypervideo_dl/extractor/savefrom.py')
-rw-r--r--hypervideo_dl/extractor/savefrom.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/hypervideo_dl/extractor/savefrom.py b/hypervideo_dl/extractor/savefrom.py
index 21e44b6..98efdc2 100644
--- a/hypervideo_dl/extractor/savefrom.py
+++ b/hypervideo_dl/extractor/savefrom.py
@@ -2,7 +2,6 @@
from __future__ import unicode_literals
import os.path
-import re
from .common import InfoExtractor
@@ -28,7 +27,7 @@ class SaveFromIE(InfoExtractor):
}
def _real_extract(self, url):
- mobj = re.match(self._VALID_URL, url)
+ mobj = self._match_valid_url(url)
video_id = os.path.splitext(url.split('/')[-1])[0]
return self.url_result(mobj.group('url'), video_id=video_id)