[vuplus-wifi-util] fix default ccode
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-vuplus / e2openplugins / files / openwebif_vu_box_remote.patch
1 diff --git a/plugin/controllers/ajax.py b/plugin/controllers/ajax.py
2 index 9add982..da2be4a 100644
3 --- a/plugin/controllers/ajax.py
4 +++ b/plugin/controllers/ajax.py
5 @@ -92,7 +92,9 @@ class AjaxController(BaseController):
6                 info = getInfo()
7                 type = getBoxType()
8  
9 -               if fileExists(getPublicPath("/images/boxes/"+type+".jpg")):
10 +               if fileExists(getPublicPath("/images/boxes/"+type+".png")):
11 +                       info["boximage"] = type+".png"
12 +               elif fileExists(getPublicPath("/images/boxes/"+type+".jpg")):
13                         info["boximage"] = type+".jpg"
14                 else:
15                         info["boximage"] = "unknown.jpg"
16 diff --git a/plugin/controllers/models/owibranding.py b/plugin/controllers/models/owibranding.py
17 index 9b8f1e5..a6a5b29 100644
18 --- a/plugin/controllers/models/owibranding.py
19 +++ b/plugin/controllers/models/owibranding.py
20 @@ -271,12 +271,14 @@ def getAllInfo():
21         info['type'] = type
22  
23         remote = "dmm"
24 -       if procmodel in ("solo", "duo", "uno", "solo2", "solose", "zero"):
25 +       if procmodel in ("solo", "duo", "uno", "solo2", "solose", "zero", "solo4k", "uno4k", "ultimo4k"):
26                 remote = "vu_normal"
27         elif procmodel == "duo2":
28                 remote = "vu_duo2"
29         elif procmodel == "ultimo":
30                 remote = "vu_ultimo"
31 +       elif procmodel in ("uno4kse", "zero4k", "duo4k", "duo4kse"):
32 +               remote = "vu_brown"
33         elif procmodel == "e3hd":
34                 remote = "e3hd"
35         elif procmodel in ("et9x00", "et9000", "et9200", "et9500"):
36 diff --git a/plugin/public/static/remotes/vu_brown.html b/plugin/public/static/remotes/vu_brown.html
37 new file mode 100644
38 index 0000000..0c3bf8b
39 --- /dev/null
40 +++ b/plugin/public/static/remotes/vu_brown.html
41 @@ -0,0 +1,47 @@
42 +<img border='0' src='images/remotes/vu_brown.png' usemap='#map' >
43 +<map name="map">
44 +       <area shape="circle" coords="71,276,15" id="113" alt="mute" onclick="pressMenuRemote('113');">
45 +       <area shape="circle" coords="110,26,15" id ="116" alt="Power" onclick="pressMenuRemote('116');">
46 +       <area shape="circle" coords="31,45,15" id ="388" alt="text" onclick="pressMenuRemote('388');">
47 +       <area shape="circle" coords="56,45,15" id ="370" alt="subtitle" onclick="pressMenuRemote('370');">
48 +       <area shape="circle" coords="36,65,15" id ="2" alt="1" onclick="pressMenuRemote('2');">
49 +       <area shape="circle" coords="68,65,15" id ="3" alt="2" onclick="pressMenuRemote('3');">
50 +       <area shape="circle" coords="103,65,15" id ="4" alt="3" onclick="pressMenuRemote('4');">
51 +       <area shape="circle" coords="36,87,15" id ="5" alt="4" onclick="pressMenuRemote('5');">
52 +       <area shape="circle" coords="68,87,15" id ="6" alt="5" onclick="pressMenuRemote('6');">
53 +       <area shape="circle" coords="103,87,15" id ="7" alt="6" onclick="pressMenuRemote('7');">
54 +       <area shape="circle" coords="36,106,15" id ="8" alt="7" onclick="pressMenuRemote('8');">
55 +       <area shape="circle" coords="68,106,15" id ="9" alt="8" onclick="pressMenuRemote('9');">
56 +       <area shape="circle" coords="103,106,15" id ="10" alt="9" onclick="pressMenuRemote('10');">
57 +       <area shape="circle" coords="69,129,15" id ="11" alt="0" onclick="pressMenuRemote('11');">
58 +       <area shape="circle" coords="36,131,15" id ="412" alt="previous" onclick="pressMenuRemote('412');">
59 +       <area shape="circle" coords="103,131,15" id ="407" alt="next" onclick="pressMenuRemote('407');">
60 +       <area shape="circle" coords="32,149,15" id ="398" alt="red" onclick="pressMenuRemote('398');">
61 +       <area shape="circle" coords="56,149,15" id ="399" alt="green" onclick="pressMenuRemote('399');">
62 +       <area shape="circle" coords="83,149,15" id ="400" alt="yellow" onclick="pressMenuRemote('400');">
63 +       <area shape="circle" coords="107,149,15" id ="401" alt="blue" onclick="pressMenuRemote('401');">
64 +       <area shape="circle" coords="69,177,15" id ="103" alt="up" onclick="pressMenuRemote('103');">
65 +       <area shape="circle" coords="69,226,15" id ="108" alt="down" onclick="pressMenuRemote('108');">
66 +       <area shape="circle" coords="45,201,15" id ="105" alt="left" onclick="pressMenuRemote('105');">
67 +       <area shape="circle" coords="95,201,15" id ="106" alt="right" onclick="pressMenuRemote('106');">
68 +       <area shape="circle" coords="69,201,20" id ="352" alt="OK" onclick="pressMenuRemote('352');">
69 +       <area shape="circle" coords="37,260,15" id ="115" alt="volume up" onclick="pressMenuRemote('115');">
70 +       <area shape="circle" coords="37,291,13" id ="114" alt="volume down" onclick="pressMenuRemote('114');">
71 +       <area shape="circle" coords="106,234,15" id ="174" alt="exit" onclick="pressMenuRemote('174');">
72 +       <area shape="circle" coords="33,234,15" id ="358" alt="epg" onclick="pressMenuRemote('358');">
73 +       <area shape="circle" coords="105,258,15" id ="402" alt="channelup" onclick="pressMenuRemote('402');">
74 +       <area shape="circle" coords="105,292,15" id ="403" alt="channeldown" onclick="pressMenuRemote('403');">
75 +       <area shape="circle" coords="105,170,15" id ="139" alt="menu" onclick="pressMenuRemote('139');">
76 +       <area shape="circle" coords="33,170,15" id ="393" alt="videoaltlast" onclick="pressMenuRemote('393');">
77 +       <area shape="circle" coords="68,260,15" id ="392" alt="audio" onclick="pressMenuRemote('392');">
78 +       <area shape="circle" coords="68,292,15" id ="176" alt="timer" onclick="pressMenuRemote('176');">
79 +       <area shape="circle" coords="110,46,15" id ="138" alt="help" onclick="pressMenuRemote('138');">
80 +       <area shape="circle" coords="33,314,15" id ="168" alt="rewind" onclick="pressMenuRemote('168');">
81 +       <area shape="circle" coords="58,314,15" id ="207" alt="play" onclick="pressMenuRemote('207');">
82 +       <area shape="circle" coords="82,314,15" id ="164" alt="pause" onclick="pressMenuRemote('164');">
83 +       <area shape="circle" coords="107,314,15" id ="208" alt="forward" onclick="pressMenuRemote('208');">
84 +       <area shape="circle" coords="34,334,15" id ="377" alt="tv" onclick="pressMenuRemote('377');">
85 +       <area shape="circle" coords="57,334,15" id ="167" alt="record" onclick="pressMenuRemote('167');">
86 +       <area shape="circle" coords="83,334,15" id ="128" alt="stop" onclick="pressMenuRemote('128');">
87 +       <area shape="circle" coords="107,334,15" id ="385" alt="radio" onclick="pressMenuRemote('385');">
88 +</map>