Source code for rekordbox_set_list_manager.models.enums

"""Shared enumerations for the Rekordbox Set List Manager domain."""

from enum import IntEnum, StrEnum


[docs] class SectionType(StrEnum): """Semantic role of a section within a DJ set."""
[docs] OPENER = "opener"
[docs] WARM_UP = "warm_up"
[docs] BUILD = "build"
[docs] PEAK = "peak"
[docs] AFTER_PEAK = "after_peak"
[docs] CLOSING = "closing"
[docs] BREAK = "break"
[docs] GENERAL = "general"
[docs] class RekordboxColor(IntEnum): """Track color codes used in Rekordbox XML (24-bit RGB integers). Values are hardcoded in the Rekordbox binary — not user-configurable. DjmdColor.ColorCode is always NULL in Rekordbox 7; the XML ``Colour`` attribute (decimal integer) is the authoritative source. Verified against Rekordbox 7.2.14 exports (Phase I). See ``scripts/verify_rb_colors.py`` to re-verify against a live export. """
[docs] NONE = 0
[docs] PINK = 0xF870F8
[docs] RED = 0xF87070
[docs] ORANGE = 0xFFA064
[docs] YELLOW = 0xF8E550
[docs] GREEN = 0x1EE12B
[docs] AQUA = 0x10E4DC
[docs] BLUE = 0x1E50F0
[docs] PURPLE = 0x9828F0
[docs] class MatchStatus(StrEnum): """How a track was matched between streaming metadata and local files."""
[docs] UNMATCHED = "unmatched"
[docs] MATCHED = "matched"
[docs] MANUALLY_MATCHED = "manually_matched"
[docs] CONFLICTED = "conflicted"
[docs] class TrackSource(StrEnum): """Where the track metadata originated."""
[docs] SPOTIFY = "spotify"
[docs] TIDAL = "tidal"
[docs] REKORDBOX = "rekordbox"
[docs] MANUAL = "manual"