diff --git a/src/streamlink/plugins/youtube.py b/src/streamlink/plugins/youtube.py index c2514070664..f80b9a301e4 100644 --- a/src/streamlink/plugins/youtube.py +++ b/src/streamlink/plugins/youtube.py @@ -256,7 +256,7 @@ def _find_video_id(self, url): log.debug("Video ID from videoRenderer (live)") return x["videoId"] - if "/embed/live_stream" in url: + if urlparse(url).path.endswith(("/embed/live_stream", "/live")): for link in itertags(res.text, "link"): if link.attributes.get("rel") == "canonical": canon_link = link.attributes.get("href")