Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Album artist variables not being generated [AAV 1.0, Picard 2.12.3, Windows 11] #11

Open
ghost opened this issue Jan 29, 2025 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 29, 2025

Been seeing weird behaviour in my file naming scripts that seems to be chalked down to artist variables not being generated. I was able to verify by using the Show script variables plugin, which shows all variables including hidden variables and those generated by plugins.

(The artist_mbid... plugins are from AAD, which I've disabled. Issue still persists.)

Image

As shown, the track variables are being generated but not the album ones.

Going into the Error Log, I find this:

E: 14:00:27,707 ui/item.error_append:108: <Album 3ac55d04-cb97-4e04-9e80-7639b102c728 ''>: Traceback (most recent call last):
  File "album.py", line 409, in _finalize_loading_track
  File "metadata.py", line 697, in run_track_metadata_processors
  File "plugin.py", line 265, in run
  File "C:\Users\Flaky\AppData\Local\MusicBrainz\Picard\plugins\additional_artists_variables.zip\additional_artists_variables\__init__.py", line 263, in make_track_vars
    process_artists(album_id, track_metadata, album_metadata, 'track')
  File "C:\Users\Flaky\AppData\Local\MusicBrainz\Picard\plugins\additional_artists_variables.zip\additional_artists_variables\__init__.py", line 135, in process_artists
    for item in sorted(sorted(artist_credit['artist'][tag_type], key=itemgetter('name')), key=itemgetter('count'), reverse=True):
KeyError: 'count'
@ghost ghost changed the title Album artist variables not being generated [AAV 1.0, Picard 2.1.23, Windows 11] Album artist variables not being generated [AAV 1.0, Picard 2.12.3, Windows 11] Jan 29, 2025
@rdswift
Copy link
Owner

rdswift commented Jan 29, 2025

It sounds like something is removing the original album metadata before the plugin is run. Can you please try disabling all plugins except for "Addtional Artists Variables" and see if the problem still exists?

Also, can you please provide me with the MBID (or link) to the album that you are loading that doesn't work? I haven't been able to reproduce the error here with any albums that I've tried.

@ghost
Copy link
Author

ghost commented Feb 4, 2025

Sorry for the late response, the album I tried was: https://musicbrainz.org/release-group/efb9bb1e-adc9-492f-b644-bee3701d5cd6

I did try this recently with some of the plugins disabled (Additional Artist Details, Deezer cover art, Feat. Artist in Titles, Standardise Feat.) and it seems to work now (tested on Taylor Swift - The Tortured Poets Department and Talvekoidik - Spitzbergen). I'll see which plugin is causing it soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant