Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacherr committed Oct 21, 2024
1 parent 3fce423 commit ff56670
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions assyst-core/src/rest/web_media_download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<bool>,
Expand Down Expand Up @@ -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<Vec<u8>> {
Expand Down

0 comments on commit ff56670

Please sign in to comment.