mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-06 06:45:00 +01:00
Merge 9d72a21c07 into 36b29bb353
This commit is contained in:
commit
90999758a7
1 changed files with 4 additions and 1 deletions
|
|
@ -93,8 +93,11 @@ class MGTVIE(InfoExtractor):
|
|||
raise ExtractorError(error['msg'], expected=True)
|
||||
raise
|
||||
|
||||
api_url = 'https://pcweb.api.mgtv.com/player/getSource'
|
||||
if self._get_cookies('https://mgtv.com'):
|
||||
api_url = 'https://tinker.glb.mgtv.com/player/getSource'
|
||||
stream_data = self._download_json(
|
||||
'https://pcweb.api.mgtv.com/player/getSource', video_id, query={
|
||||
api_url, video_id, query={
|
||||
'tk2': tk2,
|
||||
'pm2': api_data['atc']['pm2'],
|
||||
'video_id': video_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue