Update yt_dlp/extractor/piaulizaportal.py

Co-authored-by: Mozi <29089388+pzhlkj6612@users.noreply.github.com>
This commit is contained in:
ChocoLZS 2024-10-28 11:22:18 +08:00 committed by GitHub
parent 75ea808d0a
commit 8f5a765e25
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,8 +39,7 @@ def _real_extract(self, url):
display_id = self._match_id(url)
player_data = self._download_webpage(
url, display_id, headers={'Referer': 'https://player-api.p.uliza.jp/'},
note='Fetching player data', errnote='Unable to fetch player data',
)
note='Fetching player data', errnote='Unable to fetch player data')
m3u8_url = self._search_regex(
r'["\'](https://vms-api\.p\.uliza\.jp/v1/prog-index\.m3u8[^"\']+)', player_data, 'm3u8 url')