Skip to content

Commit

Permalink
fixup! Add PlexGuidProviderYoutube provider
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Aug 17, 2024
1 parent a4a42fb commit cb9d7c3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions plextraktsync/plex/PlexGuidProviderYoutube.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ def __init__(self, guid: PlexGuid):

@property
def link(self):
if self.guid.type == "artist":
return f"https://musicbrainz.org/artist/{self.guid.id}"
if self.guid.type == "album":
return f"https://musicbrainz.org/release/{self.guid.id}"
return None

@property
def title(self):
return f"{self.guid.provider}:{self.guid.type}:{self.guid.id}"
id = self.guid.id
id = ""
return f"{self.guid.provider}:{self.guid.type}:{id}"

0 comments on commit cb9d7c3

Please sign in to comment.