update driver(duo4k)
[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..4bbf6fb 100644
18 --- a/plugin/controllers/models/owibranding.py
19 +++ b/plugin/controllers/models/owibranding.py
20 @@ -277,6 +277,8 @@ def getAllInfo():
21                 remote = "vu_duo2"
22         elif procmodel == "ultimo":
23                 remote = "vu_ultimo"
24 +       elif procmodel in ("uno4kse", "zero4k", "duo4k"):
25 +               remote = "vu_brown"
26         elif procmodel == "e3hd":
27                 remote = "e3hd"
28         elif procmodel in ("et9x00", "et9000", "et9200", "et9500"):
29 diff --git a/plugin/public/static/remotes/vu_brown.html b/plugin/public/static/remotes/vu_brown.html
30 new file mode 100644
31 index 0000000..0c3bf8b
32 --- /dev/null
33 +++ b/plugin/public/static/remotes/vu_brown.html
34 @@ -0,0 +1,47 @@
35 +<img border='0' src='images/remotes/vu_brown.png' usemap='#map' >
36 +<map name="map">
37 +       <area shape="circle" coords="71,276,15" id="113" alt="mute" onclick="pressMenuRemote('113');">
38 +       <area shape="circle" coords="110,26,15" id ="116" alt="Power" onclick="pressMenuRemote('116');">
39 +       <area shape="circle" coords="31,45,15" id ="388" alt="text" onclick="pressMenuRemote('388');">
40 +       <area shape="circle" coords="56,45,15" id ="370" alt="subtitle" onclick="pressMenuRemote('370');">
41 +       <area shape="circle" coords="36,65,15" id ="2" alt="1" onclick="pressMenuRemote('2');">
42 +       <area shape="circle" coords="68,65,15" id ="3" alt="2" onclick="pressMenuRemote('3');">
43 +       <area shape="circle" coords="103,65,15" id ="4" alt="3" onclick="pressMenuRemote('4');">
44 +       <area shape="circle" coords="36,87,15" id ="5" alt="4" onclick="pressMenuRemote('5');">
45 +       <area shape="circle" coords="68,87,15" id ="6" alt="5" onclick="pressMenuRemote('6');">
46 +       <area shape="circle" coords="103,87,15" id ="7" alt="6" onclick="pressMenuRemote('7');">
47 +       <area shape="circle" coords="36,106,15" id ="8" alt="7" onclick="pressMenuRemote('8');">
48 +       <area shape="circle" coords="68,106,15" id ="9" alt="8" onclick="pressMenuRemote('9');">
49 +       <area shape="circle" coords="103,106,15" id ="10" alt="9" onclick="pressMenuRemote('10');">
50 +       <area shape="circle" coords="69,129,15" id ="11" alt="0" onclick="pressMenuRemote('11');">
51 +       <area shape="circle" coords="36,131,15" id ="412" alt="previous" onclick="pressMenuRemote('412');">
52 +       <area shape="circle" coords="103,131,15" id ="407" alt="next" onclick="pressMenuRemote('407');">
53 +       <area shape="circle" coords="32,149,15" id ="398" alt="red" onclick="pressMenuRemote('398');">
54 +       <area shape="circle" coords="56,149,15" id ="399" alt="green" onclick="pressMenuRemote('399');">
55 +       <area shape="circle" coords="83,149,15" id ="400" alt="yellow" onclick="pressMenuRemote('400');">
56 +       <area shape="circle" coords="107,149,15" id ="401" alt="blue" onclick="pressMenuRemote('401');">
57 +       <area shape="circle" coords="69,177,15" id ="103" alt="up" onclick="pressMenuRemote('103');">
58 +       <area shape="circle" coords="69,226,15" id ="108" alt="down" onclick="pressMenuRemote('108');">
59 +       <area shape="circle" coords="45,201,15" id ="105" alt="left" onclick="pressMenuRemote('105');">
60 +       <area shape="circle" coords="95,201,15" id ="106" alt="right" onclick="pressMenuRemote('106');">
61 +       <area shape="circle" coords="69,201,20" id ="352" alt="OK" onclick="pressMenuRemote('352');">
62 +       <area shape="circle" coords="37,260,15" id ="115" alt="volume up" onclick="pressMenuRemote('115');">
63 +       <area shape="circle" coords="37,291,13" id ="114" alt="volume down" onclick="pressMenuRemote('114');">
64 +       <area shape="circle" coords="106,234,15" id ="174" alt="exit" onclick="pressMenuRemote('174');">
65 +       <area shape="circle" coords="33,234,15" id ="358" alt="epg" onclick="pressMenuRemote('358');">
66 +       <area shape="circle" coords="105,258,15" id ="402" alt="channelup" onclick="pressMenuRemote('402');">
67 +       <area shape="circle" coords="105,292,15" id ="403" alt="channeldown" onclick="pressMenuRemote('403');">
68 +       <area shape="circle" coords="105,170,15" id ="139" alt="menu" onclick="pressMenuRemote('139');">
69 +       <area shape="circle" coords="33,170,15" id ="393" alt="videoaltlast" onclick="pressMenuRemote('393');">
70 +       <area shape="circle" coords="68,260,15" id ="392" alt="audio" onclick="pressMenuRemote('392');">
71 +       <area shape="circle" coords="68,292,15" id ="176" alt="timer" onclick="pressMenuRemote('176');">
72 +       <area shape="circle" coords="110,46,15" id ="138" alt="help" onclick="pressMenuRemote('138');">
73 +       <area shape="circle" coords="33,314,15" id ="168" alt="rewind" onclick="pressMenuRemote('168');">
74 +       <area shape="circle" coords="58,314,15" id ="207" alt="play" onclick="pressMenuRemote('207');">
75 +       <area shape="circle" coords="82,314,15" id ="164" alt="pause" onclick="pressMenuRemote('164');">
76 +       <area shape="circle" coords="107,314,15" id ="208" alt="forward" onclick="pressMenuRemote('208');">
77 +       <area shape="circle" coords="34,334,15" id ="377" alt="tv" onclick="pressMenuRemote('377');">
78 +       <area shape="circle" coords="57,334,15" id ="167" alt="record" onclick="pressMenuRemote('167');">
79 +       <area shape="circle" coords="83,334,15" id ="128" alt="stop" onclick="pressMenuRemote('128');">
80 +       <area shape="circle" coords="107,334,15" id ="385" alt="radio" onclick="pressMenuRemote('385');">
81 +</map>