projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3869028
)
[morningstar] Relax _VALID_URL
author
Windom
<windom@users.noreply.github.com>
Sat, 16 Sep 2017 15:39:46 +0000
(18:39 +0300)
committer
Sergey M
<dstftw@gmail.com>
Sat, 16 Sep 2017 15:39:46 +0000
(22:39 +0700)
youtube_dl/extractor/morningstar.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/morningstar.py
b/youtube_dl/extractor/morningstar.py
index 320d27bdd42460f288283749739fc344e30ea65b..0093bcd6ca521ec558b1c6787c12cd1f80f156a0 100644
(file)
--- a/
youtube_dl/extractor/morningstar.py
+++ b/
youtube_dl/extractor/morningstar.py
@@
-8,8
+8,8
@@
from .common import InfoExtractor
class MorningstarIE(InfoExtractor):
IE_DESC = 'morningstar.com'
class MorningstarIE(InfoExtractor):
IE_DESC = 'morningstar.com'
- _VALID_URL = r'https?://(?:
www\.)?
morningstar\.com/[cC]over/video[cC]enter\.aspx\?id=(?P<id>[0-9]+)'
- _TEST
=
{
+ _VALID_URL = r'https?://(?:
(?:www|news)\.)
morningstar\.com/[cC]over/video[cC]enter\.aspx\?id=(?P<id>[0-9]+)'
+ _TEST
S = [
{
'url': 'http://www.morningstar.com/cover/videocenter.aspx?id=615869',
'md5': '6c0acface7a787aadc8391e4bbf7b0f5',
'info_dict': {
'url': 'http://www.morningstar.com/cover/videocenter.aspx?id=615869',
'md5': '6c0acface7a787aadc8391e4bbf7b0f5',
'info_dict': {
@@
-19,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$'
}
'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)
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)