- Migrated to twitch helix api for stream notifications

- Added 2 new fields to creds.yml -> TwitchClientId and TwitchClientSecret
- Users now have to provide them in order to use twitch stream notifications as Twitch is shutting down old api on 18th of February 2022
- Possibly fixed some issues with streams randomly getting cleared
- Added an incomplete trovo stream notification provider
This commit is contained in:
Kwoth
2022-02-15 17:03:31 +01:00
parent 7ed1b13e85
commit e6e802b563
15 changed files with 340 additions and 330 deletions

View File

@@ -39,11 +39,11 @@ public class PicartoProvider : Provider
return Task.FromResult<StreamData?>(null);
}
public override async Task<StreamData?> GetStreamDataAsync(string id)
public override async Task<StreamData?> GetStreamDataAsync(string login)
{
var data = await GetStreamDataAsync(new List<string>
{
id
login
});
return data.FirstOrDefault();