mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-24 00:01:54 +01:00
Compare commits
4 Commits
bb38829eb3
...
512c6f8796
Author | SHA1 | Date | |
---|---|---|---|
|
512c6f8796 | ||
|
1b9c25cc42 | ||
|
a006a37dd3 | ||
|
62140b56e5 |
|
@ -51,9 +51,11 @@ class TVIPlayerIE(InfoExtractor):
|
|||
'season_number': 1,
|
||||
},
|
||||
}]
|
||||
_TOKEN = None
|
||||
|
||||
def _real_initialize(self):
|
||||
self.wms_auth_sign_token = self._download_webpage(
|
||||
if TVIPlayerIE._TOKEN is None:
|
||||
TVIPlayerIE._TOKEN = self._download_webpage(
|
||||
'https://services.iol.pt/matrix?userId=', 'wmsAuthSign',
|
||||
note='Trying to get wmsAuthSign token')
|
||||
|
||||
|
@ -65,7 +67,7 @@ class TVIPlayerIE(InfoExtractor):
|
|||
r'<script>\s*jsonData\s*=', webpage, 'json_data', video_id)
|
||||
|
||||
formats, subtitles = self._extract_m3u8_formats_and_subtitles(
|
||||
f'{json_data["videoUrl"]}?wmsAuthSign={self.wms_auth_sign_token}',
|
||||
f'{json_data["videoUrl"]}?wmsAuthSign={TVIPlayerIE._TOKEN}',
|
||||
video_id, ext='mp4')
|
||||
return {
|
||||
'id': video_id,
|
||||
|
|
Loading…
Reference in New Issue
Block a user