mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-26 04:51:06 -05:00
add oEmbed too title function
This commit is contained in:
parent
427845a358
commit
c1ceb77123
@ -489,10 +489,13 @@ class Web(callbacks.PluginRegexp):
|
|||||||
if not self._checkURLWhitelist(url):
|
if not self._checkURLWhitelist(url):
|
||||||
irc.error("This url is not on the whitelist.")
|
irc.error("This url is not on the whitelist.")
|
||||||
return
|
return
|
||||||
r = self.getTitle(irc, url, True, msg)
|
title = self.getOEmbedTitle(url)
|
||||||
if not r:
|
target = url
|
||||||
return
|
if not title:
|
||||||
(target, title) = r
|
r = self.getTitle(irc, url, True, msg)
|
||||||
|
if not r:
|
||||||
|
return
|
||||||
|
(target, title) = r
|
||||||
if title:
|
if title:
|
||||||
if not [y for x,y in optlist if x == 'no-filter']:
|
if not [y for x,y in optlist if x == 'no-filter']:
|
||||||
for i in range(1, 4):
|
for i in range(1, 4):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user