projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23d9ded
)
[aftonbladet] Modernize
author
Philipp Hagemeister
<phihag@phihag.de>
Tue, 3 Feb 2015 09:18:32 +0000
(10:18 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Tue, 3 Feb 2015 09:18:32 +0000
(10:18 +0100)
youtube_dl/extractor/aftonbladet.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/aftonbladet.py
b/youtube_dl/extractor/aftonbladet.py
index cfc7370ae43da592eaca49245200bd922d75a019..8442019eac3eaa0a373140d494ffa2ca420f4606 100644
(file)
--- 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