Pseudo releases vs recording aliases

Is it still, or was it ever, the position of Style that digital releases with different language/script should be separate MB Releases, even if it’s the same product on the same platform?

e.g.,

  1. Japanese/Latin: ‎Jikan Yo Tomare (feat. Seamo) - EP - Album by Azu - Apple Music
  2. Japanese/Japanese: ‎時間よ止まれ (feat. SEAMO) - EP - AZUのアルバム - Apple Music

It is the same Apple ID 1536032334, but the release title and track titles differ. (The artist credits violate Japanese and Artist Intent and would both be normalized to the same value in MusicBrainz.)

If so, it has obvious consequences:

  1. Releases from Japan with Japanese text generally won’t ever be “[Worldwide]” or have ~200 countries on them.
  2. Harmony doesn’t handle this “correctly” at all.
1 Like

Since Picard 3 uses aliases for localization, it can now be one release I guess (otherwise, whats the point of that feature).

(Pseudo-)Releases are still needed:

3 Likes

Not necesserally, but they very well may match (this case might be it). In this case, aliases could be set on artist, release and recordings. Picard would tag based on local setting.

The whole pseudo release thing has been the single most frustrating thing for me on Musicbrainz. A few editors have been frustrated with me adding transliterated releases as official instead of pseudo or If i did add it as a pseudo, it would end have all the additional metadata from the official like Cover art, barcode, date, external links, etc which is against the guidelines cause it’s redundant to the orginal release, and that makes sense.

The reason I did this was for so long was cause of how badly transliterated tracklists are treated by Picard. If i choose to tag my files with the pseudo release I’m giving up so much metadata just because I want my tracklist in a script I actually can read. I don’t understand how there is a release relationship were you can link a pseudo release with the original release and Picard can’t even take advantage of that? What’s even the point of that relationship if Picard can’t copy the metadata from the original release on to the selected pseudo release.

I heard Picard 3 is somewhat taking care of this, but if it’s using aliases that brings it’s own flaws. Aliasas for localization already works great for artist names. Even adding it for release groups and releases are good too but recordings is were it’s a bit of a issue. Not only because adding it for every track in a release will be tedious (although there is a userscript for this so maybe not so bad) but how do you choose between a transliterated or translated title? A lot of artist already provide their version of the latin script so most of of the time it should be fine. But what if they don’t provide a latin script? then it’s up to the Musicbrainz editor to choose to add either transliterated or translated. Which is very subjective and I don’t think aliases can even distinguish if something is transliterated or translated, you only get to choose the locale.

This is where being able to choose a pseudo release from Picard is better cause you get to choose if you want the Translated or Transliterated version. By default Picard should copy over the missing metadata from a pseudo release that already exists on the original release. This would validate adding the transliterated/translated link but Picard doesn’t even use it.

Because this issue still exists, I took it on myself to make my own plugin, so that when you choose the original release that uses the original script and once it’s added to the music files, the plugin allows you paste the URL of the pseudo release at which it will use the Tracklist, Album name, and Artist name from the Pseudo release and overwrite it on top. This way I get all the metadata from the original release while getting my prefered tracklist from the Psuedo release.

8 Likes

Track titles on specific releases can differ. There is no relationship between a recording alias and a specific track on a specific medium on a specific release. (And as previously mentioned, there are no aliases for artist credits (specifiacally, join phrases).)

Worse, there is no concept of transliterations in aliases, because that’s not what aliases are for. See track 1 on Release “Soubi Kakei” by ALI PROJECT - MusicBrainz - it is not possible to store it as a recording alias.

2 Likes

Why not share the plugin, or get it into Picard itself?

1 Like

They can, but they don’t in a way that matters. The track name variations are usually in suffixes, prefixes and ETI. They differ 100% with pseudo releases mapped to originals.

And as previously mentioned, there are no aliases for artist credits (specifiacally, join phrases)

This is IMO a minor issue as translated artist alias still holds a value (although not perfect).

The plugin allows you paste the URL of the pseudo release at which it will use the Tracklist, Album name, and Artist name from the Pseudo release and overwrite it on top

Or you could just take it by the language of Pseudo release. The problem with pseudo releases is that they don’t scale, e.g. you will have 100 pseudos for 100 languages which will bring a lot of unecessary noise to the release group.

Some examples of track titles that don’t work if you try to eliminate the MB Medium in favor of the MB Recording Alias:

Track titles are here to stay, they can’t be eliminated by recording aliases.

If it doesn’t work, you don’t use it for that release. Nobody is eliminating anything. Or you argue that Picards new feature should be removed ?

I’m not really sure how to properly publish the plugin like it would mean making a github page and maintaining it and it’s too many things to think about so i just kept to myself cause it did the job for me and I didn’t think people would be interested all that much.

I also wanted to improve it more since it still requires you to copy paste the release url manually from a browser instead of just giving you options within Picard itself. Not to mention it probably won’t work Picard 3. Also the whole thing is vibe coded by Gemini since I’m not an expert on making these kind of things.

But for now the best I can do is just paste the whole thing from the .py file called “latin_pseudo_overlay.py”. Maybe someone can turn this into a real plugin or actually implement it in Picard for real.

import re
import traceback
from functools import partial

try:
    from PyQt5.QtWidgets import QInputDialog, QMessageBox
except ImportError:
    try:
        from PyQt6.QtWidgets import QInputDialog, QMessageBox
    except ImportError:
        from picard.ui.compat import QInputDialog, QMessageBox

from picard.album import Album
from picard.track import Track
from picard.ui.itemviews import (
    BaseAction,
    register_album_action,
    register_track_action,
)

PLUGIN_NAME = "Latin Pseudo-Release Overlay"
PLUGIN_AUTHOR = "Custom"
PLUGIN_DESCRIPTION = (
    "Prompts for a MusicBrainz Pseudo-Release URL or MBID and overlays Latin script "
    "album title, artist names, and track titles onto an official release while "
    "preserving all official metadata (dates, country, cover art, streaming links, MBIDs)."
)
PLUGIN_VERSION = "1.5"
PLUGIN_API_VERSIONS = [
    "2.0", "2.1", "2.2", "2.3", "2.4", "2.5", "2.6", "2.7", "2.8", "2.9",
    "2.10", "2.11", "2.12", "2.13", "3.0"
]
PLUGIN_LICENSE = "GPL-2.0-or-later"


def parse_artist_credit(artist_credit_data):
    """
    Parses a MusicBrainz artist-credit list structure into:
      - Formatted artist string with join phrases (e.g., 'Artist A feat. Artist B')
      - Formatted artist sort string with join phrases
      - List of individual credited artist names
    """
    if not artist_credit_data:
        return "", "", []

    credit_parts = []
    sort_parts = []
    artist_names = []

    for item in artist_credit_data:
        if isinstance(item, dict):
            name = item.get("name")
            artist_obj = item.get("artist", {})
            if not name:
                name = artist_obj.get("name", "")
            sort_name = artist_obj.get("sort-name") or name
            join_phrase = item.get("joinphrase", "")

            if name:
                artist_names.append(name)
                credit_parts.append(name + join_phrase)
                sort_parts.append(sort_name + join_phrase)
        elif isinstance(item, str):
            artist_names.append(item)
            credit_parts.append(item)
            sort_parts.append(item)

    return "".join(credit_parts), "".join(sort_parts), artist_names


def update_metadata_dict(metadata_obj, key, value):
    """Safely updates a Picard Metadata object or dictionary."""
    if metadata_obj is not None and value:
        metadata_obj[key] = value


class LatinPseudoOverlayAction(BaseAction):
    NAME = "Apply Latin pseudo overlay..."

    def callback(self, objs):
        if not objs:
            return

        # 1. Pop up input dialog window
        text, ok = QInputDialog.getText(
            self.tagger.window,
            "Latin Pseudo-Release Overlay",
            "Paste the MusicBrainz Pseudo-Release URL or MBID:"
        )

        if not ok or not text.strip():
            return

        # 2. Extract 36-character MBID from input
        mbid_match = re.search(
            r'[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}',
            text.strip(),
            re.I
        )
        if not mbid_match:
            QMessageBox.warning(
                self.tagger.window,
                "Invalid Input",
                "Could not find a valid MusicBrainz Release ID (MBID) in the provided text."
            )
            return

        release_id = mbid_match.group(0)

        # 3. Fetch pseudo-release metadata via Picard's MusicBrainz API
        callback_handler = partial(self._on_release_fetched, target_objs=objs)
        self.tagger.mb_api.get_release_by_id(
            release_id,
            callback_handler,
            inc=['release-groups', 'media', 'recordings', 'artists', 'artist-credits']
        )

    def _on_release_fetched(self, document, http, error, target_objs=None):
        try:
            if error or not document:
                QMessageBox.warning(
                    self.tagger.window,
                    "Fetch Error",
                    f"Failed to retrieve pseudo-release metadata from MusicBrainz.\n\nError: {error or 'Empty response'}"
                )
                return

            # Handle direct dictionary vs nested release key
            if isinstance(document, dict) and 'release' in document:
                release = document['release']
            elif isinstance(document, dict):
                release = document
            else:
                QMessageBox.warning(
                    self.tagger.window,
                    "Fetch Error",
                    "Unexpected metadata format received from MusicBrainz."
                )
                return

            pseudo_album_title = release.get('title', '')
            pseudo_album_artist, pseudo_album_artistsort, pseudo_album_artists = parse_artist_credit(
                release.get('artist-credit', [])
            )

            # Build medium & track lookups from pseudo-release
            # 1) By (disc_number, track_number)
            # 2) Flat sequential list as fallback
            pseudo_tracks_by_pos = {}
            pseudo_tracks_flat = []

            for med_idx, medium in enumerate(release.get('media', []), start=1):
                med_pos = medium.get('position', med_idx)
                for trk_idx, trk in enumerate(medium.get('tracks', []), start=1):
                    trk_pos = trk.get('position', trk_idx)
                    pseudo_tracks_by_pos[(med_pos, trk_pos)] = trk
                    pseudo_tracks_flat.append(trk)

            if not target_objs:
                target_objs = []

            # Group target items into albums & individual tracks
            albums_to_update = set()
            tracks_to_process = []

            for obj in target_objs:
                if isinstance(obj, Album):
                    albums_to_update.add(obj)
                    album_tracks = getattr(obj, 'tracks', [])
                    for trk_obj in album_tracks:
                        tracks_to_process.append((obj, trk_obj))
                elif isinstance(obj, Track):
                    parent_album = getattr(obj, 'album', None)
                    if parent_album and isinstance(parent_album, Album):
                        albums_to_update.add(parent_album)
                    tracks_to_process.append((parent_album, obj))

            # 1. Update Album-level metadata (both active metadata and orig_metadata)
            for album in albums_to_update:
                for meta_target in (getattr(album, 'metadata', None), getattr(album, 'orig_metadata', None)):
                    if meta_target is None:
                        continue
                    if pseudo_album_title:
                        meta_target['album'] = pseudo_album_title
                    if pseudo_album_artist:
                        meta_target['albumartist'] = pseudo_album_artist
                        meta_target['artist'] = pseudo_album_artist
                    if pseudo_album_artistsort:
                        meta_target['albumartistsort'] = pseudo_album_artistsort
                    if pseudo_album_artists:
                        meta_target['albumartists'] = pseudo_album_artists
                        meta_target['artists'] = pseudo_album_artists

            # 2. Update Track-level metadata & attached file metadata
            updated_tracks_count = 0
            total_tracks_target = len(tracks_to_process)

            for trk_idx, (parent_album, trk) in enumerate(tracks_to_process):
                disc_num = None
                track_num = None

                try:
                    disc_num = int(trk.metadata.get('discnumber', '1'))
                except (ValueError, TypeError):
                    pass

                try:
                    track_num = int(trk.metadata.get('tracknumber', '1'))
                except (ValueError, TypeError):
                    pass

                source_trk = None
                if disc_num is not None and track_num is not None:
                    source_trk = pseudo_tracks_by_pos.get((disc_num, track_num))

                if not source_trk and trk_idx < len(pseudo_tracks_flat):
                    source_trk = pseudo_tracks_flat[trk_idx]

                if source_trk:
                    # Track Title: Prioritize track title over recording title for pseudo-releases
                    source_title = source_trk.get('title')
                    if not source_title and 'recording' in source_trk:
                        source_title = source_trk['recording'].get('title')

                    # Parse Track Artist Credits
                    trk_artist_credit = source_trk.get('artist-credit')
                    if trk_artist_credit:
                        t_artist, t_artistsort, t_artists = parse_artist_credit(trk_artist_credit)
                    else:
                        t_artist, t_artistsort, t_artists = (
                            pseudo_album_artist, pseudo_album_artistsort, pseudo_album_artists
                        )

                    # Apply to both trk.metadata and trk.orig_metadata so Picard scripts & file updater use them
                    for meta_target in (getattr(trk, 'metadata', None), getattr(trk, 'orig_metadata', None)):
                        if meta_target is None:
                            continue
                        if source_title:
                            meta_target['title'] = source_title
                        if pseudo_album_title:
                            meta_target['album'] = pseudo_album_title
                        if pseudo_album_artist:
                            meta_target['albumartist'] = pseudo_album_artist
                        if pseudo_album_artistsort:
                            meta_target['albumartistsort'] = pseudo_album_artistsort
                        if pseudo_album_artists:
                            meta_target['albumartists'] = pseudo_album_artists
                        if t_artist:
                            meta_target['artist'] = t_artist
                        if t_artistsort:
                            meta_target['artistsort'] = t_artistsort
                        if t_artists:
                            meta_target['artists'] = t_artists

                    # Gather all attached audio files for this track
                    attached_files = []
                    if hasattr(trk, 'iterfiles'):
                        try:
                            attached_files.extend(list(trk.iterfiles()))
                        except Exception:
                            pass
                    if hasattr(trk, 'linked_files'):
                        try:
                            for f in trk.linked_files:
                                if f not in attached_files:
                                    attached_files.append(f)
                        except Exception:
                            pass

                    # Apply updated metadata directly to each attached file
                    for f in attached_files:
                        if hasattr(f, 'metadata') and f.metadata is not None:
                            if source_title:
                                f.metadata['title'] = source_title
                            if pseudo_album_title:
                                f.metadata['album'] = pseudo_album_title
                            if pseudo_album_artist:
                                f.metadata['albumartist'] = pseudo_album_artist
                            if pseudo_album_artistsort:
                                f.metadata['albumartistsort'] = pseudo_album_artistsort
                            if pseudo_album_artists:
                                f.metadata['albumartists'] = pseudo_album_artists
                            if t_artist:
                                f.metadata['artist'] = t_artist
                            if t_artistsort:
                                f.metadata['artistsort'] = t_artistsort
                            if t_artists:
                                f.metadata['artists'] = t_artists

                        # If Picard has update_file_metadata on Track, run it to sync tags
                        if hasattr(trk, 'update_file_metadata'):
                            try:
                                trk.update_file_metadata(f)
                            except Exception:
                                pass

                        try:
                            f.update()
                        except Exception:
                            pass

                    try:
                        trk.update()
                    except Exception:
                        pass

                    updated_tracks_count += 1

            # Refresh all updated album UI representations
            for album in albums_to_update:
                try:
                    album.update(update_tracks=True, update_selection=True)
                except TypeError:
                    try:
                        album.update()
                    except Exception:
                        pass
                except Exception:
                    pass

            # Force Picard's bottom metadata comparison box to refresh its New Value display
            try:
                if hasattr(self.tagger, 'window') and hasattr(self.tagger.window, 'metadata_box'):
                    self.tagger.window.metadata_box.update()
            except Exception:
                pass

            # Confirmation feedback to user
            msg = (
                f"Successfully applied Latin pseudo-release overlay!\n\n"
                f"Overlay Album Title: {pseudo_album_title}\n"
                f"Overlay Artist: {pseudo_album_artist}\n"
                f"Tracks Updated: {updated_tracks_count} of {total_tracks_target}"
            )
            QMessageBox.information(self.tagger.window, "Latin Overlay Applied", msg)

        except Exception as e:
            err_details = traceback.format_exc()
            QMessageBox.critical(
                self.tagger.window,
                "Overlay Error",
                f"An error occurred while applying the overlay:\n\n{e}\n\n{err_details}"
            )


register_album_action(LatinPseudoOverlayAction())
register_track_action(LatinPseudoOverlayAction())

I have to agree there, Usually Pseudo releases only exist for english translations/transliterations but if it were to be for every language it would be a mess so on a large scale Aliases does make sense but the other problem is that adding aliases is only possible cause of the creation of a pseudo release.

Currently I’m using this script to add the pseudo tracklist for aliases but if a release group doesn’t have a translated/transliterated release i have to add it first then go back to adding as an alias.

Most of the the non-english artists will already provide an official translated/transliterated tracklist on some streaming service, like for me I usually use Tidal cause it almost always shows translated/transliterated tracklist, youtube music does too but they try to add both versions in it so it’s not as reliable but it is helpful to know the differences between original and not. if there was a way to scrape the tracklist from a DSP and import it to a alias directly it would not require the creation of a pseudo release.

But pseudo releases are still required for artists that don’t provide an official translated/transliterated tracklist cause then you would need to make an unofficial translation or transliteration and who is to decide between the translated or transliterated version of those tracklist. That is upto preference and adding it to a alias would complicate things since we can’t pick one or the other.

1 Like

I can’t really imagine having 2 different Serbian aliases for good reason so I doubt this is a practical problem. In any case, pseudos can be used for edge cases, the mechanism is not deprecated. Its just easier to have aliases, Picard supports them, and you don’t have to copy all other stuff like covers, release credits etc. (most pseudos I have seen do not have them). So aliases are way more practical. Nobody will update pseudo too, but original. This makes pseudos inferior solution by large margin.

1 Like

It’s still way better than aliases.
Usually one person only needs one pseudo-release.
Most of the time, pseudo-releases are just a script change.

If we had to do with aliases (that are not reflecting exactly what we want, btw), we’d have to multiply per amount of tracks.

For a 10 track release:

you will have 100 pseudos for 100 languages

Becomes:

you will have 100 × 10 work aliases (+ artist aliases) for 100 languages

1 Like

Vibe-coded a v3 pseudo-releases plugin. ≽(•⩊ •マ≼

Follows “transliterated/translated track listings” relationships and adds missing release metadata as well as cover art. If there are multiple linked releases it tries to pick the best match based on multiple criteria from existing tags and preferred countries.

For switching to different release there is a context menu similar to “other versions”. You can also open the release with middle-click or right-click.

2 Likes

Even ignoring the artist intent case that track titles differ from recording names, this misses the entire point that aliases only support translation, not transliteration.

See track 1 on Release “Soubi Kakei” by ALI PROJECT - MusicBrainz - it is not possible to store it as a usable recording alias, period.

1 Like

This is indeed a problem but can be added on the MB server side easily. Its just another enum.

You’re still missing the point that a transliteration requires a direct relationship to a string value, which recording aliases don’t offer. There is no link between any aliases on the same recording, and you can’t create any such links by introducing “another enum”. Like I previously said, the concept of a track title differs from that of a recording alias.

1 Like

We have now alias enums per type like real name, search hint etc. Introduce new one, transliteration, and add string as usual.

Lately I have been going through older releases that didn’t have english aliases and adding them by using an existing pseudo release tracklist to copy them over using @YoGo Batch Add Recording Aliases from another Release Script.

But there is also the additional release relationship for transliterated/translated track listings, that I know can be useful too but it’s an additional 10 clicks, not to mention you need to have both original and pseudo release pages open at the same time to link them.

Then there is also adding transliterated/translated track listings from scratch if no one already created a pseudo release, and how that process goes is using harmony to pull from Tidal (cause it usually keeps the transliterated/translated), if not tidal then YT Music but that’s last case scenario cause you need to manually edit the original script that is mixed with the transliterated/translated script in the same track. After you do all that you need to clear all the additional info it pulls like date, barcode, release event, annotations. Which has always made on wonder if a Pseudo release is not suppose to keep this redundant metadata, why does the edit page not stop you from adding after setting the release to pseudo release. This would stop a lot of editors from incorrectly adding redundant metadata. All it needs is a warning to say that “this is a pseudo release and additional metadata such date, barcode, release event, annotations, etc are redundant and should be added to the official release”

But my main issue is that these are 3 different processes that should have a tool or userscript that do it all at once. Like Imagine if you have something for adding a Pseudo release that automatically remove unnecessary metadata with a single button then once entering the edit, it’s combined with the Batch Add Recording Aliases from another Release after copying those track it knows to automatically add a release relationship for transliterated/translated track listings.

It would simplify the process greatly especially when you need to do the same for multiple releases in an artist’s discography