aboutsummaryrefslogtreecommitdiffstats
path: root/src/database.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/database.rs')
-rw-r--r--src/database.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/database.rs b/src/database.rs
index 9d1d5f2..b7b8e88 100644
--- a/src/database.rs
+++ b/src/database.rs
@@ -220,7 +220,7 @@ impl Database {
220 } 220 }
221} 221}
222 222
223fn is_audio_file(path: &Path) -> bool { 223pub fn is_audio_file(path: &Path) -> bool {
224 path.extension() 224 path.extension()
225 .and_then(|ext| ext.to_str()) 225 .and_then(|ext| ext.to_str())
226 .map(|ext| { 226 .map(|ext| {
@@ -232,7 +232,7 @@ fn is_audio_file(path: &Path) -> bool {
232 .unwrap_or(false) 232 .unwrap_or(false)
233} 233}
234 234
235fn extract_metadata(path: &Path) -> (String, String, String, Option<i32>, Option<u64>) { 235pub fn extract_metadata(path: &Path) -> (String, String, String, Option<i32>, Option<u64>) {
236 let file_stem = path 236 let file_stem = path
237 .file_stem() 237 .file_stem()
238 .and_then(|s| s.to_str()) 238 .and_then(|s| s.to_str())