Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.
Rust downloadmanagerguihacktoberfesthomebrewlightweightlinuxlinux-distributionlocal-firstmacosmacos-packagemedia-toolboxopen-sourcerustsveltetauritrendingtrending-repositorieswindowswindows-desktopytdlp
fix: implement Default trait for HlsDownloader
Tonho7b134a281bef
diff --git a/src-tauri/src/core/hls_downloader.rs b/src-tauri/src/core/hls_downloader.rsindex 8d66a0d6..1fb76241 100644--- a/src-tauri/src/core/hls_downloader.rs+++ b/src-tauri/src/core/hls_downloader.rs@@ -24,6 +24,12 @@ pub struct HlsDownloader {client: Client,}+impl Default for HlsDownloader {+ fn default() -> Self {+ Self::new()+ }+}+impl HlsDownloader {pub fn new() -> Self {Self::with_client(@@ -41,6 +47,7 @@ impl HlsDownloader {Self { client }}+ #[allow(clippy::too_many_arguments)]pub async fn download(&self,m3u8_url: &str,@@ -125,6 +132,7 @@ impl HlsDownloader {}))}+ #[allow(clippy::too_many_arguments)]async fn download_media_playlist(&self,m3u8_url: &str,