[Streams] Resolve bug with [p]streamalert youtube (#4629)

The command didn't handle channels that were not provided as IDs
This commit is contained in:
El Laggron 2020-11-19 18:50:00 +01:00 committed by GitHub
parent f1d2be58c1
commit f129dcd1a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -407,6 +407,9 @@ class Streams(commands.Cog):
token=token.get("client_id"),
bearer=self.ttv_bearer_cache.get("access_token", None),
)
else:
if is_yt:
stream = _class(name=channel_name, token=token, config=self.config)
else:
stream = _class(name=channel_name, token=token)
try: