From 53b83a809c7d48c938561edc8e92eb8a3f6ff431 Mon Sep 17 00:00:00 2001 From: KD Date: Sat, 1 Feb 2025 21:43:01 -0500 Subject: [PATCH] Changed id field of the Song model (#22) * Changed id field of the Song model * Updated Readme --- README.md | 2 +- src/models/song.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6e9f2c5..c58a73a 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ icarus-dm download -u spacecadet -p stellar40 -h https://icarus.com -b 15 ### Uploading Song with metadata ```BASH -icarus-dm upload-meta -u spacecadet -p stellar40 -h https://icarus.com -s /path/of/song.mp3 -t 1 -m /path/to/metadata/config/collection.json -ca /path/to/cover/art/image.png +icarus-dm upload-meta -u spacecadet -p stellar40 -h https://icarus.com -s /path/of/song.wav -t 1 -m /path/to/metadata/config/collection.json -ca /path/to/cover/art/image.png ``` ### Uploading Song with metadata from directory diff --git a/src/models/song.rs b/src/models/song.rs index 7568e45..1d5d19c 100644 --- a/src/models/song.rs +++ b/src/models/song.rs @@ -7,7 +7,7 @@ use crate::constants; #[derive(Clone, Debug, Deserialize, Serialize)] pub struct Song { - #[serde(alias = "song_id")] + #[serde(alias = "id")] pub id: Option, pub title: Option, pub artist: Option,