from enum import IntEnum, StrEnum class ServiceType(IntEnum): """Maps to Sony.Filtr.Contracts.Definitions.ServiceType (zero-based).""" Spotify = 0 Deezer = 1 YouTube = 2 SoundCloud = 3 Groove = 4 class MusicService(IntEnum): """Maps to Sony.Filtr.Contracts.Definitions.MusicService (one-based).""" Spotify = 1 Deezer = 2 YouTube = 3 SoundCloud = 4 Groove = 5 class FieldCopyMode(IntEnum): """Controls how title/description are copied during sync.""" NoUpdate = 0 UseSetting = 1 # Use the value stored in the sync config CopySource = 2 # Copy from the source playlist class SyncError(StrEnum): """String enum matching SyncError in PlaylistSynchronizationManager.cs. Stored as a string in tblPlaylistSynchronizationLog.Error. """ Unknown = "Unknown" NoSourcePlaylist = "NoSourcePlaylist" NoTargetPlaylist = "NoTargetPlaylist" BadRequest = "BadRequest" Unauthorized = "Unauthorized" NoServiceAccount = "NoServiceAccount" ApplicationMismatch = "ApplicationMismatch" DB = "DB" NotSupported = "NotSupported" VendorSpecific = "VendorSpecific"