aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVenkata Krishna S <100816677+venkata-krishnas@users.noreply.github.com>2023-03-04 01:57:30 -0500
committerGitHub <noreply@github.com>2023-03-04 12:27:30 +0530
commit640c934823fc2d1ec77ec932566078014058635f (patch)
tree3d88dae78b456614b9fb0dd37dead01c9617508b
parent55676fe498345a389a2539d8baaba958d6d61c3e (diff)
[extractor/ESPNcricinfo] Handle new URL pattern (#6321)
Authored by: venkata-krishnas Closes #6164
-rw-r--r--yt_dlp/extractor/espn.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/yt_dlp/extractor/espn.py b/yt_dlp/extractor/espn.py
index f4b0134ab..7ed824ca8 100644
--- a/yt_dlp/extractor/espn.py
+++ b/yt_dlp/extractor/espn.py
@@ -240,7 +240,7 @@ class FiveThirtyEightIE(InfoExtractor):
class ESPNCricInfoIE(InfoExtractor):
- _VALID_URL = r'https?://(?:www\.)?espncricinfo\.com/video/[^#$&?/]+-(?P<id>\d+)'
+ _VALID_URL = r'https?://(?:www\.)?espncricinfo\.com/(?:cricket-)?videos?/[^#$&?/]+-(?P<id>\d+)'
_TESTS = [{
'url': 'https://www.espncricinfo.com/video/finch-chasing-comes-with-risks-despite-world-cup-trend-1289135',
'info_dict': {
@@ -252,6 +252,17 @@ class ESPNCricInfoIE(InfoExtractor):
'duration': 96,
},
'params': {'skip_download': True}
+ }, {
+ 'url': 'https://www.espncricinfo.com/cricket-videos/daryl-mitchell-mitchell-santner-is-one-of-the-best-white-ball-spinners-india-vs-new-zealand-1356225',
+ 'info_dict': {
+ 'id': '1356225',
+ 'ext': 'mp4',
+ 'description': '"Santner has done it for a long time for New Zealand - we\'re lucky to have him"',
+ 'upload_date': '20230128',
+ 'title': 'Mitchell: \'Santner is one of the best white-ball spinners at the moment\'',
+ 'duration': 87,
+ },
+ 'params': {'skip_download': 'm3u8'},
}]
def _real_extract(self, url):