diff options
Diffstat (limited to 'import/src/infojson.rs')
-rw-r--r-- | import/src/infojson.rs | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/import/src/infojson.rs b/import/src/infojson.rs index 6f98eaa..0ed496c 100644 --- a/import/src/infojson.rs +++ b/import/src/infojson.rs @@ -37,7 +37,7 @@ pub struct YVideo { pub uploader_url: String, pub upload_date: String, pub availability: String, // "public" | "private" | "unlisted", - pub original_url: String, + pub original_url: Option<String>, pub webpage_url_basename: String, pub webpage_url_domain: String, pub extractor: String, @@ -50,7 +50,6 @@ pub struct YVideo { pub playlist_uploader_id: String, pub n_entries: usize, pub playlist_index: usize, - pub playlist_autonumber: usize, pub display_id: String, pub fulltitle: String, pub duration_string: String, @@ -64,31 +63,31 @@ pub struct YCaption { pub url: String, pub ext: String, //"vtt" | "json3" | "srv1" | "srv2" | "srv3" | "ttml", pub protocol: Option<String>, - pub name: String, + pub name: Option<String>, } #[derive(Debug, Serialize, Deserialize)] pub struct YFormat { pub format_id: String, - pub format_note: String, + pub format_note: Option<String>, pub ext: String, pub protocol: String, - pub acodec: String, - pub vcodec: String, + pub acodec: Option<String>, + pub vcodec: Option<String>, pub url: String, - pub width: u32, - pub height: u32, - pub fps: f64, - pub columns: u32, - pub fragments: Vec<YFragment>, - pub resolution: Vec<String>, + pub width: Option<u32>, + pub height: Option<u32>, + pub fps: Option<f64>, + pub columns: Option<u32>, + pub fragments: Option<Vec<YFragment>>, + pub resolution: String, pub dynamic_range: Option<String>, - pub aspect_ratio: f64, + pub aspect_ratio: Option<f64>, pub http_headers: HashMap<String, String>, pub audio_ext: String, pub video_ext: String, - pub vbr: usize, - pub abr: usize, + pub vbr: Option<f64>, + pub abr: Option<f64>, pub format: String, } @@ -118,6 +117,6 @@ pub struct YChapter { #[derive(Debug, Serialize, Deserialize)] pub struct YHeatmapSample { pub start_time: f64, - pub end_time: String, + pub end_time: f64, pub value: f64, } |