projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4baea47
)
[elpais] Modernize
author
Philipp Hagemeister
<phihag@phihag.de>
Fri, 9 Jan 2015 21:43:49 +0000
(22:43 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Fri, 9 Jan 2015 21:43:49 +0000
(22:43 +0100)
youtube_dl/extractor/elpais.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/elpais.py
b/youtube_dl/extractor/elpais.py
index 4277202a2eea45afdcd750e3e22e651d5ac9342c..00a69e6312aede6069e062c6abff29137939daa9 100644
(file)
--- 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(