[grilo-plugins] Revert "thegamesdb: Check for empty list"



commit 68131928490f0009a77cf7d9829ad46d8ab8f342
Author: Exalm <exalm7659 gmail com>
Date:   Wed Apr 18 20:28:31 2018 +0500

    Revert "thegamesdb: Check for empty list"
    
    This reverts commit 6a06a6fdbafb16d3e4137bfe2522845255eada49.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=794504

 src/lua-factory/sources/grl-thegamesdb.lua |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/lua-factory/sources/grl-thegamesdb.lua b/src/lua-factory/sources/grl-thegamesdb.lua
index 60cd0e7..f492f87 100644
--- a/src/lua-factory/sources/grl-thegamesdb.lua
+++ b/src/lua-factory/sources/grl-thegamesdb.lua
@@ -81,8 +81,7 @@ function get_id(results, title)
   local results_table = grl.lua.xml.string_to_table(results)
   if not results_table or
      not results_table.Data or
-     not results_table.Data.Game or
-     #results_table.Data.Game == 0 then
+     not results_table.Data.Game then
     return nil
   end
   for index, game in pairs(results_table.Data.Game) do


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