Skip to content

Commit

Permalink
prioritize hls
Browse files Browse the repository at this point in the history
  • Loading branch information
c-basalt committed Aug 6, 2024
1 parent e7d7292 commit 23adfa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/streamlink/plugins/twitcasting.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ def _get_streams(self):
self.title = match_or_none(r'<meta\s+\bproperty="og:title"[^>]+\bcontent="([^"]+)"/>', webpage)
self.author = match_or_none(r'<span class="tw-user-nav-name">([^<]+)', 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):
Expand Down

0 comments on commit 23adfa4

Please sign in to comment.