def login(user):
"""
Log into Google Play Music. Succeeds or exits.
Arguments:
user: Dict containing auth information.
"""
crs.curs_set(0)
common.w.outbar_msg('Logging in...')
try:
if not common.mc.login(user['email'], user['password'], user['deviceid']):
common.w.goodbye('Login failed: Exiting.')
common.w.outbar_msg(
'Logging in... Logged in as %s (%s).' %
(user['email'], 'Full' if common.mc.is_subscribed else 'Free')
)
except KeyboardInterrupt:
common.w.goodbye()
评论列表
文章目录