Open matous-volf opened 1 week ago
Just found out that using a yt-dlp and ffmpeg locally installed in the environment by
let libraries = Libraries::new("yt-dlp".into(), "ffmpeg".into());
let fetcher = Youtube::new(libraries, output_dir).unwrap();
~works~ helps, but not very consistently – some videos can sometimes be downloaded. That is strange, since both local
yt-dlp --version
and the auto downloaded
libs/yt-dlp --version
are 2024.11.04.
It seems, that the line and column from the Serde error refer to the field
{
...
"_version": {
...
"release_git_head": null
...
}
}
which in the output of the local yt-dlp does contain a string value.
Just found out that using a yt-dlp and ffmpeg locally installed in the environment by
let libraries = Libraries::new("yt-dlp".into(), "ffmpeg".into()); let fetcher = Youtube::new(libraries, output_dir).unwrap();
~works~ helps, but not very consistently – some videos can sometimes be downloaded.
The inconsistency actually turns out to be a separate issue.
Thanks for your report. Effectively, this field is supposed to be null because the downloaded version is a release, with no different commit than the head. This will be fixed in a future version, although a major rework is underway, to integrate only the url extraction and decoding part of yt-dlp, and not the whole binary which is slow
Using rustc 1.82.0 (f6e511eec 2024-10-15). Combining the examples from the docs.
Cargo.toml:
main.rs:
Logs:
Thank you in advance.