diff options
Diffstat (limited to 'import/src/infojson.rs')
-rw-r--r-- | import/src/infojson.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/import/src/infojson.rs b/import/src/infojson.rs index d9d60ed..e22fd71 100644 --- a/import/src/infojson.rs +++ b/import/src/infojson.rs @@ -31,7 +31,7 @@ pub struct YVideo { pub like_count: usize, pub channel: String, pub channel_follower_count: usize, - pub channel_is_verified: bool, + pub channel_is_verified: Option<bool>, pub uploader: String, pub uploader_id: String, pub uploader_url: String, @@ -60,7 +60,7 @@ pub struct YVideo { #[derive(Debug, Serialize, Deserialize)] pub struct YCaption { - pub url: String, + pub url: Option<String>, pub ext: String, //"vtt" | "json3" | "srv1" | "srv2" | "srv3" | "ttml", pub protocol: Option<String>, pub name: Option<String>, @@ -74,7 +74,7 @@ pub struct YFormat { pub protocol: String, pub acodec: Option<String>, pub vcodec: Option<String>, - pub url: String, + pub url: Option<String>, pub width: Option<u32>, pub height: Option<u32>, pub fps: Option<f64>, |