[grilo-plugins] lua-factory: Fix warning in Apple trailers source



commit 563fbe481984da711b8eed404f069c7de30fea0f
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Oct 5 14:49:09 2017 +0200

    lua-factory: Fix warning in Apple trailers source
    
    We should make the filesize a number, not pass it
    down as a string.
    
    [lua-library] grl-lua-library.c:399: 'string' is not compatible for 'size'
    
    https://bugzilla.gnome.org/show_bug.cgi?id=788557

 src/lua-factory/sources/grl-appletrailers.lua |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/lua-factory/sources/grl-appletrailers.lua b/src/lua-factory/sources/grl-appletrailers.lua
index 03ae1f7..4330c2f 100644
--- a/src/lua-factory/sources/grl-appletrailers.lua
+++ b/src/lua-factory/sources/grl-appletrailers.lua
@@ -120,7 +120,7 @@ function parse_results(results)
     media.title = item.info.title.xml
     media.thumbnail = item.poster.xlarge.xml
     media.url = item.preview.large.xml
-    media.size = item.preview.large.filesize
+    media.size = tonumber(item.preview.large.filesize)
     local mins, secs = item.info.runtime.xml:match('(%d):(%d)')
     media.duration = tonumber(mins) * 60 + tonumber(secs)
 


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