From bdb6b7c16ddb63472037578210b0b7d1433fb786 Mon Sep 17 00:00:00 2001 From: luyong <593010339@qq.com> Date: Tue, 27 Mar 2018 10:49:51 +0800 Subject: [PATCH] fix: Solve the use of languages other than English can not be searched --- megogo.js | 3 ++- plugin.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/megogo.js b/megogo.js index b8aa213..f472ec6 100644 --- a/megogo.js +++ b/megogo.js @@ -294,7 +294,8 @@ function get_search_by_query_str(query){ var sign_str; var response; - var param = "text=" + query + "offset=0limit=8" + megogo_vendor_key; + query = encodeURIComponent(query); + var param = "text=" + decodeURIComponent(query) + "offset=0limit=8" + megogo_vendor_key; sign_str = md5digest(param); url = "https://api.megogo.net/v1/search?text=" + query + "&offset=0&limit=8&sign=" + sign_str + "_samsung_j7"; //print("!!!!!!!!!url: " + url + "!!!!!!!!!!!!"); diff --git a/plugin.json b/plugin.json index 98ad684..1120624 100644 --- a/plugin.json +++ b/plugin.json @@ -4,7 +4,7 @@ "file": "megogo.js", "category": "tv", "showtimeVersion": "0.0.1", - "version": "1.1.0", + "version": "1.1.1", "author": "Luyong", "title": "Megogo", "icon": "megogo.bmp",