|
|
|
@ -20,6 +20,8 @@ class GloboIE(InfoExtractor):
|
|
|
|
|
video(id: $videoId) {
|
|
|
|
|
duration
|
|
|
|
|
description
|
|
|
|
|
relatedEpisodeNumber
|
|
|
|
|
relatedSeasonNumber
|
|
|
|
|
headline
|
|
|
|
|
title {
|
|
|
|
|
originProgramId
|
|
|
|
@ -57,6 +59,28 @@ class GloboIE(InfoExtractor):
|
|
|
|
|
}, {
|
|
|
|
|
'url': 'globo:3607726',
|
|
|
|
|
'only_matching': True,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'url': 'globo:8013907', # needs subscription to globoplay
|
|
|
|
|
'info_dict': {
|
|
|
|
|
'id': '8013907',
|
|
|
|
|
'ext': 'mp4',
|
|
|
|
|
'title': 'Capítulo de 14⧸08⧸1989',
|
|
|
|
|
'episode_number': 1
|
|
|
|
|
},
|
|
|
|
|
'params': {
|
|
|
|
|
'skip_download': True,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'url': 'globo:12824146',
|
|
|
|
|
'info_dict': {
|
|
|
|
|
'id': '12824146',
|
|
|
|
|
'ext': 'mp4',
|
|
|
|
|
'title': 'Acordo de damas'
|
|
|
|
|
'episode_number': 1,
|
|
|
|
|
'season_number': 2
|
|
|
|
|
}
|
|
|
|
|
}]
|
|
|
|
|
|
|
|
|
|
def _real_extract(self, url):
|
|
|
|
@ -113,6 +137,8 @@ class GloboIE(InfoExtractor):
|
|
|
|
|
'duration': ('duration', {float_or_none(scale=1000)}),
|
|
|
|
|
'uploader': ('title', 'headline', {str}),
|
|
|
|
|
'uploader_id': ('title', 'originProgramId', {str_or_none}),
|
|
|
|
|
'episode_number': ('relatedEpisodeNumber', {int_or_none}),
|
|
|
|
|
'season_number' ('relatedSeasonNumber', {int_or_none}),
|
|
|
|
|
}),
|
|
|
|
|
'formats': formats,
|
|
|
|
|
'subtitles': subtitles,
|
|
|
|
|