mirror of
https://github.com/shadoll/moma.git
synced 2026-08-28 03:27:34 +00:00
fix convert error, improoved tmdb data retrive
This commit is contained in:
@@ -71,6 +71,7 @@ class MediaPanelView:
|
||||
self._props.tmdb_title,
|
||||
self._props.tmdb_original_title,
|
||||
self._props.tmdb_year,
|
||||
self._props.tmdb_countries,
|
||||
self._props.tmdb_genres,
|
||||
self._props.tmdb_database_info,
|
||||
self._props.tmdb_url,
|
||||
|
||||
@@ -123,6 +123,15 @@ class MediaPanelProperties:
|
||||
"""Get TMDB year formatted with label."""
|
||||
return self._extractor.get("year", "TMDB")
|
||||
|
||||
@property
|
||||
@text_decorators.blue()
|
||||
@conditional_decorators.wrap("Countries: ")
|
||||
@text_decorators.yellow()
|
||||
@conditional_decorators.default("<None>")
|
||||
def tmdb_countries(self) -> str:
|
||||
"""Get TMDB production countries formatted with label."""
|
||||
return self._extractor.get("production_countries", "TMDB")
|
||||
|
||||
@property
|
||||
@text_decorators.blue()
|
||||
@conditional_decorators.wrap("Genres: ")
|
||||
|
||||
Reference in New Issue
Block a user