mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-25 20:41:21 -05:00
Merge pull request #5 from cottongin/patch-1
fixes urbandictionary api change
This commit is contained in:
commit
4a98295832
@ -100,6 +100,9 @@ class UrbanDictionary(callbacks.Plugin):
|
||||
return
|
||||
# process json.
|
||||
results = jsondata.get('result_type') # exact, no_results, fulltext .
|
||||
if not results:
|
||||
# assume exact i guess...
|
||||
results = 'exact'
|
||||
definitions = jsondata.get('list')
|
||||
# prep output now depending on results.
|
||||
if results == "exact": # we did not find anything.
|
||||
|
Loading…
x
Reference in New Issue
Block a user