Compare commits

...

2 Commits

Author SHA1 Message Date
sepro
e90ce5a9f0
Update yt_dlp/extractor/nbc.py 2023-12-05 13:57:10 +01:00
sepro
1d5cf770de
Apply suggestions from code review 2023-12-05 13:56:02 +01:00
3 changed files with 6 additions and 19 deletions

View File

@ -203,13 +203,9 @@ class CBCPlayerIE(InfoExtractor):
'chapters': [], 'chapters': [],
'duration': 186.867, 'duration': 186.867,
'series': 'CBC News: Windsor at 6:00', 'series': 'CBC News: Windsor at 6:00',
'categories': [ 'categories': ['News/Canada/Windsor'],
'News/Canada/Windsor',
],
'location': 'Windsor', 'location': 'Windsor',
'tags': [ 'tags': ['cancer'],
'cancer',
],
'creator': 'Allison Johnson', 'creator': 'Allison Johnson',
'media_type': 'Excerpt', 'media_type': 'Excerpt',
}, },

View File

@ -73,9 +73,7 @@ class MediasetIE(ThePlatformBaseIE):
'season_number': 5, 'season_number': 5,
'episode_number': 5, 'episode_number': 5,
'chapters': [{'start_time': 0.0, 'end_time': 3409.08}, {'start_time': 3409.08, 'end_time': 6565.008}], 'chapters': [{'start_time': 0.0, 'end_time': 3409.08}, {'start_time': 3409.08, 'end_time': 6565.008}],
'categories': [ 'categories': ['Informazione'],
'Informazione',
],
}, },
}, { }, {
# DRM # DRM
@ -152,9 +150,7 @@ class MediasetIE(ThePlatformBaseIE):
'season_number': 12, 'season_number': 12,
'episode': 'Episode 8', 'episode': 'Episode 8',
'episode_number': 8, 'episode_number': 8,
'categories': [ 'categories': ['Intrattenimento'],
'Intrattenimento',
]
}, },
'params': { 'params': {
'skip_download': True, 'skip_download': True,

View File

@ -53,10 +53,7 @@ class NBCIE(ThePlatformIE): # XXX: Do not subclass from concrete IE
'chapters': 'count:1', 'chapters': 'count:1',
'tags': 'count:4', 'tags': 'count:4',
'thumbnail': r're:https?://.+\.jpg', 'thumbnail': r're:https?://.+\.jpg',
'categories': [ 'categories': ['Series/The Tonight Show Starring Jimmy Fallon'],
'Series/The Tonight Show Starring Jimmy Fallon'
],
'creator': None,
'media_type': 'Full Episode', 'media_type': 'Full Episode',
}, },
'params': { 'params': {
@ -136,9 +133,7 @@ class NBCIE(ThePlatformIE): # XXX: Do not subclass from concrete IE
'tags': 'count:10', 'tags': 'count:10',
'age_limit': 0, 'age_limit': 0,
'thumbnail': r're:https?://.+\.jpg', 'thumbnail': r're:https?://.+\.jpg',
'categories': [ 'categories': ['Series/Quantum Leap 2022'],
'Series/Quantum Leap 2022',
],
'media_type': 'Highlight', 'media_type': 'Highlight',
}, },
'params': { 'params': {