about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-22 14:29:22 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-22 14:29:22 +0200
commitc72dc6e1c2fd836ad0894877207b834ce3aedc6c (patch)
tree2ca5502f8b336a0a2f98847ceefd42439f6a005a
parentfix(watch/events): Also mark a video inactive on the stop event (diff)
downloadyt-c72dc6e1c2fd836ad0894877207b834ce3aedc6c.tar.gz
yt-c72dc6e1c2fd836ad0894877207b834ce3aedc6c.zip
fix(yt_dlp/info_json): Add further missing fields
Diffstat (limited to '')
-rw-r--r--yt_dlp/src/wrapper/info_json.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/yt_dlp/src/wrapper/info_json.rs b/yt_dlp/src/wrapper/info_json.rs
index 09247db..73df11c 100644
--- a/yt_dlp/src/wrapper/info_json.rs
+++ b/yt_dlp/src/wrapper/info_json.rs
@@ -88,6 +88,7 @@ pub struct InfoJson {
     pub like_count: Option<u32>,
     pub live_status: Option<String>,
     pub location: Option<Todo>,
+    pub manifest_url: Option<Url>,
     pub modified_date: Option<String>,
     pub n_entries: Option<u32>,
     pub original_url: Option<String>,
@@ -222,6 +223,8 @@ pub struct Caption {
     pub url: String,
     pub filepath: Option<PathBuf>,
     pub video_id: Option<String>,
+    pub manifest_url: Option<Url>,
+    pub filesize: Option<u64>,
 }
 
 #[derive(Debug, Deserialize, Serialize, PartialEq, PartialOrd)]
@@ -308,10 +311,11 @@ pub enum Extractor {
 
     #[serde(alias = "SVTSeries")]
     SVTSeries,
+    #[serde(alias = "SVTPlay")]
+    SVTPlay,
 
     #[serde(alias = "youtube")]
     YouTube,
-
     #[serde(alias = "youtube:tab")]
     YouTubeTab,
 }
@@ -324,10 +328,11 @@ pub enum ExtractorKey {
 
     #[serde(alias = "SVTSeries")]
     SVTSeries,
+    #[serde(alias = "SVTPlay")]
+    SVTPlay,
 
     #[serde(alias = "Youtube")]
     YouTube,
-
     #[serde(alias = "YoutubeTab")]
     YouTubeTab,
 }