aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-12-12 17:24:05 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-12-12 17:24:05 +0100
commit57e086dcea6a9981c4943b6a281c0c7f806efaf8 (patch)
treea9db61bcc267ae31d8b89fbc15fac2ea0964cef0 /youtube_dl/extractor
parent2101f5d4ccd5e568a2b860596e67d01364b9078b (diff)
[ebaumsworld] Modernize
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/ebaumsworld.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/youtube_dl/extractor/ebaumsworld.py b/youtube_dl/extractor/ebaumsworld.py
index 63c2549d3..b6bfd2b2d 100644
--- a/youtube_dl/extractor/ebaumsworld.py
+++ b/youtube_dl/extractor/ebaumsworld.py
@@ -1,7 +1,5 @@
from __future__ import unicode_literals
-import re
-
from .common import InfoExtractor
@@ -20,8 +18,7 @@ class EbaumsWorldIE(InfoExtractor):
}
def _real_extract(self, url):
- mobj = re.match(self._VALID_URL, url)
- video_id = mobj.group('id')
+ video_id = self._match_id(url)
config = self._download_xml(
'http://www.ebaumsworld.com/video/player/%s' % video_id, video_id)
video_url = config.find('file').text