From 1a6d3639e6fddb731735554d407d1eea77f053c6 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Tue, 17 Jun 2025 08:56:36 +0200 Subject: fix(yt_dlp/post_processors): Register in python We need to tell yt_dlp about our post processors, as they would otherwise not take full effect. For example, changing the title would previously only have changed the title in the *in-memory* info json, the actual file on disk (video and .info.json) would still have the old title, as yt_dlp did not know about our post processor. Registering it via their api also has the upside of being able to determine when to run. --- crates/yt_dlp/src/progress_hook.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crates/yt_dlp/src/progress_hook.rs') diff --git a/crates/yt_dlp/src/progress_hook.rs b/crates/yt_dlp/src/progress_hook.rs index 43f85e0..4604223 100644 --- a/crates/yt_dlp/src/progress_hook.rs +++ b/crates/yt_dlp/src/progress_hook.rs @@ -49,3 +49,7 @@ macro_rules! mk_python_function { } pub use rustpython; +pub mod __priv { + pub use crate::{json_dumps, json_loads}; + pub use rustpython::vm; +} -- cgit 1.4.1