mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-01-31 12:32:27 +01:00
chore: rename method
This commit is contained in:
parent
d09e3420f3
commit
b5d67c0119
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ class PeatixIE(InfoExtractor):
|
|||
html, f'variable {variable}', group='value')
|
||||
return var[1:-1] if (var.startswith('"') and var.endswith('"')) or (var.startswith("'") and var.startswith('"')) else var
|
||||
|
||||
def get_player_status(self, broadcast_info, webpage):
|
||||
def get_event_status(self, broadcast_info, webpage):
|
||||
"""
|
||||
broadcast_info: Dict[str, Union[int, str]]
|
||||
A dictionary containing event data with the following keys:
|
||||
|
@ -73,7 +73,7 @@ class PeatixIE(InfoExtractor):
|
|||
player_webpage = self._download_webpage(f'{root_url}/event/{video_id}/watch_live', video_id,
|
||||
note='Downloading player information', errnote='Failed to download player information')
|
||||
try:
|
||||
state = self.get_player_status(self._download_json(f'{root_url}/event/{video_id}/broadcast_info', video_id)['json_data'], player_webpage)
|
||||
state = self.get_event_status(self._download_json(f'{root_url}/event/{video_id}/broadcast_info', video_id)['json_data'], player_webpage)
|
||||
|
||||
except ExtractorError as e:
|
||||
raise ExtractorError(e.msg, video_id=video_id)
|
||||
|
|
Loading…
Add table
Reference in a new issue