Compare commits

...

21 Commits

Author SHA1 Message Date
8f55b28fbe Added function to set value for metadata for known types (#29)
All checks were successful
Release Tagging / release (push) Successful in 28s
Rust Build / Check (push) Successful in 28s
Rust Build / Check (pull_request) Successful in 25s
Rust Build / Test Suite (push) Successful in 27s
Rust Build / Rustfmt (push) Successful in 23s
Rust Build / Clippy (push) Successful in 27s
Rust Build / build (push) Successful in 32s
Rust Build / Test Suite (pull_request) Successful in 28s
Rust Build / Rustfmt (pull_request) Successful in 23s
Rust Build / Clippy (pull_request) Successful in 27s
Rust Build / build (pull_request) Successful in 31s
Reviewed-on: #29
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-06-21 20:40:15 +00:00
859003fc65 Set meta bug fix (#27)
All checks were successful
Release Tagging / release (push) Successful in 28s
Rust Build / Check (push) Successful in 27s
Rust Build / Test Suite (push) Successful in 27s
Rust Build / Rustfmt (push) Successful in 24s
Rust Build / Clippy (push) Successful in 27s
Rust Build / build (push) Successful in 34s
Rust Build / Check (pull_request) Successful in 25s
Rust Build / Test Suite (pull_request) Successful in 25s
Rust Build / Rustfmt (pull_request) Successful in 22s
Rust Build / Clippy (pull_request) Successful in 27s
Rust Build / build (pull_request) Successful in 30s
Reviewed-on: #27
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-06-21 01:01:53 +00:00
000639b0f8 added_types (#26)
All checks were successful
Release Tagging / release (push) Successful in 32s
Rust Build / Check (push) Successful in 44s
Rust Build / Test Suite (push) Successful in 59s
Rust Build / Rustfmt (push) Successful in 32s
Rust Build / Clippy (push) Successful in 35s
Rust Build / build (push) Successful in 43s
Rust Build / Check (pull_request) Successful in 23s
Rust Build / Test Suite (pull_request) Successful in 25s
Rust Build / Rustfmt (pull_request) Successful in 21s
Rust Build / Clippy (pull_request) Successful in 26s
Rust Build / build (pull_request) Successful in 29s
Reviewed-on: #26
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-04-19 21:19:01 +00:00
2932cdbe1c Added counts for disc and track (#25)
All checks were successful
Release Tagging / release (push) Successful in 39s
Rust Build / Check (push) Successful in 39s
Rust Build / Check (pull_request) Successful in 30s
Rust Build / Test Suite (push) Successful in 36s
Rust Build / Rustfmt (push) Successful in 35s
Rust Build / Clippy (push) Successful in 36s
Rust Build / build (push) Successful in 41s
Rust Build / Test Suite (pull_request) Successful in 41s
Rust Build / Rustfmt (pull_request) Successful in 28s
Rust Build / Clippy (pull_request) Successful in 33s
Rust Build / build (pull_request) Successful in 43s
Reviewed-on: #25
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-04-19 01:37:16 +00:00
f534687292 refactor (#24)
All checks were successful
Rust Build / Check (push) Successful in 37s
Rust Build / Check (pull_request) Successful in 31s
Release Tagging / release (push) Successful in 41s
Rust Build / Test Suite (push) Successful in 41s
Rust Build / Rustfmt (push) Successful in 31s
Rust Build / Clippy (push) Successful in 38s
Rust Build / build (push) Successful in 42s
Rust Build / Test Suite (pull_request) Successful in 37s
Rust Build / Rustfmt (pull_request) Successful in 33s
Rust Build / Clippy (pull_request) Successful in 33s
Rust Build / build (pull_request) Successful in 43s
Reviewed-on: #24
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-04-19 01:31:57 +00:00
c80bc7d7e1 remove_picture (#23)
All checks were successful
Release Tagging / release (push) Successful in 36s
Rust Build / Check (push) Successful in 42s
Rust Build / Check (pull_request) Successful in 39s
Rust Build / Test Suite (push) Successful in 47s
Rust Build / Rustfmt (push) Successful in 31s
Rust Build / Clippy (push) Successful in 40s
Rust Build / build (push) Successful in 46s
Rust Build / Test Suite (pull_request) Successful in 40s
Rust Build / Rustfmt (pull_request) Successful in 28s
Rust Build / Clippy (pull_request) Successful in 34s
Rust Build / build (pull_request) Successful in 46s
Reviewed-on: #23
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-04-19 01:07:49 +00:00
805dfb269b Contains pictures (#22)
All checks were successful
Release Tagging / release (push) Successful in 38s
Rust Build / Check (push) Successful in 33s
Rust Build / Check (pull_request) Successful in 35s
Rust Build / Test Suite (push) Successful in 43s
Rust Build / Rustfmt (push) Successful in 35s
Rust Build / Clippy (push) Successful in 38s
Rust Build / build (push) Successful in 43s
Rust Build / Test Suite (pull_request) Successful in 33s
Rust Build / Rustfmt (pull_request) Successful in 31s
Rust Build / Clippy (pull_request) Successful in 34s
Rust Build / build (pull_request) Successful in 40s
Reviewed-on: #22
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-04-19 00:52:14 +00:00
43774fe580 Cover art code (#21)
All checks were successful
Release Tagging / release (push) Successful in 38s
Rust Build / Check (push) Successful in 32s
Rust Build / Test Suite (push) Successful in 46s
Rust Build / Rustfmt (push) Successful in 30s
Rust Build / Clippy (push) Successful in 39s
Rust Build / build (push) Successful in 39s
Rust Build / Check (pull_request) Successful in 38s
Rust Build / Test Suite (pull_request) Successful in 49s
Rust Build / Rustfmt (pull_request) Successful in 29s
Rust Build / Clippy (pull_request) Successful in 34s
Rust Build / build (pull_request) Successful in 42s
Reviewed-on: #21
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-04-18 00:37:42 +00:00
e0e9eab98c Update sample tracks with cover art (#20)
All checks were successful
Release Tagging / release (push) Successful in 47s
Rust Build / Check (push) Successful in 43s
Rust Build / Test Suite (push) Successful in 41s
Rust Build / Rustfmt (push) Successful in 36s
Rust Build / Clippy (push) Successful in 40s
Rust Build / build (push) Successful in 42s
Rust Build / Check (pull_request) Successful in 41s
Rust Build / Test Suite (pull_request) Successful in 42s
Rust Build / Rustfmt (pull_request) Successful in 29s
Rust Build / Clippy (pull_request) Successful in 41s
Rust Build / build (pull_request) Successful in 54s
Reviewed-on: #20
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-04-16 23:34:54 +00:00
7c1881d102 Set Meta (#19)
All checks were successful
Release Tagging / release (push) Successful in 44s
Rust Build / Check (push) Successful in 40s
Rust Build / Test Suite (push) Successful in 40s
Rust Build / Rustfmt (push) Successful in 28s
Rust Build / Clippy (push) Successful in 37s
Rust Build / build (push) Successful in 37s
Rust Build / Check (pull_request) Successful in 55s
Rust Build / Test Suite (pull_request) Successful in 1m14s
Rust Build / Rustfmt (pull_request) Successful in 32s
Rust Build / Clippy (pull_request) Successful in 53s
Rust Build / build (pull_request) Successful in 1m27s
Reviewed-on: #19
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-04-16 02:25:12 +00:00
a69212adb0 Added more fields (#18)
All checks were successful
Release Tagging / release (push) Successful in 40s
Rust Build / Check (push) Successful in 37s
Rust Build / Test Suite (push) Successful in 35s
Rust Build / Rustfmt (push) Successful in 29s
Rust Build / Clippy (push) Successful in 32s
Rust Build / build (push) Successful in 43s
Rust Build / Check (pull_request) Successful in 33s
Rust Build / Test Suite (pull_request) Successful in 39s
Rust Build / Rustfmt (pull_request) Successful in 27s
Rust Build / Clippy (pull_request) Successful in 33s
Rust Build / build (pull_request) Successful in 37s
Reviewed-on: #18
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-04-15 00:49:50 +00:00
b7df0a1994 Code reorganizing (#17)
All checks were successful
Rust Build / Check (push) Successful in 36s
Rust Build / Test Suite (push) Successful in 39s
Rust Build / Rustfmt (push) Successful in 32s
Rust Build / Clippy (push) Successful in 38s
Rust Build / build (push) Successful in 41s
Release Tagging / release (push) Successful in 40s
Rust Build / Check (pull_request) Successful in 47s
Rust Build / Test Suite (pull_request) Successful in 49s
Rust Build / Rustfmt (pull_request) Successful in 31s
Rust Build / Clippy (pull_request) Successful in 40s
Rust Build / build (pull_request) Successful in 42s
Reviewed-on: #17
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-04-13 20:30:10 +00:00
79a7012a3a Code refactor (#16)
All checks were successful
Rust Build / Check (push) Successful in 39s
Rust Build / Check (pull_request) Successful in 31s
Rust Build / build (push) Successful in 42s
Rust Build / Test Suite (pull_request) Successful in 36s
Rust Build / Rustfmt (pull_request) Successful in 30s
Rust Build / Clippy (pull_request) Successful in 40s
Rust Build / build (pull_request) Successful in 41s
Release Tagging / release (push) Successful in 44s
Rust Build / Test Suite (push) Successful in 35s
Rust Build / Rustfmt (push) Successful in 30s
Rust Build / Clippy (push) Successful in 33s
Reviewed-on: #16
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-04-13 19:44:56 +00:00
ed0ac3c156 Expanding tests (#15)
All checks were successful
Release Tagging / release (push) Successful in 37s
Rust Build / Check (push) Successful in 33s
Rust Build / Check (pull_request) Successful in 35s
Rust Build / Test Suite (push) Successful in 41s
Rust Build / Rustfmt (push) Successful in 31s
Rust Build / Clippy (push) Successful in 43s
Rust Build / build (push) Successful in 41s
Rust Build / Test Suite (pull_request) Successful in 34s
Rust Build / Rustfmt (pull_request) Successful in 33s
Rust Build / Clippy (pull_request) Successful in 33s
Rust Build / build (pull_request) Successful in 40s
Reviewed-on: #15
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-04-13 19:25:51 +00:00
4a84fa15da Dependency switch (#13)
All checks were successful
Release Tagging / release (push) Successful in 47s
Rust Build / Check (push) Successful in 35s
Rust Build / Test Suite (push) Successful in 37s
Rust Build / Rustfmt (push) Successful in 34s
Rust Build / Clippy (push) Successful in 41s
Rust Build / build (push) Successful in 39s
Rust Build / Check (pull_request) Successful in 38s
Rust Build / Test Suite (pull_request) Successful in 37s
Rust Build / Rustfmt (pull_request) Successful in 32s
Rust Build / Clippy (pull_request) Successful in 38s
Rust Build / build (pull_request) Successful in 39s
Reviewed-on: #13
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-04-12 19:21:56 +00:00
ed9cdf8d7a workflow_fix (#12)
Some checks failed
Release Tagging / release (push) Successful in 44s
Rust Build / Check (push) Failing after 40s
Rust Build / Check (pull_request) Failing after 33s
Rust Build / Test Suite (push) Failing after 41s
Rust Build / Rustfmt (push) Successful in 31s
Rust Build / Clippy (push) Failing after 42s
Rust Build / build (push) Failing after 38s
Rust Build / Test Suite (pull_request) Failing after 39s
Rust Build / Rustfmt (pull_request) Successful in 38s
Rust Build / Clippy (pull_request) Failing after 45s
Rust Build / build (pull_request) Failing after 44s
Reviewed-on: #12
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-04-12 18:37:00 +00:00
84b9cf19b5 Added code to get tag info (#10)
Some checks failed
Release Tagging / release (push) Successful in 38s
Rust Build / Test Suite (push) Failing after 45s
Rust Build / Rustfmt (push) Successful in 37s
Rust Build / Test Suite (pull_request) Failing after 49s
Rust Build / install_dependencies (push) Successful in 19s
Rust Build / Check (push) Failing after 40s
Rust Build / Clippy (push) Failing after 42s
Rust Build / build (push) Failing after 41s
Rust Build / install_dependencies (pull_request) Successful in 21s
Rust Build / Check (pull_request) Failing after 46s
Rust Build / Rustfmt (pull_request) Successful in 36s
Rust Build / Clippy (pull_request) Failing after 45s
Rust Build / build (pull_request) Failing after 41s
Reviewed-on: #10
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-04-12 17:52:52 +00:00
0db41e55b4 Minimum rust version (#11)
All checks were successful
Release Tagging / release (push) Successful in 43s
Rust Build / Check (pull_request) Successful in 38s
Rust Build / Test Suite (pull_request) Successful in 43s
Rust Build / Rustfmt (pull_request) Successful in 30s
Rust Build / Clippy (pull_request) Successful in 43s
Rust Build / build (pull_request) Successful in 37s
Rust Build / Check (push) Successful in 31s
Rust Build / Test Suite (push) Successful in 39s
Rust Build / Rustfmt (push) Successful in 29s
Rust Build / Clippy (push) Successful in 40s
Rust Build / build (push) Successful in 31s
Reviewed-on: #11
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-04-12 17:31:15 +00:00
faf06d0d7e Icarus-models update (#9)
All checks were successful
Release Tagging / release (push) Successful in 34s
Rust Build / Check (push) Successful in 34s
Rust Build / build (pull_request) Successful in 31s
Rust Build / Rustfmt (push) Successful in 32s
Rust Build / Clippy (push) Successful in 31s
Rust Build / build (push) Successful in 29s
Rust Build / Check (pull_request) Successful in 28s
Rust Build / Test Suite (pull_request) Successful in 36s
Rust Build / Rustfmt (pull_request) Successful in 30s
Rust Build / Clippy (pull_request) Successful in 38s
Rust Build / Test Suite (push) Successful in 30s
Reviewed-on: #9
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-04-12 02:33:31 +00:00
b9da051438 test_files (#6)
All checks were successful
Release Tagging / release (push) Successful in 40s
Rust Build / Check (pull_request) Successful in 30s
Rust Build / Test Suite (pull_request) Successful in 32s
Rust Build / Rustfmt (pull_request) Successful in 32s
Rust Build / Clippy (pull_request) Successful in 36s
Rust Build / build (pull_request) Successful in 34s
Rust Build / Check (push) Successful in 30s
Rust Build / Test Suite (push) Successful in 40s
Rust Build / Rustfmt (push) Successful in 29s
Rust Build / Clippy (push) Successful in 41s
Rust Build / build (push) Successful in 42s
Reviewed-on: #6
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-04-12 02:21:15 +00:00
e5618fcd18 Workflow changes (#7)
All checks were successful
Release Tagging / release (push) Successful in 39s
Rust Build / Check (pull_request) Successful in 38s
Rust Build / Test Suite (pull_request) Successful in 33s
Rust Build / Rustfmt (pull_request) Successful in 36s
Rust Build / Clippy (pull_request) Successful in 33s
Rust Build / build (pull_request) Successful in 38s
Rust Build / Check (push) Successful in 30s
Rust Build / Test Suite (push) Successful in 33s
Rust Build / Rustfmt (push) Successful in 38s
Rust Build / Clippy (push) Successful in 34s
Rust Build / build (push) Successful in 38s
Reviewed-on: #7
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-04-12 02:16:33 +00:00
11 changed files with 1327 additions and 27 deletions

View File

@@ -5,8 +5,6 @@ on:
branches:
- main
- devel
tags:
- 'v*' # Trigger on tags matching v*
jobs:
release:
@@ -20,7 +18,7 @@ jobs:
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.85.0
toolchain: 1.86.0
components: cargo
- name: Extract Version from Cargo.toml

View File

@@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.85.0
toolchain: 1.86.0
- run: |
mkdir -p ~/.ssh
echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/gitlab_deploy_key
@@ -36,7 +36,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.85.0
toolchain: 1.86.0
- run: |
mkdir -p ~/.ssh
echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/gitlab_deploy_key
@@ -54,7 +54,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.85.0
toolchain: 1.86.0
- run: rustup component add rustfmt
- run: |
mkdir -p ~/.ssh
@@ -73,7 +73,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.85.0
toolchain: 1.86.0
- run: rustup component add clippy
- run: |
mkdir -p ~/.ssh
@@ -92,7 +92,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.85.0
toolchain: 1.86.0
- run: |
mkdir -p ~/.ssh
echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/gitlab_deploy_key
@@ -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

View File

@@ -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" }

View File

@@ -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;

1261
src/meta.rs Normal file

File diff suppressed because it is too large Load Diff

50
src/types.rs Normal file
View File

@@ -0,0 +1,50 @@
// TODO: Have this derive Debug
pub enum Type {
Title,
Artist,
Album,
AlbumArtist,
Genre,
Date,
Track,
Disc,
TrackCount,
DiscCount,
}
#[derive(Debug)]
pub enum MetadataType {
String(String),
Int(i32),
}
impl MetadataType {
pub fn from_std_str(s: &str) -> Self {
MetadataType::String(s.to_string())
}
pub fn from_string(s: String) -> Self {
MetadataType::String(s)
}
pub fn from_int(i: i32) -> Self {
MetadataType::Int(i)
}
}
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()),
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.