From 570f24c99af8c9cd1b9050564c32adb85e2c9c0f Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 30 Jan 2025 13:46:29 +0100 Subject: channel.info.json --- import/src/infojson.rs | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'import/src/infojson.rs') diff --git a/import/src/infojson.rs b/import/src/infojson.rs index f4c028b..c2ae305 100644 --- a/import/src/infojson.rs +++ b/import/src/infojson.rs @@ -13,23 +13,23 @@ use std::collections::HashMap; pub struct YVideo { pub id: String, pub title: String, - pub formats: Vec, + pub formats: Option>, pub thumbnails: Vec, - pub thumbnail: String, + pub thumbnail: Option, pub description: String, pub channel_id: String, pub duration: Option, - pub view_count: usize, + pub view_count: Option, pub average_rating: Option, - pub age_limit: usize, + pub age_limit: Option, pub webpage_url: String, - pub categories: Vec, + pub categories: Option>, pub tags: Vec, - pub playable_in_embed: bool, + pub playable_in_embed: Option, pub aspect_ratio: Option, pub width: Option, pub height: Option, - pub automatic_captions: HashMap>, + pub automatic_captions: Option>>, pub comment_count: Option, pub chapters: Option>, pub heatmap: Option>, @@ -40,7 +40,7 @@ pub struct YVideo { pub uploader: Option, pub uploader_id: Option, pub uploader_url: Option, - pub upload_date: String, + pub upload_date: Option, pub availability: Option, // "public" | "private" | "unlisted", pub original_url: Option, pub webpage_url_basename: String, @@ -55,11 +55,11 @@ pub struct YVideo { pub playlist_uploader_id: Option, pub n_entries: Option, pub playlist_index: Option, - pub display_id: String, - pub fulltitle: String, - pub duration_string: String, - pub is_live: bool, - pub was_live: bool, + pub display_id: Option, + pub fulltitle: Option, + pub duration_string: Option, + pub is_live: Option, + pub was_live: Option, pub epoch: usize, } @@ -105,7 +105,7 @@ pub struct YFragment { #[derive(Debug, Serialize, Deserialize)] pub struct YThumbnail { pub url: String, - pub preference: i32, + pub preference: Option, pub id: String, pub height: Option, pub width: Option, -- cgit v1.2.3-70-g09d2