[CHANGE] Client handling

This commit is contained in:
max
2025-10-19 23:21:07 +02:00
parent e4596df392
commit 34e029ec79
4 changed files with 60 additions and 16 deletions

View File

@@ -8,4 +8,17 @@ public class YouTubeClientCollection : KeyedCollection<string, YouTubeClient>
{
return item.Id;
}
public new void Add(YouTubeClient client)
{
if (Items.Contains(client))
{
var index = Items.IndexOf(client);
Items[index] = client;
}
else
{
Items.Add(client);
}
}
}