Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
Use original release date
Browse files Browse the repository at this point in the history
  • Loading branch information
pborzenkov committed Aug 2, 2022
1 parent 4ad1820 commit 9cf7ea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ where
static FORMATS: &[&str] = &["%Y-%m-%d", "%Y-%m", "%Y"];

pub(crate) fn get_song_year(song: &responses::Song) -> Option<i32> {
let date = get_single_tag::<String>(&song.tags, &Tag::Date)?;
let date = get_single_tag::<String>(&song.tags, &Tag::OriginalDate)?;

FORMATS.iter().find_map(|f| {
let mut parsed = Parsed::new();
Expand Down

0 comments on commit 9cf7ea3

Please sign in to comment.