mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-10 20:22:36 +01:00
ShrinkUrl: Fix the check for ur1ca results.
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
This commit is contained in:
parent
ea7f1f8419
commit
0283bb7f9a
@ -268,7 +268,7 @@ class ShrinkUrl(callbacks.PluginRegexp):
|
||||
parameters = utils.web.urlencode({'longurl': url})
|
||||
response = utils.web.getUrl(self._ur1Api, data=parameters)
|
||||
ur1ca = self._ur1Regexp.search(response.decode()).group('url')
|
||||
if ur1ca > 0 :
|
||||
if ur1ca:
|
||||
self.db.set('ur1', url, ur1ca)
|
||||
return ur1ca
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user