add comment

This commit is contained in:
Roy Olav Purser 2023-07-23 12:29:14 +02:00
parent a1ac365fad
commit e62327c64f
Signed by: roypur
GPG Key ID: 90142918D5E59AD3

View File

@ -204,6 +204,7 @@ class StreamProvider:
class StreamlinkRunner(StreamProvider): class StreamlinkRunner(StreamProvider):
def stream(self): def stream(self):
if "youtube.com" in urllib.parse.urlparse(self.upstream).hostname.lower(): if "youtube.com" in urllib.parse.urlparse(self.upstream).hostname.lower():
# YouTube doesn't work with StreamLink as of 23-jul-2023
return StreamData(None, None, None, None, None, None, False) return StreamData(None, None, None, None, None, None, False)
try: try:
session = None session = None