diff options
author | Amirreza Aflakparast <84932095+AmirAflak@users.noreply.github.com> | 2023-07-28 22:21:16 +0330 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-28 18:51:16 +0000 |
commit | c03a58ec9933e4a42c2d8fa80b8a0ddb2cde64e6 (patch) | |
tree | 019c8d1669752024ca6a81e10f085b18efb787a8 | |
parent | bbeacff7fcaa3b521066088a5ccbf34ef5070d1d (diff) | |
download | hypervideo-pre-c03a58ec9933e4a42c2d8fa80b8a0ddb2cde64e6.tar.lz hypervideo-pre-c03a58ec9933e4a42c2d8fa80b8a0ddb2cde64e6.tar.xz hypervideo-pre-c03a58ec9933e4a42c2d8fa80b8a0ddb2cde64e6.zip |
[ie/MotorTrendOnDemand] Update `_VALID_URL` (#7683)
Closes #7680
Authored by: AmirAflak
-rw-r--r-- | yt_dlp/extractor/dplay.py | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/yt_dlp/extractor/dplay.py b/yt_dlp/extractor/dplay.py index 6404752f7..363b4bec9 100644 --- a/yt_dlp/extractor/dplay.py +++ b/yt_dlp/extractor/dplay.py @@ -746,7 +746,7 @@ class MotorTrendIE(DiscoveryPlusBaseIE): class MotorTrendOnDemandIE(DiscoveryPlusBaseIE): - _VALID_URL = r'https?://(?:www\.)?motortrendondemand\.com/detail' + DPlayBaseIE._PATH_REGEX + _VALID_URL = r'https?://(?:www\.)?motortrend(?:ondemand\.com|\.com/plus)/detail' + DPlayBaseIE._PATH_REGEX _TESTS = [{ 'url': 'https://www.motortrendondemand.com/detail/wheelstanding-dump-truck-stubby-bobs-comeback/37699/784', 'info_dict': { @@ -767,6 +767,25 @@ class MotorTrendOnDemandIE(DiscoveryPlusBaseIE): 'upload_date': '20140101', 'tags': [], }, + }, { + 'url': 'https://www.motortrend.com/plus/detail/roadworthy-rescues-teaser-trailer/4922860/', + 'info_dict': { + 'id': '4922860', + 'ext': 'mp4', + 'title': 'Roadworthy Rescues | Teaser Trailer', + 'description': 'Derek Bieri helps Freiburger and Finnegan with their \'68 big-block Dart.', + 'display_id': 'roadworthy-rescues-teaser-trailer/4922860', + 'creator': 'Originals', + 'series': 'Roadworthy Rescues', + 'thumbnail': r're:^https?://.+\.jpe?g$', + 'upload_date': '20220907', + 'timestamp': 1662523200, + 'duration': 1066.356, + 'tags': [], + }, + }, { + 'url': 'https://www.motortrend.com/plus/detail/ugly-duckling/2450033/12439', + 'only_matching': True, }] _PRODUCT = 'MTOD' |