From db2162e1ac9062be2ba3210ac39acd763044182e Mon Sep 17 00:00:00 2001 From: Lorenzo Pistone Date: Thu, 14 Feb 2019 12:10:50 +0100 Subject: [PATCH] fix fetching OGG_VORBIS_96 --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 17c9a62..24166bc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -60,7 +60,7 @@ fn main() { debug!("File formats: {}", track.files.keys().map(|filetype|format!("{:?}", filetype)).collect::>().join(" ")); let file_id = track.files.get(&FileFormat::OGG_VORBIS_320) .or(track.files.get(&FileFormat::OGG_VORBIS_160)) - .or(track.files.get(&FileFormat::OGG_VORBIS_320)) + .or(track.files.get(&FileFormat::OGG_VORBIS_96)) .expect("Could not find a OGG_VORBIS format for the track."); let key = core.run(session.audio_key().request(track.id, *file_id)).expect("Cannot get audio key"); let mut encrypted_file = core.run(AudioFile::open(&session, *file_id)).unwrap();