mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-06 06:45:00 +01:00
Change url to api_url.
This commit is contained in:
parent
e307a467c4
commit
9d72a21c07
1 changed files with 3 additions and 3 deletions
|
|
@ -93,11 +93,11 @@ class MGTVIE(InfoExtractor):
|
|||
raise ExtractorError(error['msg'], expected=True)
|
||||
raise
|
||||
|
||||
url = 'https://pcweb.api.mgtv.com/player/getSource'
|
||||
api_url = 'https://pcweb.api.mgtv.com/player/getSource'
|
||||
if self._get_cookies('https://mgtv.com'):
|
||||
url = 'https://tinker.glb.mgtv.com/player/getSource'
|
||||
api_url = 'https://tinker.glb.mgtv.com/player/getSource'
|
||||
stream_data = self._download_json(
|
||||
url, 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