def parseCustString(keystuff): userkeys = [] ar = keystuff.split(':') for i in ar: try: name, ccn = i.split(',') # Generate Barnes & Noble EPUB user key from name and credit card number. userkeys.append(generate_key(name, ccn)) except: pass return userkeys
def parseIgnobleString(keystuff): from calibre_plugins.dedrm.ignoblekeygen import generate_key userkeys = [] ar = keystuff.split(':') for keystring in ar: try: name, ccn = keystring.split(',') # Generate Barnes & Noble EPUB user key from name and credit card number. keyname = u"{0}_{1}".format(name.strip(), ccn.strip()[-4:]) keyvalue = generate_key(name, ccn) userkeys.append([keyname, keyvalue]) except Exception, e: traceback.print_exc() print e.args[0] pass
def parseIgnobleString(keystuff): from calibre_plugins.dedrm.ignoblekeygen import generate_key userkeys = [] ar = keystuff.split(':') for keystring in ar: try: name, ccn = keystring.split(',') # Generate Barnes & Noble EPUB user key from name and credit card number. keyname = u"{0}_{1}".format(name.strip(),ccn.strip()[-4:]) keyvalue = generate_key(name, ccn) userkeys.append([keyname,keyvalue]) except Exception, e: traceback.print_exc() print e.args[0] pass