mirror of
https://github.com/pisto/oggify
synced 2024-11-24 20:17:29 +00:00
fix fetching OGG_VORBIS_96
This commit is contained in:
parent
b397349f1f
commit
db2162e1ac
@ -60,7 +60,7 @@ fn main() {
|
|||||||
debug!("File formats: {}", track.files.keys().map(|filetype|format!("{:?}", filetype)).collect::<Vec<_>>().join(" "));
|
debug!("File formats: {}", track.files.keys().map(|filetype|format!("{:?}", filetype)).collect::<Vec<_>>().join(" "));
|
||||||
let file_id = track.files.get(&FileFormat::OGG_VORBIS_320)
|
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_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.");
|
.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 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();
|
let mut encrypted_file = core.run(AudioFile::open(&session, *file_id)).unwrap();
|
||||||
|
Loading…
Reference in New Issue
Block a user