Compare commits

..

No commits in common. "a02438274d45ccd3a923c29ad4c08ee1d8ef46ae" and "38e84a6ecaa857195b41858762c4edb09d64191a" have entirely different histories.

4 changed files with 19 additions and 4 deletions

View File

@ -1319,7 +1319,6 @@ The available fields are:
- `location` (string): Physical location where the video was filmed
- `duration` (numeric): Length of the video in seconds
- `duration_string` (string): Length of the video (HH:mm:ss)
- `media_type` (string): The type of media, for instance a full show, an excerpt, a highlight, or a trailer.
- `view_count` (numeric): How many users have watched the video on the platform
- `concurrent_view_count` (numeric): How many users are currently watching the video on the platform.
- `like_count` (numeric): Number of positive ratings of the video

View File

@ -180,8 +180,19 @@ class CBCPlayerIE(InfoExtractor):
'thumbnail': 'http://thumbnails.cbc.ca/maven_legacy/thumbnails/sonali-karnick-220.jpg',
'chapters': [],
'duration': 494.811,
'categories': ['AudioMobile/All in a Weekend Montreal'],
'tags': 'count:8',
'categories': [
'AudioMobile/All in a Weekend Montreal',
],
'tags': [
'CBC',
'CBC Radio',
'Montreal',
'Quebec',
'All In A Weekend',
'Sonali Karnick',
'hackathon',
'listenmontreal',
],
'location': 'Quebec',
'series': 'All in a Weekend Montreal',
'season': 'Season 2015',

View File

@ -73,6 +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}],
'creator': None,
'categories': [
'Informazione',
],

View File

@ -108,6 +108,10 @@ class ThePlatformBaseIE(OnceIE):
# A number of sites have custom-prefixed keys, e.g. 'cbc$seasonNumber'
return next((info[k] for k in info if k.endswith(f'${field}') and info[k] != ''), None)
info_media_type = extract_site_specific_field('programmingType')
if not info_media_type:
info_media_type = extract_site_specific_field('type')
return {
'title': info['title'],
'subtitles': subtitles,
@ -124,7 +128,7 @@ class ThePlatformBaseIE(OnceIE):
'location': extract_site_specific_field('region'),
'series': extract_site_specific_field('show'),
'season_number': int_or_none(extract_site_specific_field('seasonNumber')),
'media_type': extract_site_specific_field('programmingType') or extract_site_specific_field('type'),
'media_type': info_media_type,
}
def _extract_theplatform_metadata(self, path, video_id):