mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-05-05 01:40:58 -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
|
return
|
||||||
# process json.
|
# process json.
|
||||||
results = jsondata.get('result_type') # exact, no_results, fulltext .
|
results = jsondata.get('result_type') # exact, no_results, fulltext .
|
||||||
|
if not results:
|
||||||
|
# assume exact i guess...
|
||||||
|
results = 'exact'
|
||||||
definitions = jsondata.get('list')
|
definitions = jsondata.get('list')
|
||||||
# prep output now depending on results.
|
# prep output now depending on results.
|
||||||
if results == "exact": # we did not find anything.
|
if results == "exact": # we did not find anything.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user