fix: .mp3 override in media extractor
parent
d01868b23e
commit
709fd9eb12
|
@ -4,6 +4,7 @@ use super::Extractor;
|
|||
use crate::{
|
||||
addressing::Address,
|
||||
database::{
|
||||
constants::LABEL_ATTR,
|
||||
entry::{Entry, EntryValue},
|
||||
stores::{fs::FILE_MIME_KEY, UpStore},
|
||||
UpEndConnection,
|
||||
|
@ -84,6 +85,11 @@ impl Extractor for MediaExtractor {
|
|||
return mime.starts_with("audio") || mime.starts_with("video");
|
||||
}
|
||||
}
|
||||
if e.attribute == LABEL_ATTR {
|
||||
if let EntryValue::String(label) = &e.value {
|
||||
return label.ends_with(".ogg") || label.ends_with(".mp3");
|
||||
}
|
||||
}
|
||||
false
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue