Adjusted metadata

This commit is contained in:
Brage 2023-07-31 23:47:14 +02:00
parent 7da9122480
commit 077ffdad30

View File

@ -1,14 +1,14 @@
from typing import List, Optional from typing import List, Optional
from dataclasses import dataclass, asdict, field from dataclasses import dataclass, asdict
@dataclass @dataclass
class Metadata: class Metadata:
title: str title: str
altTitle: List[str] = field(default_factory=list) altTitle: List[str]
cover: str cover: str
type: str # Serie/Movie type: str # Serie/Movie
summary: str summary: str
genres: List[str] = field(default_factory=list) genres: List[str]
def to_dict(self): def to_dict(self):
return asdict(self) return asdict(self)