fixes urbandictionary api change
recent change to the way the urbandictionary API works necessitates setting results manually for some cases
This commit is contained in:
parent
ba3741c5fa
commit
f0412d5d72
|
|
@ -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…
Reference in New Issue