X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Fmorningstar.py;h=0093bcd6ca521ec558b1c6787c12cd1f80f156a0;hb=HEAD;hp=3d3225699b63d956b6b20fe91930a5d167d9c72a;hpb=2ad4d1ba077893e4020532f748547296801704e3;p=youtube-dl diff --git a/youtube_dl/extractor/morningstar.py b/youtube_dl/extractor/morningstar.py index 3d3225699..0093bcd6c 100644 --- a/youtube_dl/extractor/morningstar.py +++ b/youtube_dl/extractor/morningstar.py @@ -1,23 +1,15 @@ # coding: utf-8 from __future__ import unicode_literals -import hashlib -import json import re -import time from .common import InfoExtractor -from ..utils import ( - compat_parse_qs, - compat_str, - int_or_none, -) class MorningstarIE(InfoExtractor): IE_DESC = 'morningstar.com' - _VALID_URL = r'https?://(?:www\.)?morningstar\.com/cover/videocenter\.aspx\?id=(?P[0-9]+)' - _TEST = { + _VALID_URL = r'https?://(?:(?:www|news)\.)morningstar\.com/[cC]over/video[cC]enter\.aspx\?id=(?P[0-9]+)' + _TESTS = [{ 'url': 'http://www.morningstar.com/cover/videocenter.aspx?id=615869', 'md5': '6c0acface7a787aadc8391e4bbf7b0f5', 'info_dict': { @@ -27,7 +19,10 @@ class MorningstarIE(InfoExtractor): 'description': "Vanguard's Joel Dickson on managing higher tax rates for high-income earners and fund capital-gain distributions in 2013.", 'thumbnail': r're:^https?://.*m(?:orning)?star\.com/.+thumb\.jpg$' } - } + }, { + 'url': 'http://news.morningstar.com/cover/videocenter.aspx?id=825556', + 'only_matching': True, + }] def _real_extract(self, url): mobj = re.match(self._VALID_URL, url)