Fix track and disc number
This commit is contained in:
parent
cc4256d31e
commit
240bb65fc4
3 changed files with 6 additions and 6 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
|
@ -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",
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue