Better youtube searches (no errors)
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
// ReSharper disable InconsistentNaming
|
||||
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace NadekoBot.Classes.JSONModels
|
||||
{
|
||||
public class Credentials
|
||||
@@ -15,4 +18,78 @@ namespace NadekoBot.Classes.JSONModels
|
||||
public string LOLAPIKey = "";
|
||||
public string CarbonKey = "";
|
||||
}
|
||||
}
|
||||
[DebuggerDisplay("{items[0].id.playlistId}")]
|
||||
public class YoutubePlaylistSearch
|
||||
{
|
||||
public YtPlaylistItem[] items { get; set; }
|
||||
}
|
||||
public class YtPlaylistItem
|
||||
{
|
||||
public YtPlaylistId id { get; set; }
|
||||
}
|
||||
public class YtPlaylistId
|
||||
{
|
||||
public string kind { get; set; }
|
||||
public string playlistId { get; set; }
|
||||
}
|
||||
[DebuggerDisplay("{items[0].id.videoId}")]
|
||||
public class YoutubeVideoSearch
|
||||
{
|
||||
public YtVideoItem[] items { get; set; }
|
||||
}
|
||||
public class YtVideoItem
|
||||
{
|
||||
public YtVideoId id { get; set; }
|
||||
}
|
||||
public class YtVideoId
|
||||
{
|
||||
public string kind { get; set; }
|
||||
public string videoId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
//{
|
||||
// "kind": "youtube#searchListResponse",
|
||||
// "etag": "\"kiOs9cZLH2FUp6r6KJ8eyq_LIOk/hCJTmyH_v57mh_MvnUFSTHfjzBs\"",
|
||||
// "nextPageToken": "CAEQAA",
|
||||
// "regionCode": "RS",
|
||||
// "pageInfo": {
|
||||
// "totalResults": 4603,
|
||||
// "resultsPerPage": 1
|
||||
// },
|
||||
// "items": [
|
||||
// {
|
||||
// "kind": "youtube#searchResult",
|
||||
// "etag": "\"kiOs9cZLH2FUp6r6KJ8eyq_LIOk/iD1S35mk0xOfwTB_8lpPZ9u-Vzc\"",
|
||||
// "id": {
|
||||
// "kind": "youtube#playlist",
|
||||
// "playlistId": "PLs_KC2CCxJVMfOBnIyW5Kbu_GciNiYNAI"
|
||||
// },
|
||||
// "snippet": {
|
||||
// "publishedAt": "2016-04-14T11:35:29.000Z",
|
||||
// "channelId": "UCMLwm18Qa20L2L-HGpgC3jQ",
|
||||
// "title": "Popular Videos - Otorimonogatari & mousou express",
|
||||
// "description": "",
|
||||
// "thumbnails": {
|
||||
// "default": {
|
||||
// "url": "https://i.ytimg.com/vi/2FeptLky2mU/default.jpg",
|
||||
// "width": 120,
|
||||
// "height": 90
|
||||
// },
|
||||
// "medium": {
|
||||
// "url": "https://i.ytimg.com/vi/2FeptLky2mU/mqdefault.jpg",
|
||||
// "width": 320,
|
||||
// "height": 180
|
||||
// },
|
||||
// "high": {
|
||||
// "url": "https://i.ytimg.com/vi/2FeptLky2mU/hqdefault.jpg",
|
||||
// "width": 480,
|
||||
// "height": 360
|
||||
// }
|
||||
// },
|
||||
// "channelTitle": "Otorimonogatari - Topic",
|
||||
// "liveBroadcastContent": "none"
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
//}
|
Reference in New Issue
Block a user