diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2015-02-03 10:18:32 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2015-02-03 10:18:32 +0100 |
commit | d86204230157fc7a8a6800b7b814e8e3bbfbdf20 (patch) | |
tree | 15761aeb2406adc0d3dd158ad1d341b6a523fc13 /youtube_dl | |
parent | 23d9ded655f45c5a21c8d93ad167a072322ae88f (diff) |
[aftonbladet] Modernize
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/aftonbladet.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/youtube_dl/extractor/aftonbladet.py b/youtube_dl/extractor/aftonbladet.py index cfc7370ae..8442019ea 100644 --- a/youtube_dl/extractor/aftonbladet.py +++ b/youtube_dl/extractor/aftonbladet.py @@ -1,8 +1,6 @@ # encoding: utf-8 from __future__ import unicode_literals -import re - from .common import InfoExtractor @@ -21,9 +19,7 @@ class AftonbladetIE(InfoExtractor): } def _real_extract(self, url): - mobj = re.search(self._VALID_URL, url) - - video_id = mobj.group('video_id') + video_id = self._match_id(url) webpage = self._download_webpage(url, video_id) # find internal video meta data |