aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/kankan.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2015-02-01 15:03:55 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2015-02-01 15:03:55 +0100
commit9a3e5e69554c06fbf8bb7fd248c2e921593f8046 (patch)
treed73b0682ed828e8d82ac31032618bc60f63d9a51 /youtube_dl/extractor/kankan.py
parent228d30ed0616f6c1b5cff335b8b56f4fde48b76d (diff)
[kankan] Modernize
Diffstat (limited to 'youtube_dl/extractor/kankan.py')
-rw-r--r--youtube_dl/extractor/kankan.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube_dl/extractor/kankan.py b/youtube_dl/extractor/kankan.py
index dbfe4cc03..364dc878e 100644
--- a/youtube_dl/extractor/kankan.py
+++ b/youtube_dl/extractor/kankan.py
@@ -13,17 +13,17 @@ class KankanIE(InfoExtractor):
_TEST = {
'url': 'http://yinyue.kankan.com/vod/48/48863.shtml',
- 'file': '48863.flv',
'md5': '29aca1e47ae68fc28804aca89f29507e',
'info_dict': {
+ 'id': '48863',
+ 'ext': 'flv',
'title': 'Ready To Go',
},
'skip': 'Only available from China',
}
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)
title = self._search_regex(r'(?:G_TITLE=|G_MOVIE_TITLE = )[\'"](.+?)[\'"]', webpage, 'video title')