From 7b04cbe447a3cf9f36a15de00105865a04f67417 Mon Sep 17 00:00:00 2001 From: Hellowlol Date: Fri, 13 Dec 2019 21:26:18 +0100 Subject: [PATCH] fix attribute error --- bw_plex/plex.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bw_plex/plex.py b/bw_plex/plex.py index 8c35261..0182ea0 100644 --- a/bw_plex/plex.py +++ b/bw_plex/plex.py @@ -924,7 +924,6 @@ def client_action(offset=None, sessionkey=None, action='jump'): # pragma: no co None """ global JUMP_LIST, CREDITS_LIST - browsers = ["Chrome", "Microsoft Edge", "Firefox"] # Some of this stuff take so time. # so we use this to try fix the offset # as this is given to client_action as a parameter. @@ -1011,7 +1010,7 @@ def client_action(offset=None, sessionkey=None, action='jump'): # pragma: no co try: # Browsers seems to fail to connect so many times # lets just stop trying and proxy the commands via the server. - if correct_client._baseurl and correct_client.name not in browsers: + if correct_client._baseurl and correct_client.product != "Plex Web": LOG.info('Connectiong to %s', correct_client.title) correct_client.connect() else: