mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-06-30 06:34:27 +00:00
also accept season and episode numbers for titles that support it
This commit is contained in:
parent
626a901584
commit
23e35dc851
@ -20,6 +20,8 @@ class GloboIE(InfoExtractor):
|
|||||||
video(id: $videoId) {
|
video(id: $videoId) {
|
||||||
duration
|
duration
|
||||||
description
|
description
|
||||||
|
relatedEpisodeNumber
|
||||||
|
relatedSeasonNumber
|
||||||
headline
|
headline
|
||||||
title {
|
title {
|
||||||
originProgramId
|
originProgramId
|
||||||
@ -57,6 +59,28 @@ class GloboIE(InfoExtractor):
|
|||||||
}, {
|
}, {
|
||||||
'url': 'globo:3607726',
|
'url': 'globo:3607726',
|
||||||
'only_matching': True,
|
'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):
|
def _real_extract(self, url):
|
||||||
@ -113,6 +137,8 @@ class GloboIE(InfoExtractor):
|
|||||||
'duration': ('duration', {float_or_none(scale=1000)}),
|
'duration': ('duration', {float_or_none(scale=1000)}),
|
||||||
'uploader': ('title', 'headline', {str}),
|
'uploader': ('title', 'headline', {str}),
|
||||||
'uploader_id': ('title', 'originProgramId', {str_or_none}),
|
'uploader_id': ('title', 'originProgramId', {str_or_none}),
|
||||||
|
'episode_number': ('relatedEpisodeNumber', {int_or_none}),
|
||||||
|
'season_number' ('relatedSeasonNumber', {int_or_none}),
|
||||||
}),
|
}),
|
||||||
'formats': formats,
|
'formats': formats,
|
||||||
'subtitles': subtitles,
|
'subtitles': subtitles,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user