debugging
This commit is contained in:
@@ -166,14 +166,10 @@ class XMPPTelegram(ComponentXMPP):
|
|||||||
|
|
||||||
# detect media
|
# detect media
|
||||||
|
|
||||||
logging.debug("test")
|
if "oob" in iq:
|
||||||
|
|
||||||
logging.debug(msg.__dict__)
|
|
||||||
|
|
||||||
if "oob" in msg:
|
|
||||||
logging.debug("Found OOB content in message")
|
logging.debug("Found OOB content in message")
|
||||||
if "url" in msg['oob']:
|
if "url" in iq['oob']:
|
||||||
url = msg['oob']['url']
|
url = iq['oob']['url']
|
||||||
logging.debug("Found OOB URL: {}".format(url))
|
logging.debug("Found OOB URL: {}".format(url))
|
||||||
if url.split('.')[-1] in self.config['media_external_formats']:
|
if url.split('.')[-1] in self.config['media_external_formats']:
|
||||||
logging.debug("Media found")
|
logging.debug("Media found")
|
||||||
|
|||||||
Reference in New Issue
Block a user