Compare commits

..
Author SHA1 Message Date
phoenix e11ec6ffd0 Bug fix and minor changes release (#28)
Reviewed-on: phoenix/icarus_meta#28
2025-06-24 23:53:20 +00:00
phoenix 2a798dea9c Next release (#14)
Reviewed-on: phoenix/icarus_meta#14
2025-04-19 21:27:21 +00:00
phoenix 5e57b9146c Release (#8)
Reviewed-on: phoenix/icarus_meta#8
2025-04-12 19:32:16 +00:00
phoenix 0dc8c153d2 devel (#3)
Reviewed-on: phoenix/icarus_meta#3
2025-03-30 18:11:03 +00:00
6 changed files with 11 additions and 36 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ jobs:
- name: Install Rust - name: Install Rust
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
toolchain: 1.88.0 toolchain: 1.86.0
components: cargo components: cargo
- name: Extract Version from Cargo.toml - name: Extract Version from Cargo.toml
+5 -5
View File
@@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1 - uses: actions-rust-lang/setup-rust-toolchain@v1
with: with:
toolchain: 1.88.0 toolchain: 1.86.0
- run: | - run: |
mkdir -p ~/.ssh mkdir -p ~/.ssh
echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/gitlab_deploy_key echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/gitlab_deploy_key
@@ -36,7 +36,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1 - uses: actions-rust-lang/setup-rust-toolchain@v1
with: with:
toolchain: 1.88.0 toolchain: 1.86.0
- run: | - run: |
mkdir -p ~/.ssh mkdir -p ~/.ssh
echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/gitlab_deploy_key echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/gitlab_deploy_key
@@ -54,7 +54,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1 - uses: actions-rust-lang/setup-rust-toolchain@v1
with: with:
toolchain: 1.88.0 toolchain: 1.86.0
- run: rustup component add rustfmt - run: rustup component add rustfmt
- run: | - run: |
mkdir -p ~/.ssh mkdir -p ~/.ssh
@@ -73,7 +73,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1 - uses: actions-rust-lang/setup-rust-toolchain@v1
with: with:
toolchain: 1.88.0 toolchain: 1.86.0
- run: rustup component add clippy - run: rustup component add clippy
- run: | - run: |
mkdir -p ~/.ssh mkdir -p ~/.ssh
@@ -92,7 +92,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1 - uses: actions-rust-lang/setup-rust-toolchain@v1
with: with:
toolchain: 1.88.0 toolchain: 1.86.0
- run: | - run: |
mkdir -p ~/.ssh mkdir -p ~/.ssh
echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/gitlab_deploy_key echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/gitlab_deploy_key
Generated
+1 -1
View File
@@ -81,7 +81,7 @@ dependencies = [
[[package]] [[package]]
name = "icarus_meta" name = "icarus_meta"
version = "0.2.2" version = "0.2.0"
dependencies = [ dependencies = [
"lofty", "lofty",
"tempfile", "tempfile",
+2 -2
View File
@@ -1,8 +1,8 @@
[package] [package]
name = "icarus_meta" name = "icarus_meta"
version = "0.2.2" version = "0.2.0"
edition = "2024" edition = "2024"
rust-version = "1.88" rust-version = "1.86"
[dependencies] [dependencies]
lofty = { version = "0.22.3" } lofty = { version = "0.22.3" }
+1 -11
View File
@@ -21,17 +21,7 @@ pub mod coverart {
match lofty::picture::PictureInformation::from_picture(&pic) { match lofty::picture::PictureInformation::from_picture(&pic) {
Ok(info) => { Ok(info) => {
flac_file.set_picture(0, pic.clone(), info); flac_file.set_picture(0, pic.clone(), info);
Ok(pic.into_data())
match flac_file.save_to_path(
song_filepath,
lofty::config::WriteOptions::default(),
) {
Ok(_) => Ok(pic.into_data()),
Err(err) => Err(std::io::Error::new(
std::io::ErrorKind::InvalidData,
err.to_string(),
)),
}
} }
Err(err) => Err(std::io::Error::new( Err(err) => Err(std::io::Error::new(
std::io::ErrorKind::InvalidData, std::io::ErrorKind::InvalidData,
-15
View File
@@ -32,21 +32,6 @@ impl MetadataType {
} }
} }
pub fn all_metadata_types() -> Vec<Type> {
vec![
Type::Album,
Type::Artist,
Type::AlbumArtist,
Type::Date,
Type::Disc,
Type::Genre,
Type::Title,
Type::Track,
Type::TrackCount,
Type::DiscCount,
]
}
pub mod access { pub mod access {
pub fn get_type(t: super::Type) -> Result<String, std::io::Error> { pub fn get_type(t: super::Type) -> Result<String, std::io::Error> {
match t { match t {