From c8601d67c2dd67ed3ae4465fbf3906fa2cf15a98 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 15 Jun 2025 18:29:47 +0200 Subject: 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. --- crates/yt_dlp/src/lib.rs | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'crates/yt_dlp/src') 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>(result_json) }) { Ok(ok) => Ok(ok), -- cgit 1.4.1