Skip to content

Commit

Permalink
Merge pull request #9 from NeatoMonster/add-opus
Browse files Browse the repository at this point in the history
Include Opus files
  • Loading branch information
tranxuanthang authored Jun 6, 2023
2 parents 4fa4a02 + 9dde1b0 commit 7f96bf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-tauri/src/fs_track.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ pub fn load_tracks_from_directories(directories: &Vec<String>) -> Result<Vec<FsT
pub fn get_files_from_directories(directories: &Vec<String>) -> Result<Vec<String>> {
let mut files: Vec<String> = vec![];
for directory in directories.iter() {
let files_in_dir = glob(format!("{}/**/*.{{mp3,m4a,flac,ogg}}", directory))?;
let files_in_dir = glob(format!("{}/**/*.{{mp3,m4a,flac,ogg,opus}}", directory))?;
for file in files_in_dir {
let file = file?;
let path = file.path();
Expand Down

0 comments on commit 7f96bf8

Please sign in to comment.