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

Support downloading Album Covers.

This commit is contained in:
Paul Lietar 2016-03-13 20:03:40 +00:00
parent aa1d466e92
commit 4d712efb48
5 changed files with 97 additions and 54 deletions

View file

@ -40,7 +40,7 @@ struct AudioFileShared {
impl AudioFileLoading {
fn new(session: &Session, file_id: FileId) -> AudioFileLoading {
let size = session.stream(file_id, 0, 1)
.into_iter()
.iter()
.filter_map(|event| {
match event {
StreamEvent::Header(id, ref data) if id == 0x3 => {