Compare commits
12 Commits
v0.1.0-dev
...
v0.1.30-ma
Author | SHA1 | Date | |
---|---|---|---|
2a798dea9c | |||
000639b0f8 | |||
2932cdbe1c | |||
f534687292 | |||
c80bc7d7e1 | |||
805dfb269b | |||
43774fe580 | |||
e0e9eab98c | |||
7c1881d102 | |||
a69212adb0 | |||
5e57b9146c | |||
0dc8c153d2 |
@@ -1,9 +1,12 @@
|
||||
[package]
|
||||
name = "icarus_meta"
|
||||
version = "0.1.0"
|
||||
version = "0.1.30"
|
||||
edition = "2024"
|
||||
rust-version = "1.86"
|
||||
|
||||
[dependencies]
|
||||
lofty = { version = "0.22.3" }
|
||||
icarus_models = { git = "ssh://git@git.kundeng.us/phoenix/icarus_models.git", tag = "v0.4.3" }
|
||||
|
||||
[dev-dependencies]
|
||||
tempfile = { version = "3.19.1" }
|
1311
src/meta.rs
1311
src/meta.rs
File diff suppressed because it is too large
Load Diff
22
src/types.rs
22
src/types.rs
@@ -2,7 +2,29 @@ pub enum Type {
|
||||
Title,
|
||||
Artist,
|
||||
Album,
|
||||
AlbumArtist,
|
||||
Genre,
|
||||
Date,
|
||||
Track,
|
||||
Disc,
|
||||
TrackCount,
|
||||
DiscCount,
|
||||
}
|
||||
|
||||
pub mod access {
|
||||
|
||||
pub fn get_type(t: super::Type) -> Result<String, std::io::Error> {
|
||||
match t {
|
||||
super::Type::Title => Ok("TITLE".to_owned()),
|
||||
super::Type::Artist => Ok("ARTIST".to_owned()),
|
||||
super::Type::Album => Ok("ALBUM".to_owned()),
|
||||
super::Type::AlbumArtist => Ok("ALBUMARTIST".to_owned()),
|
||||
super::Type::Genre => Ok("GENRE".to_owned()),
|
||||
super::Type::Date => Ok("DATE".to_owned()),
|
||||
super::Type::Track => Ok("TRACKNUMBER".to_owned()),
|
||||
super::Type::Disc => Ok("DISCNUMBER".to_owned()),
|
||||
super::Type::TrackCount => Ok("TRACKCOUNT".to_owned()),
|
||||
super::Type::DiscCount => Ok("DISCCOUNT".to_owned()),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
BIN
tests/sample_tracks3/Sample Tracks 3 - Other one.png
Normal file
BIN
tests/sample_tracks3/Sample Tracks 3 - Other one.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.4 KiB |
BIN
tests/sample_tracks3/Sample Tracks 3.png
Normal file
BIN
tests/sample_tracks3/Sample Tracks 3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 39 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user