Adjusted metadata
This commit is contained in:
parent
1b31edd5ac
commit
7da9122480
@ -1,14 +1,14 @@
|
|||||||
from typing import List, Optional
|
from typing import List, Optional
|
||||||
from dataclasses import dataclass, asdict
|
from dataclasses import dataclass, asdict, field
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class Metadata:
|
class Metadata:
|
||||||
title: str
|
title: str
|
||||||
altTitle: List[str] = []
|
altTitle: List[str] = field(default_factory=list)
|
||||||
cover: str
|
cover: str
|
||||||
type: str # Serie/Movie
|
type: str # Serie/Movie
|
||||||
summary: str
|
summary: str
|
||||||
genres: List[str]
|
genres: List[str] = field(default_factory=list)
|
||||||
|
|
||||||
def to_dict(self):
|
def to_dict(self):
|
||||||
return asdict(self)
|
return asdict(self)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user