Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
ID3 v2.4 Dates
Browse files Browse the repository at this point in the history
  • Loading branch information
Marekkon5 committed Jan 9, 2021
1 parent 4a1dae9 commit 35dd8f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tagger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ fn write_id3_tag(tag: &mut Tag, discogs: &mut Discogs, config: &TaggerConfig, re
if config.label && release.label.is_some() && release.label.as_ref().unwrap().len() > 0 && (config.overwrite || tag.get("TPUB").is_none()) {
tag.set_text("TPUB", release.label.as_ref().unwrap().first().unwrap());
}
if config.date && release.year.is_some() && (config.overwrite || tag.date_released().is_none()) {
if config.date && release.year.is_some() && (config.overwrite || tag.date_recorded().is_none()) {
//Parse date
let mut month = None;
let mut day = None;
Expand All @@ -301,7 +301,7 @@ fn write_id3_tag(tag: &mut Tag, discogs: &mut Discogs, config: &TaggerConfig, re
}
}

tag.set_date_released(Timestamp {
tag.set_date_recorded(Timestamp {
year: release.year.unwrap() as i32,
month: month,
day: day,
Expand Down

0 comments on commit 35dd8f5

Please sign in to comment.