aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/elpais.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2015-01-09 22:43:49 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2015-01-09 22:43:49 +0100
commitb8da6b9fc6b05dff5dfbe98e20546b7e5e0ab170 (patch)
tree98ca3bbbf90c186ad656e3b7ed065a1bf9fa4140 /youtube_dl/extractor/elpais.py
parent4baea47c42c291564dcbbbfc93955afbd4a80460 (diff)
[elpais] Modernize
Diffstat (limited to 'youtube_dl/extractor/elpais.py')
-rw-r--r--youtube_dl/extractor/elpais.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/youtube_dl/extractor/elpais.py b/youtube_dl/extractor/elpais.py
index 4277202a2..00a69e631 100644
--- a/youtube_dl/extractor/elpais.py
+++ b/youtube_dl/extractor/elpais.py
@@ -1,8 +1,6 @@
# coding: utf-8
from __future__ import unicode_literals
-import re
-
from .common import InfoExtractor
from ..utils import unified_strdate
@@ -24,9 +22,7 @@ class ElPaisIE(InfoExtractor):
}
def _real_extract(self, url):
- mobj = re.match(self._VALID_URL, url)
- video_id = mobj.group('id')
-
+ video_id = self._match_id(url)
webpage = self._download_webpage(url, video_id)
prefix = self._html_search_regex(