diff --git a/Cargo.lock b/Cargo.lock index 7680a41..363c28d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -694,7 +694,7 @@ dependencies = [ [[package]] name = "down_on_spot" -version = "0.2.1" +version = "0.2.2" dependencies = [ "aspotify", "async-std", diff --git a/Cargo.toml b/Cargo.toml index 604bd91..9edb89c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ panic = "abort" [package] name = "down_on_spot" -version = "0.2.1" +version = "0.2.2" edition = "2018" authors = ["exttex", "oSumAtrIX"] build = "build.rs" @@ -42,4 +42,4 @@ tokio = { version = "1.12", features = ["fs"] } OriginalFilename = "DownOnSpot.exe" FileDescription = "Download songs from Spotify with Rust" ProductName = "DownOnSpot" -ProductVersion = "0.2.1" \ No newline at end of file +ProductVersion = "0.2.2" \ No newline at end of file diff --git a/src/tag/id3.rs b/src/tag/id3.rs index 40a7f04..6a436e1 100644 --- a/src/tag/id3.rs +++ b/src/tag/id3.rs @@ -1,6 +1,6 @@ use chrono::{Datelike, NaiveDate}; use id3::frame::{Picture, PictureType, Timestamp}; -use id3::{Tag, Version, TagLike}; +use id3::{Tag, TagLike, Version}; use std::path::{Path, PathBuf}; use crate::error::SpotifyError; @@ -50,8 +50,8 @@ impl super::Tag for ID3Tag { Field::Title => "TIT2", Field::Artist => "TPE1", Field::Album => "TALB", - Field::TrackNumber => "TPOS", - Field::DiscNumber => "TRCK", + Field::TrackNumber => "TRCK", + Field::DiscNumber => "TPOS", Field::Genre => "TCON", Field::Label => "TPUB", Field::AlbumArtist => "TPE2",