mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-21 18:01:24 +02:00
Compare commits
No commits in common. "d2e06b56d64570ac18b90329ac791c155ce415db" and "71229c9cf03c47ad027da20687139dc5a4b1d3aa" have entirely different histories.
d2e06b56d6
...
71229c9cf0
|
@ -26,14 +26,7 @@ class LaXarxaMesIE(InfoExtractor):
|
|||
'Accept': 'application/json, text/plain, */*',
|
||||
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko)',
|
||||
'Origin': 'https://www.laxarxames.cat',
|
||||
}, data=json.dumps({
|
||||
'Username': username,
|
||||
'Password': password,
|
||||
'Device': {
|
||||
'PlatformCode': 'WEB',
|
||||
'Name': 'Mac OS ()',
|
||||
},
|
||||
}).encode('utf-8'))
|
||||
}, data=b'{"Username":"%s","Password":"%s","Device":{"PlatformCode":"WEB","Name":"Mac OS ()"}}' % (username.encode(), password.encode())
|
||||
)
|
||||
|
||||
if not login['AuthorizationToken']:
|
||||
|
@ -46,7 +39,7 @@ class LaXarxaMesIE(InfoExtractor):
|
|||
authorization = self._get_cookies('https://www.laxarxames.cat/').get('didomi_token')
|
||||
|
||||
if not authorization:
|
||||
self.raise_login_required()
|
||||
raise Exception('No authorization token found. Log in with --netrc or --username and --password')
|
||||
mediaplayinfo = self._download_json(
|
||||
'https://api.laxarxames.cat/Media/GetMediaPlayInfo',
|
||||
video_id,
|
||||
|
|
Loading…
Reference in New Issue
Block a user