diff --git a/src/streamlink/plugins/twitcasting.py b/src/streamlink/plugins/twitcasting.py index 258bfbcad97..b0f4d29bb21 100644 --- a/src/streamlink/plugins/twitcasting.py +++ b/src/streamlink/plugins/twitcasting.py @@ -137,10 +137,10 @@ def _get_streams(self): self.title = match_or_none(r']+\bcontent="([^"]+)"/>', webpage) self.author = match_or_none(r'([^<]+)', webpage) - if websocket: - yield from self._get_streams_websocket(websocket) if hls: yield from self._get_streams_hls(hls) + elif websocket: + yield from self._get_streams_websocket(websocket) class TwitCastingWsClient(WebsocketClient):