Skip to content

Commit

Permalink
update tags
Browse files Browse the repository at this point in the history
  • Loading branch information
azuline committed Apr 26, 2024
1 parent a04c068 commit ce6ed18
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions rose/audiotags.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def _get_paired_frame(x: str) -> str | None:
id=_get_tag(m.tags, ["TXXX:ROSEID"], first=True),
release_id=_get_tag(m.tags, ["TXXX:ROSERELEASEID"], first=True),
title=_get_tag(m.tags, ["TIT2"]),
releaseyear=_parse_year(_get_tag(m.tags, ["TDRC", "TYER"])),
releaseyear=_parse_year(_get_tag(m.tags, ["TDRC", "TYER", "TDAT"])),
compositionyear=_parse_year(_get_tag(m.tags, ["TXXX:COMPOSITIONDATE"], first=True)),
tracknumber=tracknumber,
tracktotal=tracktotal,
Expand All @@ -155,7 +155,11 @@ def _get_paired_frame(x: str) -> str | None:
genre=_split_tag(_get_tag(m.tags, ["TCON"], split=True)),
label=_split_tag(_get_tag(m.tags, ["TPUB"], split=True)),
catalognumber=_get_tag(m.tags, ["TXXX:CATALOGNUMBER"], first=True),
releasetype=_normalize_rtype(_get_tag(m.tags, ["TXXX:RELEASETYPE"], first=True)),
releasetype=_normalize_rtype(
_get_tag(
m.tags, ["TXXX:RELEASETYPE", "TXXX:MusicBrainz Album Type"], first=True
)
),
releaseartists=parse_artist_string(main=_get_tag(m.tags, ["TPE2"], split=True)),
trackartists=parse_artist_string(
main=_get_tag(m.tags, ["TPE1"], split=True),
Expand Down Expand Up @@ -194,7 +198,14 @@ def _get_paired_frame(x: str) -> str | None:
label=_split_tag(_get_tag(m.tags, ["----:com.apple.iTunes:LABEL"], split=True)),
catalognumber=_get_tag(m.tags, ["----:com.apple.iTunes:CATALOGNUMBER"]),
releasetype=_normalize_rtype(
_get_tag(m.tags, ["----:com.apple.iTunes:RELEASETYPE"], first=True)
_get_tag(
m.tags,
[
"----:com.apple.iTunes:RELEASETYPE",
"----:com.apple.iTunes:MusicBrainz Album Type",
],
first=True,
)
),
releaseartists=parse_artist_string(main=_get_tag(m.tags, ["aART"], split=True)),
trackartists=parse_artist_string(
Expand Down

0 comments on commit ce6ed18

Please sign in to comment.