Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions resources/lib/roosterteeth_play.py
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down Expand Up @@ -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:
Expand Down