database support
This commit is contained in:
@@ -157,14 +157,15 @@ pub struct Video_Format {
|
|||||||
video_ext: Option<String>,
|
video_ext: Option<String>,
|
||||||
resolution: Option<String>,
|
resolution: Option<String>,
|
||||||
http_headers: Option<HashMap<String, String>>,
|
http_headers: Option<HashMap<String, String>>,
|
||||||
|
|
||||||
}
|
}
|
||||||
impl Video_Format {
|
impl Video_Format {
|
||||||
pub fn new(url: String, quality: String, format: String) -> Self {
|
pub fn new(url: String, quality: String, format: String) -> Self {
|
||||||
Video_Format {
|
Video_Format {
|
||||||
url,
|
url,
|
||||||
quality,
|
quality,
|
||||||
format,
|
format: "mp4".to_string(), // Default format
|
||||||
format_id: None,
|
format_id: Some("mp4-1080".to_string()),
|
||||||
format_note: None,
|
format_note: None,
|
||||||
filesize: None,
|
filesize: None,
|
||||||
asr: None,
|
asr: None,
|
||||||
@@ -174,16 +175,16 @@ impl Video_Format {
|
|||||||
tbr: None,
|
tbr: None,
|
||||||
language: None,
|
language: None,
|
||||||
language_preference: None,
|
language_preference: None,
|
||||||
ext: None,
|
ext: Some("mp4".to_string()),
|
||||||
vcodec: None,
|
vcodec: None,
|
||||||
acodec: None,
|
acodec: None,
|
||||||
dynamic_range: None,
|
dynamic_range: None,
|
||||||
abr: None,
|
abr: None,
|
||||||
vbr: None,
|
vbr: None,
|
||||||
container: None,
|
container: None,
|
||||||
protocol: None,
|
protocol: Some("m3u8_native".to_string()),
|
||||||
audio_ext: None,
|
audio_ext: Some("none".to_string()),
|
||||||
video_ext: None,
|
video_ext: Some("mp4".to_string()),
|
||||||
resolution: None,
|
resolution: None,
|
||||||
http_headers: None,
|
http_headers: None,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user