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': [],
'duration': 186.867,
'series': 'CBC News: Windsor at 6:00',
'categories': [
'News/Canada/Windsor',
],
'categories': ['News/Canada/Windsor'],
'location': 'Windsor',
'tags': [
'cancer',
],
'tags': ['cancer'],
'creator': 'Allison Johnson',
'media_type': 'Excerpt',
},

View File

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

View File

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