debugging
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user