Skip to content

Commit

Permalink
force normal api
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacherr committed Oct 20, 2024
1 parent 74e8f37 commit 34ccabe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion assyst-core/src/rest/web_media_download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ async fn test_route(client: &Client, url: &str) -> bool {
/// URLs must be a score of at least 90 (i.e., most sites supported), must support YouTube,
/// and must have a domain over https.
pub async fn get_web_download_api_urls(client: &Client) -> anyhow::Result<Vec<String>> {
/*
let res = client
.get(INSTANCES_ROUTE)
.header("accept", "application/json")
Expand Down Expand Up @@ -154,7 +155,9 @@ pub async fn get_web_download_api_urls(client: &Client) -> anyhow::Result<Vec<St
.map(|res| res.0)
.collect::<Vec<_>>();
Ok(valid_urls)
Ok(valid_urls)*/

Ok(vec!["https://api.cobalt.tools/api/json".to_owned()])
}

/// Attempts to download web media. Will try all APIs until one succeeds, unless
Expand Down

0 comments on commit 34ccabe

Please sign in to comment.