about summary refs log tree commit diff stats
path: root/crates/yt_dlp/src
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-06-15 18:29:47 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-06-15 18:29:47 +0200
commitc8601d67c2dd67ed3ae4465fbf3906fa2cf15a98 (patch)
tree94bde2be828b1449b3acd2677e7097982b92115d /crates/yt_dlp/src
parentfix(yt/update/video_entry_to_video): Cast the json objects (diff)
downloadyt-c8601d67c2dd67ed3ae4465fbf3906fa2cf15a98.zip
fix(yt_dlp): Avoid writing the json output to disk
There is no point in doing this anymore, as we no longer need to
deserialize it.
Diffstat (limited to '')
-rw-r--r--crates/yt_dlp/src/lib.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/crates/yt_dlp/src/lib.rs b/crates/yt_dlp/src/lib.rs
index 99197b2..dd42fc6 100644
--- a/crates/yt_dlp/src/lib.rs
+++ b/crates/yt_dlp/src/lib.rs
@@ -316,21 +316,6 @@ impl YoutubeDL {
 
             let result_json = json_dumps(result, vm);
 
-            if let Ok(confirm) = env::var("YT_STORE_INFO_JSON") {
-                if confirm == "yes" {
-                    let mut file = File::create("output.info.json").unwrap();
-                    write!(
-                        file,
-                        "{}",
-                        serde_json::to_string_pretty(&serde_json::Value::Object(
-                            result_json.clone()
-                        ))
-                        .expect("Valid json")
-                    )
-                    .unwrap();
-                }
-            }
-
             Ok::<_, PyRef<PyBaseException>>(result_json)
         }) {
             Ok(ok) => Ok(ok),