From f0412d5d72f3dd8dc5b160534f07cdfd89e34a15 Mon Sep 17 00:00:00 2001 From: cottongin Date: Sat, 1 Sep 2018 18:08:30 -0500 Subject: [PATCH] fixes urbandictionary api change recent change to the way the urbandictionary API works necessitates setting results manually for some cases --- plugin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin.py b/plugin.py index ee18f9d..42e81a5 100644 --- a/plugin.py +++ b/plugin.py @@ -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.