src/streamlink/plugins/schoolism.py
def login(self, email, password):
        """
        Login to the schoolism account and return the users account
        :param email: (str) email for account
        :param password: (str) password for account
        :return: (str) users email
        """
        if self.options.get("email") and self.options.get("password"):
            res = self.session.http.post(self.login_url, data={"email": email,
                                                               "password": password,
                                                               "redirect": None,
                                                               "submit": "Login"})

            if res.cookies.get("password") and res.cookies.get("email"):
                return res.cookies.get("email")
            else:
                log.error("Failed to login to Schoolism, incorrect email/password combination")
        else:
            log.error("An email and password are required to access Schoolism streams")
def login(self, email, password):
        """
        Login to the schoolism account and return the users account
        :param email: (str) email for account
        :param password: (str) password for account
        :return: (str) users email
        """
        if self.options.get("email") and self.options.get("password"):
            res = self.session.http.post(self.login_url, data={"email": email,
                                                               "password": password,
                                                               "redirect": None,
                                                               "submit": "Login"})

            if res.cookies.get("password") and res.cookies.get("email"):
                return res.cookies.get("email")
            else:
                log.error("Failed to login to Schoolism, incorrect email/password combination")
        else:
            log.error("An email and password are required to access Schoolism streams")
def login ( self , email , password ) : if self . options . get ( "email" ) and self . options . get ( "password" ) : res = self . session . http . post ( self . login_url , data = { "email" : email , "password" : password , "redirect" : None , "submit" : "Login" } ) if res . cookies . get ( "password" ) and res . cookies . get ( "email" ) : return res . cookies . get ( "email" ) else : log . error ( "Failed to login to Schoolism, incorrect email/password combination" ) else : log . error ( "An email and password are required to access Schoolism streams" )
Login to the schoolism account and return the users account
        :param email: (str) email for account
        :param password: (str) password for account
        :return: (str) users email
Login to the schoolism account and return the users account : param email : ( str ) email for account : param password : ( str ) password for account : return : ( str ) users email