Compare commits
1 Commits
aa2e450454
...
b91e0e1002
| Author | SHA1 | Date | |
|---|---|---|---|
|
b91e0e1002
|
@@ -1,5 +1,6 @@
|
||||
from pydantic import BaseModel
|
||||
from pypresence.types import ActivityType
|
||||
from typing import Optional
|
||||
|
||||
|
||||
class DiscordRPCUpdatePayload(BaseModel):
|
||||
@@ -8,6 +9,6 @@ class DiscordRPCUpdatePayload(BaseModel):
|
||||
subtitle: str
|
||||
image_url: str
|
||||
details: str
|
||||
start: int | None
|
||||
end: int | None
|
||||
start: Optional[int]
|
||||
end: Optional[int]
|
||||
activity_type: ActivityType
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from pydantic import BaseModel
|
||||
from enum import Enum
|
||||
from typing import Optional
|
||||
|
||||
|
||||
class JellyfinMediaType(str, Enum):
|
||||
@@ -13,6 +14,6 @@ class JellyfinMediaItem(BaseModel):
|
||||
name: str
|
||||
type: JellyfinMediaType
|
||||
image_url: str
|
||||
start: int | None
|
||||
end: int | None
|
||||
start: Optional[int]
|
||||
end: Optional[int]
|
||||
metadata: dict
|
||||
|
||||
Reference in New Issue
Block a user