From 30b39f3806fab360bdd59c12bb7c99a2bd43d985 Mon Sep 17 00:00:00 2001 From: ch-rs Date: Fri, 5 May 2023 18:23:11 +0200 Subject: [PATCH] Remove must_login check in roosterteeth_play.py --- resources/lib/roosterteeth_play.py | 38 +++++++++++++++--------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/resources/lib/roosterteeth_play.py b/resources/lib/roosterteeth_play.py index 7b2a44d..6df77db 100644 --- a/resources/lib/roosterteeth_play.py +++ b/resources/lib/roosterteeth_play.py @@ -109,8 +109,8 @@ def playVideo(self): log("must_login_first_member_user", must_login_first_member_user) - # login if needed - if must_login_first_member_user: + # RT now embeds ads in public streams, so we must always log in + #if must_login_first_member_user: # is the first_member switch in the settings of this addon turned on? if self.IS_FIRST_MEMBER == 'true': # is it a first_member video or not? @@ -210,28 +210,28 @@ def playVideo(self): exit(1) - except urllib.error.HTTPError as error: + except urllib.error.HTTPError as error: - log("HTTPError1", error) + log("HTTPError1", error) - try: - dialog_wait.close() - del dialog_wait - except: - pass - xbmcgui.Dialog().ok(LANGUAGE(30000), LANGUAGE(30106) % (convertToUnicodeString(error))) - exit(1) + try: + dialog_wait.close() + del dialog_wait except: - exception = sys.exc_info()[0] + pass + xbmcgui.Dialog().ok(LANGUAGE(30000), LANGUAGE(30106) % (convertToUnicodeString(error))) + exit(1) + except: + exception = sys.exc_info()[0] - log("ExceptionError1", exception) + log("ExceptionError1", exception) - try: - dialog_wait.close() - del dialog_wait - except: - pass - exit(1) + try: + dialog_wait.close() + del dialog_wait + except: + pass + exit(1) else: try: