dev: Uhrzeit aus Episodentitel entfernen, tvshow-Mediatype fix
This commit is contained in:
@@ -3287,15 +3287,16 @@ def _show_new_titles(plugin_name: str, page: int = 1, *, action_name: str = "new
|
||||
meta = plugin_meta.get(title)
|
||||
info_labels, art, cast = _merge_metadata(title, tmdb_info, tmdb_art, tmdb_cast, meta)
|
||||
info_labels = dict(info_labels or {})
|
||||
info_labels.setdefault("mediatype", "movie")
|
||||
is_direct_play = bool(
|
||||
plugin_name.casefold() == "einschalten"
|
||||
and _get_setting_bool("einschalten_enable_playback", default=False)
|
||||
)
|
||||
info_labels.setdefault("mediatype", "movie" if is_direct_play else "tvshow")
|
||||
playstate = _title_playstate(plugin_name, title)
|
||||
info_labels = _apply_playstate_to_info(dict(info_labels), playstate)
|
||||
display_label = _label_with_duration(title, info_labels)
|
||||
display_label = _label_with_playstate(display_label, playstate)
|
||||
direct_play = bool(
|
||||
plugin_name.casefold() == "einschalten"
|
||||
and _get_setting_bool("einschalten_enable_playback", default=False)
|
||||
)
|
||||
direct_play = is_direct_play
|
||||
_add_directory_item(
|
||||
handle,
|
||||
display_label,
|
||||
@@ -3381,8 +3382,6 @@ def _show_latest_episodes(plugin_name: str, page: int = 1) -> None:
|
||||
playstate = _get_playstate(key)
|
||||
|
||||
label = f"{title} - S{season_number:02d}E{episode_number:02d}"
|
||||
if airdate:
|
||||
label = f"{label} ({airdate})"
|
||||
label = _label_with_playstate(label, playstate)
|
||||
|
||||
info_labels: dict[str, object] = {
|
||||
|
||||
Reference in New Issue
Block a user