show season additional_title if helpful
This commit is contained in:
parent
4707343e30
commit
8778100656
2 changed files with 11 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
|||
{% load thumb %}
|
||||
<!-- class specific details -->
|
||||
{% block details %}
|
||||
<div>{% include '_people.html' with people=item.additional_title role='' max=99 %}</div>
|
||||
{% with item.all_seasons as seasons %}
|
||||
{% if seasons %}
|
||||
<div>
|
||||
|
|
|
@ -423,6 +423,16 @@ class TVSeason(Item):
|
|||
return f"{self.parent_item.display_title} {s}"
|
||||
return s
|
||||
|
||||
@cached_property
|
||||
def additional_title(self) -> list[str]:
|
||||
title = self.display_title
|
||||
return [
|
||||
t["text"]
|
||||
for t in self.localized_title
|
||||
if t["text"] != title
|
||||
and RE_LOCALIZED_SEASON_NUMBERS.sub("", t["text"]) != ""
|
||||
]
|
||||
|
||||
def update_linked_items_from_external_resource(self, resource):
|
||||
for w in resource.required_resources:
|
||||
if w["model"] == "TVShow":
|
||||
|
|
Loading…
Add table
Reference in a new issue