-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmediaset_init.js
20 lines (19 loc) · 950 Bytes
/
mediaset_init.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
function mediaset_init(id,brand,subbrand,fileadd) {
installer_do(function(data) {
var post = "";
if (fileadd && !(post = installer_read(data.fold+"/",fileadd)))
post = "";
var pre = "var IDSH = '"+id+"';\n"+
"var BRAND_ID = "+brand+";\n"+
"var SUBBRAND_ID = "+subbrand+";\n"+installer_string_script_import(null,'mediaset_main')+post;
var script = installer_load(null,"/"+id+"/"+id,Script.FLAG_APP_MENU,data,pre);
pre = "var IDSH = '"+id+"';\n"+
"var BRAND_ID = "+brand+";\n"+
"var SUBBRAND_ID = "+subbrand+";\n"+installer_string_script_import(null,'mediaset_tap')+post;
installer_load(null,"/"+id+"/"+id+"_tap",0,data,pre);
installer_sh_runscript(id,"i.tap","setplayer",id,data);
return script;
});
}
var script = getScriptByPathAndName(null, "installer");
eval(script.getText());