Update ContentView to show selected show metadata
This commit is contained in:
@@ -32,6 +32,10 @@ class Show(QObject):
|
||||
def year(self) -> int:
|
||||
return self._source["year"]
|
||||
|
||||
@pyqtProperty("QString")
|
||||
def description(self) -> str:
|
||||
return self._source["description"]
|
||||
|
||||
@pyqtProperty(int)
|
||||
def episodes(self) -> int:
|
||||
return self._source["episodes"]
|
||||
|
||||
Reference in New Issue
Block a user