def login(self, username, password, **kwargs):
        """Authenticates the session to be able to access restricted data from
        the server (e.g. premium restricted videos).
        """
        params = {
            "account": username,
            "password": password
        }

        return self._api_call("login", params, **kwargs)
Authenticates the session to be able to access restricted data from
        the server (e.g. premium restricted videos).
        
src/livestreamer/plugins/crunchyroll.py