feat: added constants
This commit is contained in:
parent
b2c03a3f2d
commit
58ecad37d5
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -1,6 +1,9 @@
|
||||
{
|
||||
"cSpell.words": [
|
||||
"Didnt",
|
||||
"offtopic",
|
||||
"outro",
|
||||
"selfpromo",
|
||||
"sponsorblock"
|
||||
]
|
||||
}
|
38
python_sponsorblock/constants.py
Normal file
38
python_sponsorblock/constants.py
Normal 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
|
Loading…
Reference in New Issue
Block a user