Skip to content

Commit 07bfaa0

Browse files
authored
Merge pull request #392 from iceljc/features/add-youtube-channel
add channel
2 parents c10b8d4 + 2a4c53f commit 07bfaa0

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/Infrastructure/BotSharp.Abstraction/Google/Models/GoogleVideoResult.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ namespace BotSharp.Abstraction.Google.Models;
33
public class GoogleVideoResult
44
{
55
public string Kind { get; set; }
6-
public IList<VideoItem> Items { get; set; } = new List<VideoItem>();
6+
public List<VideoItem> Items { get; set; } = new List<VideoItem>();
77
}
88

99
public class VideoItem
@@ -25,6 +25,7 @@ public class VideoSnippet
2525
{
2626
public string Title { get; set; }
2727
public string Description { get; set; }
28+
public string ChannelId { get; set; }
2829
public string ChannelTitle { get; set; }
2930
public VideoThumbnails Thumbnails { get; set; }
3031
}

src/Infrastructure/BotSharp.Abstraction/Google/Settings/GoogleApiSettings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ public class YoutubeSettings
1919
public string Endpoint { get; set; }
2020
public string Part { get; set; }
2121
public string RegionCode { get; set; }
22+
public IList<string> Channels { get; set; }
2223
}

src/WebStarter/appsettings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@
229229
"Youtube": {
230230
"Endpoint": "https://www.googleapis.com/youtube/v3/search",
231231
"RegionCode": "US",
232-
"Part": "id,snippet"
232+
"Part": "id,snippet",
233+
"Channels": []
233234
}
234235
},
235236

0 commit comments

Comments
 (0)