podcast_archiver/enums.py
from enum import Enum
class StrEnum(str, Enum):
def __str__(self) -> str:
return self.value
class QueueCompletionType(StrEnum):
COMPLETED = "Archived all episodes"
FOUND_EXISTING = "Archive is up to date"
MAX_EPISODES = "Maximum episode count reached"
class DownloadResult(StrEnum):
ALREADY_EXISTS = "Exists"
COMPLETED_SUCCESSFULLY = "Completed"
FAILED = "Failed"
ABORTED = "Aborted"
def __str__(self) -> str:
return self.value