add jellyfin api client
This commit is contained in:
13
jellyfin/models.py
Normal file
13
jellyfin/models.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from pydantic import BaseModel
|
||||
from enum import Enum
|
||||
|
||||
class JellyfinMediaType(str, Enum):
|
||||
AUDIO = 'Audio'
|
||||
MOVIE = 'Movie'
|
||||
EPISODE = 'Episode'
|
||||
|
||||
class JellyfinMediaItem(BaseModel):
|
||||
name: str
|
||||
type: JellyfinMediaType
|
||||
image_url: str
|
||||
metadata: dict
|
||||
Reference in New Issue
Block a user