mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-04 10:19:27 +02:00
core API: move spotify_id to lib.rs
This commit is contained in:
parent
6a9084b00c
commit
4c2b641cad
11 changed files with 67 additions and 69 deletions
|
@ -11,7 +11,7 @@ use tempfile::NamedTempFile;
|
|||
|
||||
use core::channel::{Channel, ChannelData, ChannelError, ChannelHeaders};
|
||||
use core::session::Session;
|
||||
use core::util::FileId;
|
||||
use core::spotify_id::FileId;
|
||||
|
||||
const CHUNK_SIZE: usize = 0x20000;
|
||||
|
||||
|
@ -115,7 +115,7 @@ impl Future for AudioFileOpenStreaming {
|
|||
if id == 0x3 {
|
||||
let size = BigEndian::read_u32(&data) as usize * 4;
|
||||
let file = self.finish(size);
|
||||
|
||||
|
||||
return Ok(Async::Ready(file));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue