Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixtests #7718

Merged
merged 72 commits into from Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
6392bd0
Fixed the tests so that they work again. They need thumbnail. chapter…
trainman261 Jun 27, 2023
8a11132
added note that one test video is no longer available
trainman261 Jun 27, 2023
a47c86f
Fixed a stupid mistake while merging changes
trainman261 Jun 27, 2023
4cbbffe
Trying to fix up theplatform tests, but many of these lack proper doc…
trainman261 Jun 28, 2023
6f46f4c
Many/most videos are either unavailable or geo-restricted, so marking…
trainman261 Jul 15, 2023
4b7751c
The video is no longer available. Someone else will have to fix this …
trainman261 Jul 15, 2023
7263c1b
Fixed the tests so that they work again. They need thumbnail. chapter…
trainman261 Jun 27, 2023
58f6e74
added note that one test video is no longer available
trainman261 Jun 27, 2023
37f74c3
Fixed a stupid mistake while merging changes
trainman261 Jun 27, 2023
9f0f8b1
Fixed the tests for CBC Gem Playlists
trainman261 Jul 15, 2023
bb3560a
Merge branch 'cbcplayer-fixtests' of https://github.com/trainman261/y…
trainman261 Jul 15, 2023
ed36002
Merge branch 'yt-dlp:master' into aenetworks-fixtests
trainman261 Jul 19, 2023
e9bfe18
Merge branch 'yt-dlp:master' into amcnetworks-fixtests
trainman261 Jul 19, 2023
fc19393
Merge branch 'yt-dlp:master' into cbcplayer-fixtests
trainman261 Jul 19, 2023
e5b3945
Merge branch 'yt-dlp:master' into theplatform-fixtests
trainman261 Jul 19, 2023
476d8ed
paramount videos are geo-restricted. The CBS test is broken, possibly…
trainman261 Jul 19, 2023
ab4e56c
Merge branch 'yt-dlp:master' into cbs-fixtests
trainman261 Jul 22, 2023
0f95ba9
Merge branch 'yt-dlp:master' into theplatform-fixtests
trainman261 Jul 22, 2023
75ff458
skip two tests - one geo-restricted and subscriber only and another r…
trainman261 Jul 22, 2023
3adbc97
marked tests as unavailable/geo-restricted
trainman261 Jul 22, 2023
bc3f594
updated the URL, but the extractor seems to be broken.
trainman261 Jul 22, 2023
398a64a
Marked tests to skip because of geo-restrictions or lacking videos
trainman261 Jul 22, 2023
b261083
skip tests that redirect elsewhere or are geo-restricted
trainman261 Jul 22, 2023
0136060
skipping unavailable videos
trainman261 Jul 22, 2023
6dd7203
fixed up tests and marked as skip due to geo-restriction
trainman261 Jul 22, 2023
cc0bbc6
fixed one test, marked another one as skip due to geo-restriction
trainman261 Jul 22, 2023
448d963
mark test as skip as the video is not available as such (anymore/here)
trainman261 Jul 22, 2023
60f857f
skip the test, doesn't seem to exist anymore
trainman261 Jul 22, 2023
6293377
changed a test video because the old one is no longer available
trainman261 Jul 22, 2023
94dd6cc
Fixed up to test 18. Test 18 expects a whole bunch of keys that are j…
trainman261 Jul 26, 2023
320a431
Merge branch 'yt-dlp:master' into corus-fixtests
trainman261 Jul 26, 2023
1d43f2d
Merge branch 'yt-dlp:master' into nbc-fixtests
trainman261 Jul 26, 2023
a2bc798
Merge branch 'theplatform-fixtests' into fixtests
trainman261 Jul 26, 2023
e42fe62
Merge branch 'theweatherchannel-fixtests' into fixtests
trainman261 Jul 26, 2023
efcbd66
Merge branch 'syfy-fixtests' into fixtests
trainman261 Jul 26, 2023
78394cb
Merge branch 'sprout-fixtests' into fixtests
trainman261 Jul 26, 2023
cc51aab
Merge branch 'scrippsnetwork-fixtests' into fixtests
trainman261 Jul 26, 2023
a821265
Merge branch 'nationalgeographic-fixtests' into fixtests
trainman261 Jul 26, 2023
f1ec45b
Merge branch 'movieclips-fixtests' into fixtests
trainman261 Jul 26, 2023
a77569f
Merge branch 'mediaset-fixtests' into fixtests
trainman261 Jul 26, 2023
e6ba2e8
Merge branch 'corus-fixtests' into fixtests
trainman261 Jul 26, 2023
f97c1e2
Merge branch 'cnbc-fixtests' into fixtests
trainman261 Jul 26, 2023
a1a5c3f
Merge branch 'cbs-fixtests' into fixtests
trainman261 Jul 26, 2023
39d7ea9
Merge branch 'cbcplayer-fixtests' into fixtests
trainman261 Jul 26, 2023
f2ec7b3
Merge branch 'amcnetworks-fixtests' into fixtests
trainman261 Jul 26, 2023
d424b1b
Merge branch 'aenetworks-fixtests' into fixtests
trainman261 Jul 26, 2023
4e94c99
skip the other test as well, the site is inaccessible.
trainman261 Jul 27, 2023
2a19fbf
Merge branch 'cwtv-fixtests' into fixtests
trainman261 Jul 27, 2023
f258227
mixed up single and double quotes
trainman261 Jul 27, 2023
cba1002
Merge branch 'cwtv-fixtests' into fixtests
trainman261 Jul 27, 2023
5c65c5b
fix spaces before comment
trainman261 Jul 28, 2023
266f80c
fixed trailing whitespace
trainman261 Jul 28, 2023
6c804e3
Merge branch 'corus-fixtests' of https://github.com/trainman261/yt-dl…
trainman261 Jul 28, 2023
a4ddc8d
Merge branch 'corus-fixtests' into fixtests
trainman261 Jul 28, 2023
65019f5
Merge branch 'nbc-fixtests' into fixtests
trainman261 Jul 28, 2023
3826030
Update yt_dlp/extractor/aenetworks.py
trainman261 Sep 29, 2023
f9f5589
Update yt_dlp/extractor/amcnetworks.py
trainman261 Sep 29, 2023
da91875
Update yt_dlp/extractor/cbc.py
trainman261 Sep 29, 2023
453234e
Update yt_dlp/extractor/nbc.py
trainman261 Sep 29, 2023
90b84c8
Update yt_dlp/extractor/nbc.py
trainman261 Sep 29, 2023
ebcba5e
Update yt_dlp/extractor/scrippsnetworks.py
trainman261 Sep 29, 2023
5587be1
Update yt_dlp/extractor/cbs.py
trainman261 Sep 29, 2023
06b2025
Update yt_dlp/extractor/aenetworks.py
trainman261 Sep 29, 2023
afd11b3
Update yt_dlp/extractor/aenetworks.py
trainman261 Sep 29, 2023
86e4054
Update yt_dlp/extractor/aenetworks.py
trainman261 Sep 29, 2023
40dc691
Update yt_dlp/extractor/sprout.py
trainman261 Sep 29, 2023
bce494f
Update yt_dlp/extractor/syfy.py
trainman261 Sep 29, 2023
5d67ae7
Update yt_dlp/extractor/theplatform.py
trainman261 Sep 29, 2023
385aaff
Update yt_dlp/extractor/theplatform.py
trainman261 Sep 29, 2023
9d1916a
Update yt_dlp/extractor/theplatform.py
trainman261 Sep 29, 2023
e2dc623
Merge branch 'master' into fixtests
trainman261 Sep 29, 2023
d4151d5
Apply suggestions from code review
trainman261 Sep 29, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions yt_dlp/extractor/aenetworks.py
Expand Up @@ -338,6 +338,7 @@ class BiographyIE(AENetworksBaseIE):
'skip_download': True,
},
'add_ie': ['ThePlatform'],
'skip': '404 Not Found',
}]

def _real_extract(self, url):
Expand Down
1 change: 1 addition & 0 deletions yt_dlp/extractor/amcnetworks.py
Expand Up @@ -26,6 +26,7 @@ class AMCNetworksIE(ThePlatformIE): # XXX: Do not subclass from concrete IE
# m3u8 download
'skip_download': True,
},
'skip': '404 Not Found',
}, {
'url': 'http://www.bbcamerica.com/shows/the-hunt/full-episodes/season-1/episode-01-the-hardest-challenge',
'only_matching': True,
Expand Down
7 changes: 6 additions & 1 deletion yt_dlp/extractor/cbc.py
Expand Up @@ -66,6 +66,7 @@ class CBCIE(InfoExtractor):
'uploader': 'CBCC-NEW',
'timestamp': 255977160,
},
'skip': '404 Not Found',
}, {
# multiple iframes
'url': 'http://www.cbc.ca/natureofthings/blog/birds-eye-view-from-vancouvers-burrard-street-bridge-how-we-got-the-shot',
Expand Down Expand Up @@ -97,7 +98,7 @@ class CBCIE(InfoExtractor):
# multiple CBC.APP.Caffeine.initInstance(...)
'url': 'http://www.cbc.ca/news/canada/calgary/dog-indoor-exercise-winter-1.3928238',
'info_dict': {
'title': 'Keep Rover active during the deep freeze with doggie pushups and other fun indoor tasks',
'title': 'Keep Rover active during the deep freeze with doggie pushups and other fun indoor tasks', # FIXME
'id': 'dog-indoor-exercise-winter-1.3928238',
'description': 'md5:c18552e41726ee95bd75210d1ca9194c',
},
Expand Down Expand Up @@ -476,6 +477,10 @@ class CBCGemPlaylistIE(InfoExtractor):
'id': 'schitts-creek/s06',
'title': 'Season 6',
'description': 'md5:6a92104a56cbeb5818cc47884d4326a2',
'series': 'Schitt\'s Creek',
'season_number': 6,
'season': 'Season 6',
'thumbnail': 'https://images.radio-canada.ca/v1/synps-cbc/season/perso/cbc_schitts_creek_season_06_carousel_v03.jpg?impolicy=ott&im=Resize=(_Size_)&quality=75',
},
}, {
'url': 'https://gem.cbc.ca/schitts-creek/s06',
Expand Down
2 changes: 2 additions & 0 deletions yt_dlp/extractor/cbs.py
Expand Up @@ -101,6 +101,7 @@ class CBSIE(CBSBaseIE):
# m3u8 download
'skip_download': True,
},
'skip': 'Subscription required',
}, {
'url': 'https://www.cbs.com/shows/video/sZH1MGgomIosZgxGJ1l263MFq16oMtW1/',
'info_dict': {
Expand All @@ -117,6 +118,7 @@ class CBSIE(CBSBaseIE):
},
'expected_warnings': [
'This content expired on', 'No video formats found', 'Requested format is not available'],
'skip': '404 Not Found',
}, {
'url': 'http://colbertlateshow.com/video/8GmB0oY0McANFvp2aEffk9jZZZ2YyXxy/the-colbeard/',
'only_matching': True,
Expand Down
2 changes: 2 additions & 0 deletions yt_dlp/extractor/cnbc.py
Expand Up @@ -19,6 +19,7 @@ class CNBCIE(InfoExtractor):
# m3u8 download
'skip_download': True,
},
'skip': 'Dead link',
}

def _real_extract(self, url):
Expand Down Expand Up @@ -49,6 +50,7 @@ class CNBCVideoIE(InfoExtractor):
'params': {
'skip_download': True,
},
'skip': 'Dead link',
}

def _real_extract(self, url):
Expand Down
3 changes: 2 additions & 1 deletion yt_dlp/extractor/corus.py
Expand Up @@ -41,7 +41,7 @@ class CorusIE(ThePlatformFeedIE): # XXX: Do not subclass from concrete IE
)
'''
_TESTS = [{
'url': 'http://www.hgtv.ca/shows/bryan-inc/videos/movie-night-popcorn-with-bryan-870923331648/',
'url': 'https://www.hgtv.ca/video/bryan-inc/movie-night-popcorn-with-bryan/870923331648/',
pukkandan marked this conversation as resolved.
Show resolved Hide resolved
'info_dict': {
'id': '870923331648',
'ext': 'mp4',
Expand All @@ -54,6 +54,7 @@ class CorusIE(ThePlatformFeedIE): # XXX: Do not subclass from concrete IE
'skip_download': True,
},
'expected_warnings': ['Failed to parse JSON'],
# FIXME: yt-dlp wrongly raises for geo restriction
}, {
'url': 'http://www.foodnetwork.ca/shows/chopped/video/episode/chocolate-obsession/video.html?v=872683587753',
'only_matching': True,
Expand Down
13 changes: 10 additions & 3 deletions yt_dlp/extractor/generic.py
Expand Up @@ -58,6 +58,8 @@ class GenericIE(InfoExtractor):
'ext': 'mp4',
'title': 'trailer',
'upload_date': '20100513',
'direct': True,
'timestamp': 1273772943.0,
}
},
# Direct link to media delivered compressed (until Accept-Encoding is *)
Expand Down Expand Up @@ -101,6 +103,8 @@ class GenericIE(InfoExtractor):
'ext': 'webm',
'title': '5_Lennart_Poettering_-_Systemd',
'upload_date': '20141120',
'direct': True,
'timestamp': 1416498816.0,
},
'expected_warnings': [
'URL could be a direct video link, returning it as such.'
Expand Down Expand Up @@ -133,6 +137,7 @@ class GenericIE(InfoExtractor):
'upload_date': '20201204',
},
}],
'skip': 'Dead link',
},
# RSS feed with item with description and thumbnails
{
Expand All @@ -145,12 +150,12 @@ class GenericIE(InfoExtractor):
'playlist': [{
'info_dict': {
'ext': 'm4a',
'id': 'c1c879525ce2cb640b344507e682c36d',
'id': '818a5d38-01cd-152f-2231-ee479677fa82',
bashonly marked this conversation as resolved.
Show resolved Hide resolved
'title': 're:Hydrogen!',
'description': 're:.*In this episode we are going.*',
'timestamp': 1567977776,
'upload_date': '20190908',
'duration': 459,
'duration': 423,
'thumbnail': r're:^https?://.*\.jpg$',
'episode_number': 1,
'season_number': 1,
Expand Down Expand Up @@ -267,6 +272,7 @@ class GenericIE(InfoExtractor):
'params': {
'skip_download': True,
},
'skip': '404 Not Found',
},
# MPD from http://dash-mse-test.appspot.com/media.html
{
Expand All @@ -278,6 +284,7 @@ class GenericIE(InfoExtractor):
'title': 'car-20120827-manifest',
'formats': 'mincount:9',
'upload_date': '20130904',
'timestamp': 1378272859.0,
},
},
# m3u8 served with Content-Type: audio/x-mpegURL; charset=utf-8
Expand Down Expand Up @@ -318,7 +325,7 @@ class GenericIE(InfoExtractor):
'id': 'cmQHVoWB5FY',
'ext': 'mp4',
'upload_date': '20130224',
'uploader_id': 'TheVerge',
'uploader_id': '@TheVerge',
'description': r're:^Chris Ziegler takes a look at the\.*',
'uploader': 'The Verge',
'title': 'First Firefox OS phones side-by-side',
Expand Down
3 changes: 2 additions & 1 deletion yt_dlp/extractor/mediaset.py
Expand Up @@ -127,7 +127,8 @@ class MediasetIE(ThePlatformBaseIE):
},
'params': {
'skip_download': True,
}
},
'skip': 'Dead link',
}, {
# WittyTV embed
'url': 'https://www.wittytv.it/mauriziocostanzoshow/ultima-puntata-venerdi-25-novembre/',
Expand Down
1 change: 1 addition & 0 deletions yt_dlp/extractor/movieclips.py
Expand Up @@ -23,6 +23,7 @@ class MovieClipsIE(InfoExtractor):
'uploader': 'Movieclips',
},
'add_ie': ['ThePlatform'],
'skip': 'redirects to YouTube',
}

def _real_extract(self, url):
Expand Down
3 changes: 3 additions & 0 deletions yt_dlp/extractor/nationalgeographic.py
Expand Up @@ -24,6 +24,7 @@ class NationalGeographicVideoIE(InfoExtractor):
'uploader': 'NAGS',
},
'add_ie': ['ThePlatform'],
'skip': 'Redirects to main page',
},
{
'url': 'http://video.nationalgeographic.com/wild/when-sharks-attack/the-real-jaws',
Expand All @@ -38,6 +39,7 @@ class NationalGeographicVideoIE(InfoExtractor):
'uploader': 'NAGS',
},
'add_ie': ['ThePlatform'],
'skip': 'Redirects to main page',
},
]

Expand Down Expand Up @@ -75,6 +77,7 @@ class NationalGeographicTVIE(FOXIE): # XXX: Do not subclass from concrete IE
'params': {
'skip_download': True,
},
'skip': 'Content not available',
}]
_HOME_PAGE_URL = 'https://www.nationalgeographic.com/tv/'
_API_KEY = '238bb0a0c2aba67922c48709ce0c06fd'
22 changes: 17 additions & 5 deletions yt_dlp/extractor/nbc.py
Expand Up @@ -284,7 +284,7 @@ class NBCSportsIE(InfoExtractor):

_TESTS = [{
# iframe src
'url': 'http://www.nbcsports.com//college-basketball/ncaab/tom-izzo-michigan-st-has-so-much-respect-duke',
'url': 'https://www.nbcsports.com/watch/nfl/profootballtalk/pft-pm/unpacking-addisons-reckless-driving-citation',
'info_dict': {
'id': 'PHJSaFWbrTY9',
'ext': 'mp4',
Expand Down Expand Up @@ -379,14 +379,16 @@ class NBCNewsIE(ThePlatformIE): # XXX: Do not subclass from concrete IE
_TESTS = [
{
'url': 'http://www.nbcnews.com/watch/nbcnews-com/how-twitter-reacted-to-the-snowden-interview-269389891880',
'md5': 'cf4bc9e6ce0130f00f545d80ecedd4bf',
'md5': 'fb3dcd2d7b1dd9804305fa2fc95ab610', # md5 tends to fluctuate
'info_dict': {
'id': '269389891880',
'ext': 'mp4',
'title': 'How Twitter Reacted To The Snowden Interview',
'description': 'md5:65a0bd5d76fe114f3c2727aa3a81fe64',
'timestamp': 1401363060,
'upload_date': '20140529',
'duration': 46.0,
'thumbnail': 'https://media-cldnry.s-nbcnews.com/image/upload/MSNBC/Components/Video/140529/p_tweet_snow_140529.jpg',
},
},
{
Expand All @@ -402,38 +404,44 @@ class NBCNewsIE(ThePlatformIE): # XXX: Do not subclass from concrete IE
},
{
'url': 'http://www.nbcnews.com/nightly-news/video/nightly-news-with-brian-williams-full-broadcast-february-4-394064451844',
'md5': '8eb831eca25bfa7d25ddd83e85946548',
'md5': '40d0e48c68896359c80372306ece0fc3',
'info_dict': {
'id': '394064451844',
'ext': 'mp4',
'title': 'Nightly News with Brian Williams Full Broadcast (February 4)',
'description': 'md5:1c10c1eccbe84a26e5debb4381e2d3c5',
'timestamp': 1423104900,
'upload_date': '20150205',
'duration': 1236.0,
'thumbnail': 'https://media-cldnry.s-nbcnews.com/image/upload/MSNBC/Components/Video/__NEW/nn_netcast_150204.jpg',
},
},
{
'url': 'http://www.nbcnews.com/business/autos/volkswagen-11-million-vehicles-could-have-suspect-software-emissions-scandal-n431456',
'md5': '4a8c4cec9e1ded51060bdda36ff0a5c0',
'md5': 'ffb59bcf0733dc3c7f0ace907f5e3939',
'info_dict': {
'id': 'n431456',
'ext': 'mp4',
'title': "Volkswagen U.S. Chief: We 'Totally Screwed Up'",
'description': 'md5:d22d1281a24f22ea0880741bb4dd6301',
'upload_date': '20150922',
'timestamp': 1442917800,
'duration': 37.0,
'thumbnail': 'https://media-cldnry.s-nbcnews.com/image/upload/MSNBC/Components/Video/__NEW/x_lon_vwhorn_150922.jpg',
},
},
{
'url': 'http://www.today.com/video/see-the-aurora-borealis-from-space-in-stunning-new-nasa-video-669831235788',
'md5': '118d7ca3f0bea6534f119c68ef539f71',
'md5': '693d1fa21d23afcc9b04c66b227ed9ff',
'info_dict': {
'id': '669831235788',
'ext': 'mp4',
'title': 'See the aurora borealis from space in stunning new NASA video',
'description': 'md5:74752b7358afb99939c5f8bb2d1d04b1',
'upload_date': '20160420',
'timestamp': 1461152093,
'duration': 69.0,
'thumbnail': 'https://media-cldnry.s-nbcnews.com/image/upload/MSNBC/Components/Video/201604/2016-04-20T11-35-09-133Z--1280x720.jpg',
},
},
{
Expand All @@ -447,6 +455,7 @@ class NBCNewsIE(ThePlatformIE): # XXX: Do not subclass from concrete IE
'thumbnail': r're:^https?://.*\.jpg$',
'timestamp': 1406937606,
'upload_date': '20140802',
'duration': 940.0,
},
},
{
Expand Down Expand Up @@ -535,6 +544,7 @@ class NBCOlympicsIE(InfoExtractor):
'upload_date': '20160815',
'uploader': 'NBCU-SPORTS',
},
'skip': '404 Not Found',
}

def _real_extract(self, url):
Expand Down Expand Up @@ -578,6 +588,7 @@ class NBCOlympicsStreamIE(AdobePassIE):
'params': {
'skip_download': 'm3u8',
},
'skip': 'Livestream',
}, {
'note': 'Plain m3u8 source URL',
'url': 'https://stream.nbcolympics.com/gymnastics-event-finals-mens-floor-pommel-horse-womens-vault-bars',
Expand All @@ -589,6 +600,7 @@ class NBCOlympicsStreamIE(AdobePassIE):
'params': {
'skip_download': 'm3u8',
},
'skip': 'Livestream',
},
]

Expand Down
4 changes: 4 additions & 0 deletions yt_dlp/extractor/scrippsnetworks.py
Expand Up @@ -39,6 +39,7 @@ class ScrippsNetworksWatchIE(AWSIE):
'skip_download': True,
},
'add_ie': [AnvatoIE.ie_key()],
'skip': '404 Not Found',
}]

_SNI_TABLE = {
Expand Down Expand Up @@ -113,6 +114,9 @@ class ScrippsNetworksIE(InfoExtractor):
'timestamp': 1475678834,
'upload_date': '20161005',
'uploader': 'SCNI-SCND',
'duration': 29.995,
'chapters': [{'start_time': 0.0, 'end_time': 29.995, 'title': '<Untitled Chapter 1>'}],
bashonly marked this conversation as resolved.
Show resolved Hide resolved
'thumbnail': 'https://images.dds.discovery.com/up/tp/Scripps_-_Food_Category_Prod/122/987/0260338_630x355.jpg',
},
'add_ie': ['ThePlatform'],
'expected_warnings': ['No HLS formats found'],
Expand Down
1 change: 1 addition & 0 deletions yt_dlp/extractor/syfy.py
Expand Up @@ -23,6 +23,7 @@ class SyfyIE(AdobePassIE):
'skip_download': True,
},
'add_ie': ['ThePlatform'],
'skip': 'Redirects to main page',
}]

def _real_extract(self, url):
Expand Down
6 changes: 3 additions & 3 deletions yt_dlp/extractor/theplatform.py
Expand Up @@ -167,7 +167,7 @@ class ThePlatformIE(ThePlatformBaseIE, AdobePassIE):
# rtmp download
'skip_download': True,
},
'skip': '404 Not Found',
'skip': 'CNet no longer uses ThePlatform',
}, {
'url': 'https://player.theplatform.com/p/D6x-PC/pulse_preview/embed/select/media/yMBg9E8KFxZD',
'info_dict': {
Expand All @@ -177,7 +177,7 @@ class ThePlatformIE(ThePlatformBaseIE, AdobePassIE):
'title': 'HIGHLIGHTS: USA bag first ever series Cup win',
'uploader': 'EGSM',
},
'skip': '404 Not Found',
'skip': 'Dead link',
}, {
'url': 'http://player.theplatform.com/p/NnzsPC/widget/select/media/4Y0TlYUr_ZT7',
'only_matching': True,
Expand All @@ -195,7 +195,7 @@ class ThePlatformIE(ThePlatformBaseIE, AdobePassIE):
'upload_date': '20150701',
'uploader': 'NBCU-NEWS',
},
'skip': '404 Not Found',
'skip': 'Error: Player PID "nbcNewsOffsite" is disabled',
}, {
# From http://www.nbc.com/the-blacklist/video/sir-crispin-crandall/2928790?onid=137781#vc137781=1
# geo-restricted (US), HLS encrypted with AES-128
Expand Down
20 changes: 11 additions & 9 deletions yt_dlp/extractor/theweatherchannel.py
Expand Up @@ -11,17 +11,19 @@
class TheWeatherChannelIE(ThePlatformIE): # XXX: Do not subclass from concrete IE
_VALID_URL = r'https?://(?:www\.)?weather\.com(?P<asset_name>(?:/(?P<locale>[a-z]{2}-[A-Z]{2}))?/(?:[^/]+/)*video/(?P<id>[^/?#]+))'
_TESTS = [{
'url': 'https://weather.com/series/great-outdoors/video/ice-climber-is-in-for-a-shock',
'md5': 'c4cbe74c9c17c5676b704b950b73dd92',
'url': 'https://weather.com/storms/hurricane/video/invest-95l-in-atlantic-has-a-medium-chance-of-development',
'md5': '68f0cf616435683f27ce36bd9c927394',
'info_dict': {
'id': 'cc82397e-cc3f-4d11-9390-a785add090e8',
'id': '81acef2d-ee8c-4545-ba83-bff3cc80db97',
'ext': 'mp4',
'title': 'Ice Climber Is In For A Shock',
'description': 'md5:55606ce1378d4c72e6545e160c9d9695',
'uploader': 'TWC - Digital (No Distro)',
'uploader_id': '6ccd5455-16bb-46f2-9c57-ff858bb9f62c',
'upload_date': '20160720',
'timestamp': 1469018835,
'title': 'Invest 95L In Atlantic Has A Medium Chance Of Development',
'description': 'md5:0de720fd5f0d0e32207bd4c270fff824',
'uploader': 'TWC - Digital',
'uploader_id': 'b5a999e0-9e04-11e1-9ee2-001d092f5a10',
'upload_date': '20230721',
'timestamp': 1689967343,
'display_id': 'invest-95l-in-atlantic-has-a-medium-chance-of-development',
'duration': 34.0,
}
}, {
'url': 'https://weather.com/en-CA/international/videos/video/unidentified-object-falls-from-sky-in-india',
Expand Down