1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-05 19:42:03 +02:00

Remove feature gate around apresolve

This commit is contained in:
Roderick van Domburg 2021-06-01 20:33:10 +02:00
parent 33c07f0e2b
commit 7c975f8ed0
No known key found for this signature in database
GPG key ID: FE2585E713F9F30A
4 changed files with 4 additions and 20 deletions

View file

@ -6,9 +6,8 @@ use hyper_proxy::{Intercept, Proxy, ProxyConnector};
use serde::Deserialize;
use url::Url;
use super::AP_FALLBACK;
const APRESOLVE_ENDPOINT: &str = "http://apresolve.spotify.com:80";
const AP_FALLBACK: &str = "ap.spotify.com:443";
#[derive(Clone, Debug, Deserialize)]
struct ApResolveData {

View file

@ -8,6 +8,7 @@ use librespot_protocol as protocol;
#[macro_use]
mod component;
mod apresolve;
pub mod audio_key;
pub mod authentication;
pub mod cache;
@ -24,15 +25,3 @@ pub mod spotify_id;
#[doc(hidden)]
pub mod util;
pub mod version;
const AP_FALLBACK: &str = "ap.spotify.com:443";
#[cfg(feature = "apresolve")]
mod apresolve;
#[cfg(not(feature = "apresolve"))]
mod apresolve {
pub async fn apresolve(_: Option<&url::Url>, _: Option<u16>) -> String {
return super::AP_FALLBACK.into();
}
}