SpiffyTitles: Avoid urlRegularExpression error.

This commit is contained in:
oddluck 2020-07-22 05:33:02 +00:00
parent 01f0fac281
commit b1463364aa

View File

@ -559,7 +559,10 @@ class SpiffyTitles(callbacks.Plugin):
""" """
Find the first string that looks like a URL from the message Find the first string that looks like a URL from the message
""" """
try:
url_re = self.registryValue("urlRegularExpression", channel) url_re = self.registryValue("urlRegularExpression", channel)
except NonExistentRegistryEntry:
url_re = self.registryValue("urlRegularExpression")
if not url_re: if not url_re:
url_re = utils.web._httpUrlRe url_re = utils.web._httpUrlRe
matches = re.findall(url_re, input) matches = re.findall(url_re, input)