diff --git a/yt_dlp/extractor/pialive.py b/yt_dlp/extractor/pialive.py index 9ea1b22432..a6fc8ffffc 100644 --- a/yt_dlp/extractor/pialive.py +++ b/yt_dlp/extractor/pialive.py @@ -36,10 +36,10 @@ class PiaLiveIE(InfoExtractor): ] def handle_embed_player(self, player_tag, video_id, info_dict={}): - player_data_url = self._search_regex([PIAULIZAPortalAPIIE.TAG_REGEX_PATTERN], + player_data_url = self._search_regex([PIAULIZAPortalAPIIE.TAG_REGEX], player_tag, 'player data url', fatal=False) - if PIAULIZAPortalAPIIE.BASE_URL in player_data_url: + if player_data_url.startswith(PIAULIZAPortalAPIIE.BASE_URL): return self.url_result( smuggle_url( player_data_url, @@ -57,8 +57,7 @@ class PiaLiveIE(InfoExtractor): prod_configure = self._download_webpage( self.PLAYER_ROOT_URL + self._search_regex(r'