From 6d08362937466a10e5f75ba8aff92cb0e4794ba4 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 5 Jun 2025 18:50:26 +0000 Subject: [PATCH] database support --- src/videos.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/videos.rs b/src/videos.rs index 1ce2fe4..d4befc4 100644 --- a/src/videos.rs +++ b/src/videos.rs @@ -157,14 +157,15 @@ pub struct Video_Format { video_ext: Option, resolution: Option, http_headers: Option>, + } impl Video_Format { pub fn new(url: String, quality: String, format: String) -> Self { Video_Format { url, quality, - format, - format_id: None, + format: "mp4".to_string(), // Default format + format_id: Some("mp4-1080".to_string()), format_note: None, filesize: None, asr: None, @@ -174,16 +175,16 @@ impl Video_Format { tbr: None, language: None, language_preference: None, - ext: None, + ext: Some("mp4".to_string()), vcodec: None, acodec: None, dynamic_range: None, abr: None, vbr: None, container: None, - protocol: None, - audio_ext: None, - video_ext: None, + protocol: Some("m3u8_native".to_string()), + audio_ext: Some("none".to_string()), + video_ext: Some("mp4".to_string()), resolution: None, http_headers: None, }