mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-09 12:50:23 -05:00
add more values
This commit is contained in:
parent
50b35cab6d
commit
ee565d9c32
1 changed files with 17 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
ExtractorError,
|
ExtractorError,
|
||||||
int_or_none,
|
int_or_none,
|
||||||
|
str_or_none,
|
||||||
parse_qs,
|
parse_qs,
|
||||||
traverse_obj,
|
traverse_obj,
|
||||||
update_url_query,
|
update_url_query,
|
||||||
|
@ -120,6 +121,16 @@ class PlaySuisseIE(InfoExtractor):
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
description
|
description
|
||||||
|
descriptionLong
|
||||||
|
year
|
||||||
|
contentTypes
|
||||||
|
countries
|
||||||
|
composers
|
||||||
|
directors
|
||||||
|
writers
|
||||||
|
mainCast
|
||||||
|
productionCompanies
|
||||||
|
productionCountries
|
||||||
duration
|
duration
|
||||||
episodeNumber
|
episodeNumber
|
||||||
seasonNumber
|
seasonNumber
|
||||||
|
@ -259,7 +270,12 @@ def _extract_single(self, media_data):
|
||||||
return {
|
return {
|
||||||
'id': media_data['id'],
|
'id': media_data['id'],
|
||||||
'title': media_data.get('name'),
|
'title': media_data.get('name'),
|
||||||
'description': media_data.get('description'),
|
'description': media_data.get('descriptionLong') or media_data.get('description'),
|
||||||
|
'genres': media_data.get('contentTypes'),
|
||||||
|
'creators': media_data.get('directors'),
|
||||||
|
'cast': media_data.get('mainCast'),
|
||||||
|
'location': media_data.get('productionCountries'),
|
||||||
|
'release_year': int_or_none(media_data.get('year')[:4]) if media_data.get('year') else None ,
|
||||||
'thumbnails': thumbnails,
|
'thumbnails': thumbnails,
|
||||||
'duration': int_or_none(media_data.get('duration')),
|
'duration': int_or_none(media_data.get('duration')),
|
||||||
'formats': formats,
|
'formats': formats,
|
||||||
|
|
Loading…
Reference in a new issue