Compare commits
18 Commits
v0.1.0-dev
...
v0.1.30-de
Author | SHA1 | Date | |
---|---|---|---|
000639b0f8 | |||
2932cdbe1c | |||
f534687292 | |||
c80bc7d7e1 | |||
805dfb269b | |||
43774fe580 | |||
e0e9eab98c | |||
7c1881d102 | |||
a69212adb0 | |||
b7df0a1994 | |||
79a7012a3a | |||
ed0ac3c156 | |||
4a84fa15da | |||
ed9cdf8d7a | |||
84b9cf19b5 | |||
0db41e55b4 | |||
faf06d0d7e | |||
b9da051438 |
@@ -100,5 +100,4 @@ jobs:
|
||||
ssh-keyscan ${{ vars.MYHOST }} >> ~/.ssh/known_hosts
|
||||
eval $(ssh-agent -s)
|
||||
ssh-add -v ~/.ssh/gitlab_deploy_key
|
||||
cargo build --release
|
||||
|
||||
cargo build --release
|
10
Cargo.toml
10
Cargo.toml
@@ -1,8 +1,12 @@
|
||||
[package]
|
||||
name = "icarus_meta"
|
||||
version = "0.1.0"
|
||||
version = "0.1.30"
|
||||
edition = "2024"
|
||||
rust-version = "1.86"
|
||||
|
||||
[dependencies]
|
||||
taglib = { version = "1.0.0" }
|
||||
icarus_models = { git = "ssh://git@git.kundeng.us/phoenix/icarus_models.git", tag = "v0.2.0" }
|
||||
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" }
|
16
src/lib.rs
16
src/lib.rs
@@ -1,14 +1,2 @@
|
||||
pub fn add(left: u64, right: u64) -> u64 {
|
||||
left + right
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn it_works() {
|
||||
let result = add(2, 2);
|
||||
assert_eq!(result, 4);
|
||||
}
|
||||
}
|
||||
pub mod meta;
|
||||
pub mod types;
|
||||
|
1235
src/meta.rs
Normal file
1235
src/meta.rs
Normal file
File diff suppressed because it is too large
Load Diff
30
src/types.rs
Normal file
30
src/types.rs
Normal file
@@ -0,0 +1,30 @@
|
||||
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 |
BIN
tests/sample_tracks3/track01.flac
Normal file
BIN
tests/sample_tracks3/track01.flac
Normal file
Binary file not shown.
BIN
tests/sample_tracks3/track02.flac
Normal file
BIN
tests/sample_tracks3/track02.flac
Normal file
Binary file not shown.
BIN
tests/sample_tracks3/track03.flac
Normal file
BIN
tests/sample_tracks3/track03.flac
Normal file
Binary file not shown.
Reference in New Issue
Block a user