Compare commits

..

No commits in common. "135cc6601cb52efe6930351f941b0a80f540b352" and "9ac6340cc247614dfc33ae475c3cdc86a50c1c73" have entirely different histories.

View File

@ -1,11 +1,9 @@
import json
import re
import uuid
from .common import InfoExtractor
from ..utils import (
float_or_none,
int_or_none,
orderedSet,
str_or_none,
try_get,
@ -21,8 +19,6 @@ class GloboIE(InfoExtractor):
video(id: $videoId) {
duration
description
relatedEpisodeNumber
relatedSeasonNumber
headline
title {
originProgramId
@ -60,31 +56,6 @@ 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 14081989',
'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,
},
'params': {
'skip_download': True,
},
}]
def _real_extract(self, url):
@ -113,10 +84,7 @@ class GloboIE(InfoExtractor):
'video_id': video_id,
'quality': 'max',
'content_protection': 'widevine',
'vsid': f'{uuid.uuid4()}',
'consumption': 'streaming',
'capabilities': {'low_latency': True},
'metadata': {'name': 'web', 'device': {'type': 'desktop', 'os': {}}},
'vsid': '2938bc7c-9376-d4b7-ee91-ce46dbbf9f4d',
'tz': '-03:00',
'Authorization': try_get(self._get_cookies('https://globo.com'),
lambda x: f'Bearer {x["GLBID"].value}') or '',
@ -141,8 +109,6 @@ 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,