feat: added constants

This commit is contained in:
Hazel 2024-04-24 12:09:22 +02:00
parent b2c03a3f2d
commit 58ecad37d5
2 changed files with 41 additions and 0 deletions

View File

@ -1,6 +1,9 @@
{
"cSpell.words": [
"Didnt",
"offtopic",
"outro",
"selfpromo",
"sponsorblock"
]
}

View File

@ -0,0 +1,38 @@
from typing import Tuple
from dataclasses import dataclass
from enum import Enum
class Category(Enum):
SPONSOR = "sponsor"
SELFPROMO = "selfpromo"
INTERACTION = "interaction"
INTRO = "intro"
OUTRO = "outro"
PREVIEW = "preview"
MUSIC_OFFTOPIC = "music_offtopic"
FILLER = "filler"
class ActionType(Enum):
SKIP = "skip"
MUTE = "mute"
FULL = "full"
POI = "poi"
CHAPTER = "chapter"
class Service(Enum):
YOUTUBE = "YouTube"
@dataclass
class Segment:
UUID: str
segment: Tuple[float, float]
category: Category
videoDuration: float
actionType: ActionType
locked: int
votes: int
description: str