1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-04 18:29:45 +02:00

Resolve dealer and spclient access points (#795)

This commit is contained in:
Roderick van Domburg 2021-06-10 22:24:40 +02:00 committed by GitHub
parent 7ed35396f8
commit 6244515879
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 86 additions and 62 deletions

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;
@ -27,17 +28,3 @@ pub mod spotify_id;
#[doc(hidden)]
pub mod util;
pub mod version;
fn ap_fallback() -> (String, u16) {
(String::from("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, u16) {
super::ap_fallback()
}
}