mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-06 03:50:06 +02:00
Configure User-Agent once
This commit is contained in:
parent
3b07a6bcb9
commit
9d88ac59c6
4 changed files with 40 additions and 36 deletions
|
@ -363,6 +363,8 @@ impl AudioFileStreaming {
|
|||
let mut cdn_url = CdnUrl::new(file_id).resolve_audio(&session).await?;
|
||||
let url = cdn_url.get_url()?;
|
||||
|
||||
trace!("Streaming {:?}", url);
|
||||
|
||||
let mut streamer = session.spclient().stream_file(url, 0, download_size)?;
|
||||
let request_time = Instant::now();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue