mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-07 17:33:41 +00:00
fix: use url_transparent
This commit is contained in:
parent
b3ebbaf8dd
commit
95dffc0e75
@ -44,9 +44,11 @@ class PiaLiveIE(InfoExtractor):
|
||||
return self.url_result(
|
||||
smuggle_url(
|
||||
player_data_url,
|
||||
{'video_id': video_id, 'referer': self.PLAYER_ROOT_URL, 'info_dict': info_dict},
|
||||
{'video_id': video_id, 'referer': self.PLAYER_ROOT_URL},
|
||||
),
|
||||
ie=PIAULIZAPortalAPIIE.ie_key(),
|
||||
url_transparent=True,
|
||||
**info_dict,
|
||||
)
|
||||
|
||||
raise ExtractorError('Unsupported streaming platform', expected=True)
|
||||
|
||||
@ -53,7 +53,7 @@ class PIAULIZAPortalAPIIE(InfoExtractor):
|
||||
player_data = self._download_webpage(
|
||||
url,
|
||||
tmp_video_id,
|
||||
headers={'Referer': smuggled_data.get('referer') or 'https://player-api.p.uliza.jp/'},
|
||||
headers={'Referer': smuggled_data.get('referer') or f'{self.BASE_URL}/'},
|
||||
note='Fetching player data', errnote='Unable to fetch player data',
|
||||
)
|
||||
|
||||
@ -76,7 +76,6 @@ class PIAULIZAPortalAPIIE(InfoExtractor):
|
||||
'video': 'is_live',
|
||||
'dvr': 'was_live', # short-term archives
|
||||
}.get(m3u8_type, 'not_live'), # VOD or long-term archives
|
||||
**smuggled_data.get('info_dict', {}),
|
||||
}
|
||||
|
||||
|
||||
@ -122,10 +121,10 @@ class PIAULIZAPortalIE(InfoExtractor):
|
||||
return self.url_result(
|
||||
smuggle_url(
|
||||
player_data_url,
|
||||
{'video_id': video_id, 'referer': 'https://ulizaportal.jp/', 'info_dict': {
|
||||
'id': video_id,
|
||||
'title': self._html_extract_title(webpage),
|
||||
}},
|
||||
{'video_id': video_id, 'referer': 'https://ulizaportal.jp/'},
|
||||
),
|
||||
ie=PIAULIZAPortalAPIIE.ie_key(),
|
||||
url_transparent=True,
|
||||
video_id=video_id,
|
||||
video_title=self._html_extract_title(webpage),
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user