Skip to content

Commit

Permalink
fix: Solve the use of languages other than English can not be searched
Browse files Browse the repository at this point in the history
  • Loading branch information
luyong committed Mar 27, 2018
1 parent 5e4cfd7 commit bdb6b7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion megogo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 + "!!!!!!!!!!!!");
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit bdb6b7c

Please sign in to comment.