Skip to content

Commit

Permalink
- Get full title of a media item
Browse files Browse the repository at this point in the history
  • Loading branch information
nwithan8 committed Feb 28, 2023
1 parent 86683ff commit 21b08da
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dizqueTV/models/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ def __init__(self, data: dict, dizque_instance, channel_instance=None):
def __repr__(self):
return f"{self.__class__.__name__}({self.title})"

@property
def full_name(self):
if self.type == "episode":
return f"{self.showTitle} - s{self.season}e{self.episode} - {self.title}"
return self.title


class Redirect(BaseMediaItem):
def __init__(self, data: dict, dizque_instance, channel_instance):
Expand Down

0 comments on commit 21b08da

Please sign in to comment.