From 02f4b25227929dd3b903b493df262b48128901ea Mon Sep 17 00:00:00 2001 From: c-basalt <117849907+c-basalt@users.noreply.github.com> Date: Sun, 11 Aug 2024 10:45:10 -0400 Subject: [PATCH] update --- yt_dlp/extractor/rplaylive.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yt_dlp/extractor/rplaylive.py b/yt_dlp/extractor/rplaylive.py index 8286307d01..180c77d269 100644 --- a/yt_dlp/extractor/rplaylive.py +++ b/yt_dlp/extractor/rplaylive.py @@ -287,6 +287,8 @@ class RPlayLiveIE(RPlayBaseIE): stream_state = live_info['streamState'] if stream_state == 'youtube': return self.url_result(f'https://www.youtube.com/watch?v={live_info["liveStreamId"]}') + elif stream_state == 'twitch': + return self.url_result(f'https://www.twitch.tv/{live_info["twitchLogin"]}') elif stream_state == 'live': if not self.user_id and not live_info.get('allowAnonymous'): self.raise_login_required(method='password')