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]
AFTER_PEAK = "after_peak"
[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]
class MatchStatus(StrEnum):
"""How a track was matched between streaming metadata and local files."""
[docs]
UNMATCHED = "unmatched"
[docs]
MANUALLY_MATCHED = "manually_matched"
[docs]
CONFLICTED = "conflicted"
[docs]
class TrackSource(StrEnum):
"""Where the track metadata originated."""
[docs]
REKORDBOX = "rekordbox"