Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

fix(ci): build the Reddit yt-dlp template expectation through Path so the test passes on Windows

tonhowtf6418c0357664
diff --git a/src-tauri/omniget-core/src/core/tools/reddit/download.rs b/src-tauri/omniget-core/src/core/tools/reddit/download.rs
index b58308f6..29291640 100644
--- a/src-tauri/omniget-core/src/core/tools/reddit/download.rs
+++ b/src-tauri/omniget-core/src/core/tools/reddit/download.rs
@@ -756,7 +756,8 @@ mod tests {
assert!(joined.contains("bv*+ba/b"));
assert!(joined.contains("--ffmpeg-location /opt/ffmpeg"));
assert!(joined.contains("after_move:OMNIGET_FILEPATH:%(filepath)s"));
- assert!(args.contains(&"/tmp/saida/Titulo [aa1].%(ext)s".to_string()));
+ let template = dest.join("Titulo [aa1].%(ext)s");
+ assert!(args.contains(&template.to_string_lossy().to_string()));
assert_eq!(
args.last().map(|s| s.as_str()),
Some("https://www.reddit.com/r/x/comments/aa1/t/")