From 133936594184bb34dfa347f08e2f78133d55764a Mon Sep 17 00:00:00 2001 From: nmemmert Date: Mon, 17 Nov 2025 11:49:27 -0500 Subject: [PATCH] Add auto-playlist tagging: automatically add 'Journey FM' label and 5-star rating to songs added to Plex playlist --- main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.py b/main.py index d576897..1e98b47 100644 --- a/main.py +++ b/main.py @@ -199,6 +199,9 @@ def create_playlist_in_plex(plex, songs, playlist_name): print(f"Added {len(new_tracks)} new songs to existing playlist '{playlist_name}':") for track in new_tracks: print(f" + '{track.title}' by {track.artist().title}") + # Auto-tag added songs + track.addLabel("Journey FM") + track.rate(5) added = len(new_tracks) added_songs.extend([f"{track.title} by {track.artist().title}" for track in new_tracks]) else: @@ -210,6 +213,9 @@ def create_playlist_in_plex(plex, songs, playlist_name): print(f"Created playlist '{playlist_name}' with {len(tracks)} songs:") for track in tracks: print(f" + '{track.title}' by {track.artist().title}") + # Auto-tag added songs + track.addLabel("Journey FM") + track.rate(5) added = len(tracks) added_songs.extend([f"{track.title} by {track.artist().title}" for track in tracks]) except Exception as e: