libYTDLR
A library to interact with youtube-dl / yt-dlp from rust, with custom archive support.
This library is mainly made for ytdlr binary, but can also be consumed standalone.
For build / run requirements please see the project README.
Functions provided
download
The main functionality: interacting with yt-dlp; downloading actual media.
Small example:
download_single?;
For a full example see examples/simple.
rethumbnail
Extra functionality to re-apply a thumbnail to a video or audio container:
Small example:
re_thumbnail_with_tmp?;
For a full example see `examples/rehtumbnail.
archive interaction
The custom archive libytdlr uses is based on SQLite and provides full read & write ability.
It is recommended to only do reads from outside functions.
The main function that will be necessary to be called to make use of the archive is:
migrate_and_connect?;
// or without any format migration:
sqlite_connect?;