From 093663d436032d8c0f4dd7102c1b0dd7f87de497 Mon Sep 17 00:00:00 2001 From: Jicheng Lu <103353@smsassist.com> Date: Wed, 3 Apr 2024 14:51:07 -0500 Subject: [PATCH 1/2] add channel --- .../BotSharp.Abstraction/Google/Models/GoogleVideoResult.cs | 3 ++- .../BotSharp.Abstraction/Google/Settings/GoogleApiSettings.cs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Infrastructure/BotSharp.Abstraction/Google/Models/GoogleVideoResult.cs b/src/Infrastructure/BotSharp.Abstraction/Google/Models/GoogleVideoResult.cs index 442290aaa..49e50c304 100644 --- a/src/Infrastructure/BotSharp.Abstraction/Google/Models/GoogleVideoResult.cs +++ b/src/Infrastructure/BotSharp.Abstraction/Google/Models/GoogleVideoResult.cs @@ -3,7 +3,7 @@ namespace BotSharp.Abstraction.Google.Models; public class GoogleVideoResult { public string Kind { get; set; } - public IList Items { get; set; } = new List(); + public List Items { get; set; } = new List(); } public class VideoItem @@ -25,6 +25,7 @@ public class VideoSnippet { public string Title { get; set; } public string Description { get; set; } + public string ChannelId { get; set; } public string ChannelTitle { get; set; } public VideoThumbnails Thumbnails { get; set; } } diff --git a/src/Infrastructure/BotSharp.Abstraction/Google/Settings/GoogleApiSettings.cs b/src/Infrastructure/BotSharp.Abstraction/Google/Settings/GoogleApiSettings.cs index be7ef6a24..dfa66f604 100644 --- a/src/Infrastructure/BotSharp.Abstraction/Google/Settings/GoogleApiSettings.cs +++ b/src/Infrastructure/BotSharp.Abstraction/Google/Settings/GoogleApiSettings.cs @@ -19,4 +19,5 @@ public class YoutubeSettings public string Endpoint { get; set; } public string Part { get; set; } public string RegionCode { get; set; } + public IList Channels { get; set; } } \ No newline at end of file From 2a4c53f4da45a670e3f06cd4004547b1690001e2 Mon Sep 17 00:00:00 2001 From: Jicheng Lu <103353@smsassist.com> Date: Wed, 3 Apr 2024 15:03:43 -0500 Subject: [PATCH 2/2] add setting --- src/WebStarter/appsettings.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/WebStarter/appsettings.json b/src/WebStarter/appsettings.json index 0db89cbde..83b870b72 100644 --- a/src/WebStarter/appsettings.json +++ b/src/WebStarter/appsettings.json @@ -229,7 +229,8 @@ "Youtube": { "Endpoint": "https://www.googleapis.com/youtube/v3/search", "RegionCode": "US", - "Part": "id,snippet" + "Part": "id,snippet", + "Channels": [] } },