From 3b053a1fe1377d2d9c780720f82b3ffd22a3f35e Mon Sep 17 00:00:00 2001 From: Tai Chatha Date: Sun, 4 Oct 2015 15:27:15 -0400 Subject: [PATCH] Qianmo Add New Extractor --- youtube_dl/extractor/qianmo.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/youtube_dl/extractor/qianmo.py b/youtube_dl/extractor/qianmo.py index 762e58c51..bad5a89ea 100644 --- a/youtube_dl/extractor/qianmo.py +++ b/youtube_dl/extractor/qianmo.py @@ -29,15 +29,10 @@ class QianmoIE(InfoExtractor): video_id = self._match_id(url) webpage = self._download_webpage(url, video_id) - print type(webpage) - # TODO more code goes here, for example ... title = self._html_search_regex(r'(.*?)', webpage, 'title') - print title - # postInfo = self._html_search_regex(r'postInfo =(.*?);', webpage, u'postInfo') - # regex = + video_url = self._html_search_regex(r'"urls":\["(.*?)"\],', webpage, 'url') - print video_url - print "Hanh" + return { 'id': video_id,