From ff56670163b950ba201d11f9bb048e0160fdea72 Mon Sep 17 00:00:00 2001 From: Jacherr Date: Mon, 21 Oct 2024 12:39:11 +0100 Subject: [PATCH] fix warnings --- assyst-core/src/rest/web_media_download.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/assyst-core/src/rest/web_media_download.rs b/assyst-core/src/rest/web_media_download.rs index 69782ff..d22bdc3 100644 --- a/assyst-core/src/rest/web_media_download.rs +++ b/assyst-core/src/rest/web_media_download.rs @@ -15,13 +15,6 @@ use tracing::debug; use crate::command::services::download::DownloadFlags; use crate::downloader::{download_content, ABSOLUTE_INPUT_FILE_SIZE_LIMIT_BYTES}; -pub const INSTANCES_ROUTE: &str = "https://instances.hyper.lol/instances.json"; - -pub const TEST_URL: &str = "https://www.youtube.com/watch?v=sbvp3kuU2ak"; -pub const TEST_SCORE_THRESHOLD: f32 = 90.0; - -pub static TEST_URL_TIMEOUT: Duration = Duration::from_secs(15); - #[derive(Default, Clone)] pub struct WebDownloadOpts { pub audio_only: Option, @@ -68,13 +61,6 @@ pub struct WebDownloadError { pub text: String, } -#[derive(Deserialize)] -pub struct InstancesQueryResult { - pub score: f32, - pub api: String, - pub protocol: String, -} - /// Attempts to download web media. Will try all APIs until one succeeds, unless /// `opts.api_url_override` is set. pub async fn download_web_media(client: &Client, url: &str, opts: WebDownloadOpts) -> anyhow::Result> {