Currently handles /c/<channel>/live but YouTube also supports that link without the /c part. Too small for a pull request.
Now able to match YouTube links without the /c prefix.
youtube.com/c/<channel>/liveyoutube.com/<channel>/livegaming.youtube.com/<channel>/liveHere's a patch
diff --git a/src/streamlink/plugins/youtube.py b/src/streamlink/plugins/youtube.py
index 7907aca..23a15c8 100644
--- a/src/streamlink/plugins/youtube.py
+++ b/src/streamlink/plugins/youtube.py
@@ -107,7 +107,7 @@ _url_re = re.compile(r"""
)
|
(?:
- /c/(?P<liveChannel>[^/?]+)/live
+ /(c/)?(?P<liveChannel>[^/?]+)/live
)
)
""", re.VERBOSE)
Looks good, do you want to open a PR for it?
No fix is too small for a PR! Well done for fixing your own issue @ahtcx ;)
Most helpful comment
No fix is too small for a PR! Well done for fixing your own issue @ahtcx ;)