beets
beets copied to clipboard
Beets not updating certain tracks with `albumartists` (and other multi-tag fields)
Problem
Hello again 👋
I'm on latest master, and recently imported this album. However, I noticed there aren't any multi-tags like albumartists
on it. When I try to explicitly update them, it does not seem to do anything.
beet info artist:Plini album:Mirage track:1
/tagged/Plini/[2023] Mirage/01 - The Red Fox.mp3
acoustid_fingerprint: AQADtFESKUmUKUmSCE30HOfRxIIeMcfWEQ9hXsdPwJJz_ISOG9WPqjDRQ1eIVkL-wppxwR964rkQ3lgNk4GOu8NjEscWoedT9IEWa2HwoXyaESJx_dheD30Ibc_g6yjfI_xhZsd2HPmS4_B36Jfww9N4_MePn_hItDs0N4ezoT_6wzoevDj8Q7_x4xpMTkeOkxf-wnuIR0f6i8MD7UWeMXiPyg_CaNCV40e-3fhwbchR34KWMUOu_LjRSx9sHfXRnBp6BT8wZeRBdcQV4UgvQU3YEjFPmJKKHQd8Hklujkj9ob4s_GiSB8wn5JF66MnmBmEy5ph29FkupIce8XgyIa2N6UyMH01X8AsaT8eOH8_yDNUJi5mKPsdJHeGPLc4LceGDUtKJ7IRVBqMq44n0Es2JO8ePP-ja4x0q8UQu4dBeBzl1XF2M5kQV7kGfrUGDJ9ORFxqPbdnRLwePJ_2gPJGO2HrwB32yo_-Q6wr6PISWDvma4T9u9HuxD7UJ_qi-CGNa_HiE9BXqTMeTHf-LfgkJLQf-FnrOIMzxR-iq4znmgNMvYx-JvkcYK9BbEuHh58F--Dw4lSs2TTzep3BFHn1xfLiy4xMeHb8enOnQC0354QpxKkt4PD1848uOnT9OMPnRH3tW_Boqwi5ywQuh6Sh8Mzhzw0vUo8uD-3iOKVWUbigjTBSmPMNL4acgJlP04Bci5yiXw8dxB-9yIm74QxxzBk94wXF2_MI7uNvx7MG8wB-0j7j4HBeaHKXxD8xx_Dh8HHvQF7H64xdK2fAzoj8uV2j9w9aHPsZpkTgaTUdP4jo-9JvQvLgQnsc_iB_SyTjwCH234Thv9MOVDsWH6ti6E66I4-aF1O7RE_iJY1oJ8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CACEmIkEIJAYzASlCBlBXCIAOJsMwwIAAwUCBCCHEEIgA4MEIRKkhBxCDDEIIEACFBMZJ44hpBBDlBlDCMA0AQ0iAJIJgQQikCFAAYMFagENIKyoBxEBCAAQAAmqAwkEAoQoQWCCGgjBJOECEFFUA4YJBSiAigFEMADIcEQhoJhIBwxBnpgDFSAGEMI0ARB4yhBCmDBDPGGQYEIQI5QIQhCgnjBAIOAEKEQAAaAwCCiBiGkEAMgkQJMIY7QIywggCgABAAASIdRUJARohgAgiHjEAAOQOoQooYRJwEQAjBkBIuKAksYogSYghigADBkEcETDMAYAoRKpiAyjjgAAAQIEmkRk4IaAhBQmpgiGAGIYeMIEAIRIRlCAgiAEAAEIUAABIQAxgVjgEFqACAKYQAoQ4Aw4QByAAAhBHACUApEVQCIgAighhACCAGiYWUssAIgIwwxgBHAGTMACMkEMYwASgSUAAhAQIBCIWUUAAIAQ
acoustid_id: 52fc8350-7a31-4bca-a8c0-bb120bb637b2
album: Mirage
albumartist: Plini
albumartist_credit: Plini
albumartist_sort: Plini
albumstatus: Official
albumtype: [
albumtypes: [; '; e; '; ,; ; '; p; '; ]
arranger:
art: True
artist: Plini
artist_credit: Plini
artist_sort: Plini
bitdepth: 0
bitrate: 320000
bitrate_mode: CBR
bpm: 0
channels: 2
comp: False
country: XW
date: 2023-12-01
day: 1
disc: 1
disctotal: 1
encoder_info:
encoder_settings:
format: MP3
genre: Unset
genres: Unset
isrc: AUGBT2344515
language: eng
languages: eng
length: 397.032
lyrics:
mb_albumartistid: 3f6c0aa1-a7a9-4ff2-9c50-e84d4b0de178
mb_albumartistids: 3f6c0aa1-a7a9-4ff2-9c50-e84d4b0de178
mb_albumid: 27ee6d3c-54c1-4c94-b6f3-e19d45a4b93f
mb_artistid: 3f6c0aa1-a7a9-4ff2-9c50-e84d4b0de178
mb_artistids: 3f6c0aa1-a7a9-4ff2-9c50-e84d4b0de178
mb_releasegroupid: e98f1b1c-4f85-4cb8-9d70-1fa117c31ef3
mb_releasetrackid: fda2811d-515e-4965-bfb7-69bc9be88f29
mb_trackid: 3f02a861-cd61-4185-a9ec-ea276603a305
media: Digital Media
month: 12
original_date: 2023-12-01
original_day: 1
original_month: 12
original_year: 2023
rg_album_gain: -8.34
rg_album_peak: 0.988553
rg_track_gain: -8.4
rg_track_peak: 0.977237
samplerate: 48000
script: Latn
title: The Red Fox
track: 1
tracktotal: 5
year: 2023
Though it does populate the multi-tag fields mb_albumartistids
🤔
Sanity check that I'm on latest master w/multi tags:
beet fields | grep albumartists
albumartists
albumartists_credit
albumartists_sort
albumartists
albumartists_credit
albumartists_sort
When I try to update:
beet update -p artist:Plini album:Mirage track:1 # returns nothing
Setup
- OS: Alpine Linux
- Python version: 3.11
- beets version: Latest master
- Turning off plugins made problem go away (yes/no): no
My configuration (output of beet config
) is:
plugins: deezer mbsync inline fetchart convert scrub replaygain chroma permissions info web
directory: /tagged
library: /config/musiclibrary.blb
art_filename: folder
threaded: yes
original_date: yes
per_disc_numbering: yes
deezer:
source_weight: 0.0
match:
strong_rec_thresh: 0.10
ignored: missing_tracks unmatched_tracks
convert:
auto: yes
ffmpeg: /usr/bin/ffmpeg
opts: -ab 320k -ac 2 -ar 48000
max_bitrate: 320
threads: 1
quiet: yes
never_convert_lossy_files: yes
embed: no
delete_originals: yes
#tmpdir: /downloads/.tmp/
item_fields:
multidisc: 1 if disctotal > 1 else 0
paths:
default: $albumartist/[$original_year] $album%aunique{}/%if{$multidisc,$disc-}$track - $title
singleton: Non-Album/$artist - $title
comp: Various Artists/[$original_year] $album%aunique{}/%if{$multidisc,$disc-}$track - $title
albumtype_soundtrack: Soundtracks/[$original_year] $album%aunique{}/%if{$multidisc,$disc-}$track - $title
import:
write: yes
copy: no
move: yes
resume: ask
incremental: yes
quiet_fallback: skip
timid: no
log: /config/beet.log
set_fields:
genre: "Unset"
musicbrainz:
extra_tags: [year, originalyear, catalognum, country, media, label]
fetchart:
auto: yes
cover_names: cover front art album folder
enforce_ratio: yes
sources:
- coverart
- itunes
- amazon
- albumart
- fanarttv
- wikipedia
- filesystem
replaygain:
auto: yes
backend: ffmpeg
overwrite: yes
scrub:
auto: yes
permissions:
file: 664
dir: 775
replace:
'^\.': _
'[\x00-\x1f]': _
'[<>:"\?\*\|]': _
'[\xE8-\xEB]': e
'[\xEC-\xEF]': i
'[\xE2-\xE6]': a
'[\xF2-\xF6]': o
'[\xF8]': o
'\.$': _
'\s+$': ''
clutter:
- "*.png"
- "*.jpg"
- "*.nfo"
- "*.txt"
- "Thumbs.DB"
- ".DS_Store"
pluginpath:
- /config/beets/beetsplug
Okay I think I found the root-cause - when I removed deezer
, everything seemed to work as expected. I think what happened was deezer took priority in fetching/writing tags, and did not fetch any albumartists since that is only a musicbrainz thing.
@JOJ0 I think we still have a problem getting Musicbrainz
data if you look at the beet info
output above for the 2 fields albumtype
and albumtypes
I would like to add, that I also see the problem with the strange albumtypes. When I execute a beet update -p
basically all tracks would be changed to something like this:
[...]
ARTIST - ALBUM - TRACK
albumtypes: album -> ['a', 'l', 'b', 'u', 'm']
albumtype: album -> a
[...]
ARTIST - ALBUM - TRACK
albumtypes: album; soundtrack -> ['a', 'l', 'b', 'u', 'm', ';', ' ', 's', 'o', 'u', 'n', 'd', 't', 'r', 'a', 'c', 'k']
albumtype: soundtrack -> a
[...]
ARTIST - ALBUM - TRACK (live)
albumtypes: album; live -> ['a', 'l', 'b', 'u', 'm', ';', ' ', 'l', 'i', 'v', 'e']
albumtype: live -> a
[...]
@mbrandis Your issue has been fixed already in #4582., please head over to https://github.com/beetbox/beets/issues/4715#issue-1628853120 to read all the details about what possibly remains to be fixed in your library. Please update to latest git and then post if you still have problems over there. Thank you.
Thank you for the hint. I didn't found these issues. I use the current version of beets from Debian unstable (1.6.0-7) and I couldn't find out if this version already had the fix. So I tested beet mbsync
and magically everything fixed itself. :-) Thank you!
I am on 1.6.0 on ubuntu, installed via pip, but I am still facing this issue. beet update
, beet mbsync
and beet write
says it writes updated tags to flac-files, but checking with metaflac --list
still shows multiple tags for RELEASETYPE
and MUSICBRAINZ_ALBUMTYPE
:
comment[11]: RELEASETYPE=a
comment[12]: RELEASETYPE=l
comment[13]: RELEASETYPE=b
comment[14]: RELEASETYPE=u
comment[15]: RELEASETYPE=m
comment[16]: MUSICBRAINZ_ALBUMTYPE=a
comment[17]: MUSICBRAINZ_ALBUMTYPE=l
comment[18]: MUSICBRAINZ_ALBUMTYPE=b
comment[19]: MUSICBRAINZ_ALBUMTYPE=u
comment[20]: MUSICBRAINZ_ALBUMTYPE=m
Beets itself however seems to be using the correct tags:
beet list -f '$albumtype $albumtypes' path:/media/downloads
album album
album album
album album
album album
album album
album album
album album
album album
album album
album album
album album
How should I go forward?
@petwri https://github.com/beetbox/beets/issues/5059#issuecomment-1886696153
in short: install git master and read above to fix your library. HTH :-)