debugging

This commit is contained in:
2019-03-10 17:25:20 +01:00
parent 8ddb946b33
commit 57b4a680f0

View File

@@ -166,14 +166,10 @@ class XMPPTelegram(ComponentXMPP):
# detect media
logging.debug("test")
logging.debug(msg.__dict__)
if "oob" in msg:
if "oob" in iq:
logging.debug("Found OOB content in message")
if "url" in msg['oob']:
url = msg['oob']['url']
if "url" in iq['oob']:
url = iq['oob']['url']
logging.debug("Found OOB URL: {}".format(url))
if url.split('.')[-1] in self.config['media_external_formats']:
logging.debug("Media found")