Fix track and disc number

This commit is contained in:
oSumAtrIX 2022-05-31 01:23:08 +02:00
parent cc4256d31e
commit 240bb65fc4
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4
3 changed files with 6 additions and 6 deletions

2
Cargo.lock generated
View file

@ -694,7 +694,7 @@ dependencies = [
[[package]] [[package]]
name = "down_on_spot" name = "down_on_spot"
version = "0.2.1" version = "0.2.2"
dependencies = [ dependencies = [
"aspotify", "aspotify",
"async-std", "async-std",

View file

@ -7,7 +7,7 @@ panic = "abort"
[package] [package]
name = "down_on_spot" name = "down_on_spot"
version = "0.2.1" version = "0.2.2"
edition = "2018" edition = "2018"
authors = ["exttex", "oSumAtrIX"] authors = ["exttex", "oSumAtrIX"]
build = "build.rs" build = "build.rs"
@ -42,4 +42,4 @@ tokio = { version = "1.12", features = ["fs"] }
OriginalFilename = "DownOnSpot.exe" OriginalFilename = "DownOnSpot.exe"
FileDescription = "Download songs from Spotify with Rust" FileDescription = "Download songs from Spotify with Rust"
ProductName = "DownOnSpot" ProductName = "DownOnSpot"
ProductVersion = "0.2.1" ProductVersion = "0.2.2"

View file

@ -1,6 +1,6 @@
use chrono::{Datelike, NaiveDate}; use chrono::{Datelike, NaiveDate};
use id3::frame::{Picture, PictureType, Timestamp}; use id3::frame::{Picture, PictureType, Timestamp};
use id3::{Tag, Version, TagLike}; use id3::{Tag, TagLike, Version};
use std::path::{Path, PathBuf}; use std::path::{Path, PathBuf};
use crate::error::SpotifyError; use crate::error::SpotifyError;
@ -50,8 +50,8 @@ impl super::Tag for ID3Tag {
Field::Title => "TIT2", Field::Title => "TIT2",
Field::Artist => "TPE1", Field::Artist => "TPE1",
Field::Album => "TALB", Field::Album => "TALB",
Field::TrackNumber => "TPOS", Field::TrackNumber => "TRCK",
Field::DiscNumber => "TRCK", Field::DiscNumber => "TPOS",
Field::Genre => "TCON", Field::Genre => "TCON",
Field::Label => "TPUB", Field::Label => "TPUB",
Field::AlbumArtist => "TPE2", Field::AlbumArtist => "TPE2",