From e50c77d8c62138a79c27cfcc5b7989dfc2f341f2 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Fri, 6 May 2016 18:09:13 -0700 Subject: [PATCH] Fix {plex_url) string formatting --- plexpy/notification_handler.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py index 5b317bd8..7ad178af 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -571,10 +571,8 @@ def build_notify_text(session=None, timeline=None, notify_action=None, agent_id= remaining_duration = duration - view_offset # Build Plex URL - metadata['plex_url'] = ('http://app.plex.tv/web/app#!/server/' - + plexpy.CONFIG.PMS_IDENTIFIER - + '/details/%2Flibrary%2Fmetadata%2F' - + rating_key) + metadata['plex_url'] = 'http://app.plex.tv/web/app#!/server/{0}/details/%2Flibrary%2Fmetadata%2F{1}'.format( + plexpy.CONFIG.PMS_IDENTIFIER, str(rating_key)) # Get media IDs from guid and build URLs if 'imdb://' in metadata['guid']: