[grilo-plugins] grl-acoustid: Return from source in case of no match



commit c5549dc2ef14a93688ad79c37da6b6890d5e4336
Author: Sumaid Syed <sumaidsyed gmail com>
Date:   Sat Aug 17 18:31:18 2019 +0530

    grl-acoustid: Return from source in case of no match
    
    When no results are found, after invoking grl.callback, return from the source
    to avoid source proceeding ahead.

 src/lua-factory/sources/grl-acoustid.lua | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/lua-factory/sources/grl-acoustid.lua b/src/lua-factory/sources/grl-acoustid.lua
index 71149417..ec746767 100644
--- a/src/lua-factory/sources/grl-acoustid.lua
+++ b/src/lua-factory/sources/grl-acoustid.lua
@@ -157,6 +157,7 @@ function lookup_cb_query (feed)
   if not json or json.status ~= "ok" or
      not json.results or #json.results <= 0 then
     grl.callback()
+    return
   end
 
   count = grl.get_options("count")


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]