comparison src/plugins/plugin_xep_0277.py @ 1820:3c8cf120a0fd

plugin XEP-0277: added missing author_email parsing
author Goffi <goffi@goffi.org>
date Fri, 22 Jan 2016 20:24:17 +0100
parents 7ef0f5f90862
children d6062afdd54f
comparison
equal deleted inserted replaced
1819:c271087d2020 1820:3c8cf120a0fd
413 try: 413 try:
414 author_jid_s = data['author_jid'] 414 author_jid_s = data['author_jid']
415 except KeyError: 415 except KeyError:
416 author_jid_s = client.jid.userhost() 416 author_jid_s = client.jid.userhost()
417 author_elt.addElement('uri', content="xmpp:{}".format(author_jid_s)) 417 author_elt.addElement('uri', content="xmpp:{}".format(author_jid_s))
418
419 try:
420 author_jid_s = data['author_email']
421 except KeyError:
422 pass
418 423
419 ## published/updated time ## 424 ## published/updated time ##
420 current_time = time.time() 425 current_time = time.time()
421 entry_elt.addElement('updated', 426 entry_elt.addElement('updated',
422 content=rfc3339.timestamp_from_tf(float(data.get('updated', current_time)))) 427 content=rfc3339.timestamp_from_tf(float(data.get('updated', current_time))))