fix: extractors no longer crash (error due to refactor)
parent
0ede2af16c
commit
cd008c10e2
|
@ -76,7 +76,7 @@ impl Extractor for ID3Extractor {
|
|||
timestamp: chrono::Utc::now().naive_utc(),
|
||||
},
|
||||
Entry {
|
||||
entity: (format!("ID3_{}", frame.id())).parse()?,
|
||||
entity: Address::Attribute(format!("ID3_{}", frame.id()).parse()?),
|
||||
attribute: ATTR_LABEL.parse().unwrap(),
|
||||
value: format!("ID3: {}", frame.name()).into(),
|
||||
provenance: "SYSTEM EXTRACTOR".to_string(),
|
||||
|
@ -109,7 +109,7 @@ impl Extractor for ID3Extractor {
|
|||
}
|
||||
if has_pictures {
|
||||
result.push(Entry {
|
||||
entity: "ID3_PICTURE".parse()?,
|
||||
entity: Address::Attribute("ID3_PICTURE".parse()?),
|
||||
attribute: ATTR_LABEL.parse().unwrap(),
|
||||
value: "ID3 Embedded Image".into(),
|
||||
provenance: "SYSTEM EXTRACTOR".to_string(),
|
||||
|
|
|
@ -29,7 +29,7 @@ lazy_static! {
|
|||
timestamp: chrono::Utc::now().naive_utc(),
|
||||
};
|
||||
pub static ref DURATION_OF_MEDIA: Entry = Entry {
|
||||
entity: DURATION_KEY.parse().unwrap(),
|
||||
entity: Address::Attribute(DURATION_KEY.parse().unwrap()),
|
||||
attribute: ATTR_OF.parse().unwrap(),
|
||||
value: EntryValue::Address(MEDIA_TYPE_INVARIANT.entity().unwrap()),
|
||||
provenance: "INVARIANT".to_string(),
|
||||
|
|
Loading…
Reference in New Issue