Merge pull request #392 from iceljc/features/add-youtube-channel

add channel
This commit is contained in:
C. Oceania 2024-04-03 15:49:44 -05:00 committed by GitHub
commit 07bfaa01f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 2 deletions

View file

@ -3,7 +3,7 @@ namespace BotSharp.Abstraction.Google.Models;
public class GoogleVideoResult
{
public string Kind { get; set; }
public IList<VideoItem> Items { get; set; } = new List<VideoItem>();
public List<VideoItem> Items { get; set; } = new List<VideoItem>();
}
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; }
}

View file

@ -19,4 +19,5 @@ public class YoutubeSettings
public string Endpoint { get; set; }
public string Part { get; set; }
public string RegionCode { get; set; }
public IList<string> Channels { get; set; }
}

View file

@ -229,7 +229,8 @@
"Youtube": {
"Endpoint": "https://www.googleapis.com/youtube/v3/search",
"RegionCode": "US",
"Part": "id,snippet"
"Part": "id,snippet",
"Channels": []
}
},