Skip to content

Commit

Permalink
Merge pull request #9 from yuygfgg/develop
Browse files Browse the repository at this point in the history
fix scanning error when files do not have date and year tag
  • Loading branch information
yuygfgg authored Sep 12, 2024
2 parents 1d9f527 + d3e5664 commit 3b35590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion music_library/tag_extracter/flac_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def extract(self, file_path):

year = audio.get("date", [None])[0] or audio.get("year", [None])[0]
year = utils.extract_year(year)
date = audio.get("date", year)[0]
date = audio.get("date", [year])[0]
return {
"title": title,
"album": album,
Expand Down

0 comments on commit 3b35590

Please sign in to comment.