Skip to content

Commit

Permalink
Fix playlist update issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Gyarbij committed Nov 20, 2023
1 parent 9526aa2 commit 8d5a725
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions plexist/modules/plex.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,16 @@ def _update_plex_playlist(
return plex_playlist


def update_or_create_plex_playlist(
plex: PlexServer,
playlist: Playlist,
tracks: List[Track],
userInputs: UserInputs,
) -> None:
available_tracks, missing_tracks = _get_available_plex_tracks(plex, tracks)
def update_or_create_plex_playlist(
plex: PlexServer,
playlist: Playlist,
tracks: List[Track],
userInputs: UserInputs,
) -> None:
if tracks is None:
logging.error("No tracks provided for playlist %s", playlist.name)
return
available_tracks, missing_tracks = _get_available_plex_tracks(plex, tracks)
if available_tracks:
try:
plex_playlist = _update_plex_playlist(
Expand Down

0 comments on commit 8d5a725

Please sign in to comment.