aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcoletdjnz <colethedj@protonmail.com>2021-10-05 08:30:57 +1300
committerGitHub <noreply@github.com>2021-10-05 01:00:57 +0530
commit762e509d91be50546f62fc5c717280839b83c1e2 (patch)
tree63c3442f65d658d71ef55496375e43eef4bd0ee9
parentd92125aeba4eefe8ef2c4f9ead8af99dd33ff0d4 (diff)
downloadhypervideo-pre-762e509d91be50546f62fc5c717280839b83c1e2.tar.lz
hypervideo-pre-762e509d91be50546f62fc5c717280839b83c1e2.tar.xz
hypervideo-pre-762e509d91be50546f62fc5c717280839b83c1e2.zip
[Mediaite] Relax valid url (#1158)
Closes #1131 Authored by: coletdjnz
-rw-r--r--yt_dlp/extractor/mediaite.py15
1 files changed, 14 insertions, 1 deletions
diff --git a/yt_dlp/extractor/mediaite.py b/yt_dlp/extractor/mediaite.py
index 646c92223..b670f0d61 100644
--- a/yt_dlp/extractor/mediaite.py
+++ b/yt_dlp/extractor/mediaite.py
@@ -5,7 +5,7 @@ from .common import InfoExtractor
class MediaiteIE(InfoExtractor):
- _VALID_URL = r'https?://(?:www\.)?mediaite.com/(?:tv|sports|politics|podcasts|opinion)/[\w-]+/'
+ _VALID_URL = r'https?://(?:www\.)?mediaite.com(?!/category)(?:/[\w-]+){2}'
_TESTS = [{
'url': 'https://www.mediaite.com/sports/bill-burr-roasts-nfl-for-promoting-black-lives-matter-while-scheduling-more-games-after-all-the-sht-they-know-about-cte/',
'info_dict': {
@@ -71,6 +71,19 @@ class MediaiteIE(InfoExtractor):
'upload_date': '20210913',
},
'params': {'skip_download': True}
+ }, {
+ 'url': 'https://www.mediaite.com/news/watch-cnbcs-jim-cramer-says-nobody-wants-to-die-getting-infected-by-unvaccinated-coworker-even-for-22-an-hour/',
+ 'info_dict': {
+ 'id': 'nwpt1elX',
+ 'ext': 'mp4',
+ 'title': "CNBC's Jim Cramer Says Nobody Wants to Die Getting Infected by Unvaccinated Coworker 'Even for $22 an Hour'.mp4",
+ 'description': 'md5:d41d8cd98f00b204e9800998ecf8427e',
+ 'thumbnail': 'https://cdn.jwplayer.com/v2/media/nwpt1elX/poster.jpg?width=720',
+ 'duration': 60,
+ 'timestamp': 1633014214,
+ 'upload_date': '20210930',
+ },
+ 'params': {'skip_download': True}
}]
def _real_extract(self, url):