Skip to content

Commit

Permalink
fixup! Add find_by_slug to TraktApi
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Mar 30, 2024
1 parent 19c217c commit 4a183d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plextraktsync/trakt/TraktApi.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ def find_by_guid(self, guid: PlexGuid):
@staticmethod
def find_by_slug(slug: str, media_type: str):
if media_type == "movie":
from trakt.movies import Movie
factory_method = Movie
else:
raise RuntimeError(f"Unsupported media_type={media_type}")
Expand Down

0 comments on commit 4a183d6

Please sign in to comment.