[grilo-plugins/wip/hadess/euronews-feb-2019-fix] euronews: Update for site changes



commit 278ef974eced6a98e7b94bc55e6218d41d7dc82a
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Feb 8 00:58:26 2019 +0100

    euronews: Update for site changes
    
    The scheme is now missing from the json URLs and HTTPs is used.

 src/lua-factory/sources/grl-euronews.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/lua-factory/sources/grl-euronews.lua b/src/lua-factory/sources/grl-euronews.lua
index a904186..d332fc7 100644
--- a/src/lua-factory/sources/grl-euronews.lua
+++ b/src/lua-factory/sources/grl-euronews.lua
@@ -21,7 +21,7 @@
 --]]
 
 LANG_EN                 = "en"
-EURONEWS_URL            = 'http://%s.euronews.com/api/watchlive.json'
+EURONEWS_URL            = 'https://%s.euronews.com/api/watchlive.json'
 
 local langs = {
   arabic = "Arabic",
@@ -96,7 +96,7 @@ function euronews_initial_fetch_cb(results, lang)
     return
   end
 
-  grl.fetch(json.url, euronews_fetch_cb, lang)
+  grl.fetch("https:" .. json.url, euronews_fetch_cb, lang)
 end
 
 


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