diff --git a/src/livestreamer/plugins/picarto.py b/src/livestreamer/plugins/picarto.py
index b05b00f0..04326f2f 100644
--- a/src/livestreamer/plugins/picarto.py
+++ b/src/livestreamer/plugins/picarto.py
@@ -5,14 +5,15 @@
from livestreamer.stream import RTMPStream
API_CHANNEL_INFO = "https://picarto.tv/process/channel"
-RTMP_URL = "{}/?{}/{}"
+RTMP_URL = "rtmp://{}:1935/play/"
+RTMP_PLAYPATH = "golive+{}?token={}"
_url_re = re.compile(r"""
https?://(\w+\.)?picarto\.tv/[^&?/]
""", re.VERBOSE)
_channel_casing_re = re.compile(r"""
-
+
""", re.VERBOSE)
@@ -37,7 +38,8 @@ def _get_streams(self):
streams = {}
streams["live"] = RTMPStream(self.session, {
- "rtmp": RTMP_URL.format(channel_server_res.text, visibility, channel),
+ "rtmp": RTMP_URL.format(channel_server_res.text),
+ "playpath": RTMP_PLAYPATH.format(channel, visibility),
"pageUrl": self.url,
"live": True
})