mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-25 08:41:28 +01:00
Compare commits
No commits in common. "a02438274d45ccd3a923c29ad4c08ee1d8ef46ae" and "38e84a6ecaa857195b41858762c4edb09d64191a" have entirely different histories.
a02438274d
...
38e84a6eca
|
@ -1319,7 +1319,6 @@ The available fields are:
|
||||||
- `location` (string): Physical location where the video was filmed
|
- `location` (string): Physical location where the video was filmed
|
||||||
- `duration` (numeric): Length of the video in seconds
|
- `duration` (numeric): Length of the video in seconds
|
||||||
- `duration_string` (string): Length of the video (HH:mm:ss)
|
- `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
|
- `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.
|
- `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
|
- `like_count` (numeric): Number of positive ratings of the video
|
||||||
|
|
|
@ -180,8 +180,19 @@ class CBCPlayerIE(InfoExtractor):
|
||||||
'thumbnail': 'http://thumbnails.cbc.ca/maven_legacy/thumbnails/sonali-karnick-220.jpg',
|
'thumbnail': 'http://thumbnails.cbc.ca/maven_legacy/thumbnails/sonali-karnick-220.jpg',
|
||||||
'chapters': [],
|
'chapters': [],
|
||||||
'duration': 494.811,
|
'duration': 494.811,
|
||||||
'categories': ['AudioMobile/All in a Weekend Montreal'],
|
'categories': [
|
||||||
'tags': 'count:8',
|
'AudioMobile/All in a Weekend Montreal',
|
||||||
|
],
|
||||||
|
'tags': [
|
||||||
|
'CBC',
|
||||||
|
'CBC Radio',
|
||||||
|
'Montreal',
|
||||||
|
'Quebec',
|
||||||
|
'All In A Weekend',
|
||||||
|
'Sonali Karnick',
|
||||||
|
'hackathon',
|
||||||
|
'listenmontreal',
|
||||||
|
],
|
||||||
'location': 'Quebec',
|
'location': 'Quebec',
|
||||||
'series': 'All in a Weekend Montreal',
|
'series': 'All in a Weekend Montreal',
|
||||||
'season': 'Season 2015',
|
'season': 'Season 2015',
|
||||||
|
|
|
@ -73,6 +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}],
|
||||||
|
'creator': None,
|
||||||
'categories': [
|
'categories': [
|
||||||
'Informazione',
|
'Informazione',
|
||||||
],
|
],
|
||||||
|
|
|
@ -108,6 +108,10 @@ class ThePlatformBaseIE(OnceIE):
|
||||||
# A number of sites have custom-prefixed keys, e.g. 'cbc$seasonNumber'
|
# 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)
|
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 {
|
return {
|
||||||
'title': info['title'],
|
'title': info['title'],
|
||||||
'subtitles': subtitles,
|
'subtitles': subtitles,
|
||||||
|
@ -124,7 +128,7 @@ class ThePlatformBaseIE(OnceIE):
|
||||||
'location': extract_site_specific_field('region'),
|
'location': extract_site_specific_field('region'),
|
||||||
'series': extract_site_specific_field('show'),
|
'series': extract_site_specific_field('show'),
|
||||||
'season_number': int_or_none(extract_site_specific_field('seasonNumber')),
|
'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):
|
def _extract_theplatform_metadata(self, path, video_id):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user