Add login test

master
azzy9 6 months ago
parent 5eced5179a
commit 6eb723a24f

@ -575,6 +575,19 @@ def login_session_reset():
RUMBLE_USER.reset_session_details()
notify( 'Session has been reset' )
def login_test():
""" Method that resets session, then tests the login """
RUMBLE_USER.reset_session_details()
if RUMBLE_USER.has_login_details():
if RUMBLE_USER.login():
notify( 'Login Successful - Session has been set' )
else:
notify( 'Login Failed' )
else:
notify( 'No details detected - please login save details first before running' )
def subscribe( name, action ):
@ -814,6 +827,8 @@ def main():
subscribe(name, cat)
elif mode==12:
comments_show(url)
elif mode==13:
login_test()
if __name__ == "__main__":
main()

@ -6,6 +6,7 @@
<category label="Login">
<setting id="username" label="Username" type="text" default=""/>
<setting id="password" label="Password" type="text" option="hidden" default=""/>
<setting id="loginTest" label="Test Login Details" type="action" action="RunPlugin(plugin://plugin.video.rumble/?mode=13)"/>
<setting id="resetSession" label="Reset Session" type="action" action="RunPlugin(plugin://plugin.video.rumble/?mode=10)"/>
</category>
<category label="Debug">

Loading…
Cancel
Save