Skip to content

tidal: normalize copyright text used as label metadata #6796

Description

@snejus

Problem

The Tidal plugin assigns copyright.text directly to the label field. Tidal returns rights statements rather than normalized label names, so candidate output and imported metadata contain copyright markers, years, corporate relationships, and territorial boilerplate. Other autotaggers set normalized label.

Examples:

  • © 2011 Motown Records, a Division of UMG Recordings, Inc.
  • © 2019 Atlantic Recording Corporation for the United States and WEA International Inc. for the world outside of the United States
  • (P) 1992 Zomba Recording LLC

This affects both albums and tracks because both paths use _parse_label().

Expected behavior

Store a concise label name instead:

  • Motown Records
  • Either Atlantic Recording Corporation or WEA International Inc.
  • Zomba Recording

When the rights statement cannot be parsed safely, retain a conservatively cleaned value rather than guessing or dropping the field.

Suggested fix

Add a reusable label normalization helper that removes leading copyright or phonographic copyright markers and years, then trims recognized corporate and territorial boilerplate at explicit phrase boundaries. Keep the transformation single-pass and conservative.

Add parametrized tests covering ©, , (C), and (P) prefixes, the examples above, plain label names, missing copyright data, and ambiguous rights statements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions