Skip to content

Commit

Permalink
Merge pull request #80 from glensc/remove-guids
Browse files Browse the repository at this point in the history
Remove guids from titles, add edittion title support
  • Loading branch information
glensc authored Mar 12, 2024
2 parents 0c1194e + 8f2443d commit 66c6e6b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plexfuse/vfs/Playable.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,14 @@ def guids(self) -> list[Guid]:
def title(self):
title = f"{self.item.seasonEpisode} " if self.item.TYPE == "episode" else ""
title += self.item.title
edition_title = self.item.__dict__.get("editionTitle", None)
if edition_title:
title += f" {{{edition_title}}}"

year = self.item.__dict__.get("year", None)
if year:
title += f" ({year})"

for guid in self.guids:
title += f" {{{guid.id.replace('://', '-')}}}"

return normalize(title)

@cached_property
Expand Down

0 comments on commit 66c6e6b

Please sign in to comment.