Change title attribute to be standard

This commit is contained in:
2026-03-20 21:34:40 -04:00
parent 74753d94be
commit 8f58d8db82
5 changed files with 4 additions and 5 deletions

View File

@@ -10,11 +10,10 @@ class TVBoxSetRelease(Release):
"""Holds info representing a release of a TV box set."""
def __init__(self, unparsed_text, dl_link, **kwargs):
super().__init__(unparsed_text, dl_link, **kwargs)
self.show_title: str = ""
self.seasons: Optional[str] = None
def __str__(self):
parts = [f"{self.show_title} (Seasons: {self.seasons})"]
parts = [f"{self.title} (Seasons: {self.seasons})"]
for attr in ['quality', 'video_codec', 'audio_codec', 'audio_layout', 'dynamic_range', 'repack', 'multi', 'source']:
value = getattr(self, attr)
parts.append(f"{attr.capitalize()}: {value if value else 'Unknown'}")