[openwebif] Fix box and remote display.
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-vuplus / e2openplugins / files / openwebif_vu_box_remote.patch
diff --git a/meta-openvuplus/recipes-vuplus/e2openplugins/files/openwebif_vu_box_remote.patch b/meta-openvuplus/recipes-vuplus/e2openplugins/files/openwebif_vu_box_remote.patch
new file mode 100644 (file)
index 0000000..270d8d5
--- /dev/null
@@ -0,0 +1,81 @@
+diff --git a/plugin/controllers/ajax.py b/plugin/controllers/ajax.py
+index 9add982..da2be4a 100644
+--- a/plugin/controllers/ajax.py
++++ b/plugin/controllers/ajax.py
+@@ -92,7 +92,9 @@ class AjaxController(BaseController):
+               info = getInfo()
+               type = getBoxType()
+-              if fileExists(getPublicPath("/images/boxes/"+type+".jpg")):
++              if fileExists(getPublicPath("/images/boxes/"+type+".png")):
++                      info["boximage"] = type+".png"
++              elif fileExists(getPublicPath("/images/boxes/"+type+".jpg")):
+                       info["boximage"] = type+".jpg"
+               else:
+                       info["boximage"] = "unknown.jpg"
+diff --git a/plugin/controllers/models/owibranding.py b/plugin/controllers/models/owibranding.py
+index 9b8f1e5..835cee5 100644
+--- a/plugin/controllers/models/owibranding.py
++++ b/plugin/controllers/models/owibranding.py
+@@ -277,6 +277,8 @@ def getAllInfo():
+               remote = "vu_duo2"
+       elif procmodel == "ultimo":
+               remote = "vu_ultimo"
++      elif procmodel == "uno4kse":
++              remote = "vu_brown"
+       elif procmodel == "e3hd":
+               remote = "e3hd"
+       elif procmodel in ("et9x00", "et9000", "et9200", "et9500"):
+diff --git a/plugin/public/static/remotes/vu_brown.html b/plugin/public/static/remotes/vu_brown.html
+new file mode 100644
+index 0000000..b7835d3
+--- /dev/null
++++ b/plugin/public/static/remotes/vu_brown.html
+@@ -0,0 +1,47 @@
++<img border='0' src='images/remotes/vu_brown.png' usemap='#map' >
++<map name="map">
++      <area shape="circle" coords="71,276,15" id="113" alt="mute" onclick="pressMenuRemote('113');">
++      <area shape="circle" coords="110,26,15" id ="116" alt="Power" onclick="pressMenuRemote('116');">
++      <area shape="circle" coords="31,45,15" id ="388" alt="text" onclick="pressMenuRemote('388');">
++      <area shape="circle" coords="56,45,15" id ="370" alt="subtitle" onclick="pressMenuRemote('370');">
++      <area shape="circle" coords="36,65,15" id ="2" alt="1" onclick="pressMenuRemote('2');">
++      <area shape="circle" coords="68,65,15" id ="3" alt="2" onclick="pressMenuRemote('3');">
++      <area shape="circle" coords="103,65,15" id ="4" alt="3" onclick="pressMenuRemote('4');">
++      <area shape="circle" coords="36,87,15" id ="5" alt="4" onclick="pressMenuRemote('5');">
++      <area shape="circle" coords="68,87,15" id ="6" alt="5" onclick="pressMenuRemote('6');">
++      <area shape="circle" coords="103,87,15" id ="7" alt="6" onclick="pressMenuRemote('7');">
++      <area shape="circle" coords="36,106,15" id ="8" alt="7" onclick="pressMenuRemote('8');">
++      <area shape="circle" coords="68,106,15" id ="9" alt="8" onclick="pressMenuRemote('9');">
++      <area shape="circle" coords="103,106,15" id ="10" alt="9" onclick="pressMenuRemote('10');">
++      <area shape="circle" coords="69,129,15" id ="11" alt="0" onclick="pressMenuRemote('11');">
++      <area shape="circle" coords="36,131,15" id ="412" alt="previous" onclick="pressMenuRemote('412');">
++      <area shape="circle" coords="103,131,15" id ="407" alt="next" onclick="pressMenuRemote('407');">
++      <area shape="circle" coords="32,149,15" id ="398" alt="red" onclick="pressMenuRemote('398');">
++      <area shape="circle" coords="56,149,15" id ="399" alt="green" onclick="pressMenuRemote('399');">
++      <area shape="circle" coords="83,149,15" id ="400" alt="yellow" onclick="pressMenuRemote('400');">
++      <area shape="circle" coords="107,149,15" id ="401" alt="blue" onclick="pressMenuRemote('401');">
++      <area shape="circle" coords="69,177,15" id ="103" alt="up" onclick="pressMenuRemote('103');">
++      <area shape="circle" coords="69,226,15" id ="108" alt="down" onclick="pressMenuRemote('108');">
++      <area shape="circle" coords="45,201,15" id ="105" alt="left" onclick="pressMenuRemote('105');">
++      <area shape="circle" coords="95,201,15" id ="106" alt="right" onclick="pressMenuRemote('106');">
++      <area shape="circle" coords="69,201,20" id ="352" alt="OK" onclick="pressMenuRemote('352');">
++      <area shape="circle" coords="37,260,15" id ="115" alt="volume up" onclick="pressMenuRemote('115');">
++      <area shape="circle" coords="37,291,13" id ="114" alt="volume down" onclick="pressMenuRemote('114');">
++      <area shape="circle" coords="106,234,15" id ="174" alt="exit" onclick="pressMenuRemote('174');">
++      <area shape="circle" coords="33,234,15" id ="358" alt="epg" onclick="pressMenuRemote('358');">
++      <area shape="circle" coords="105,258,15" id ="402" alt="channelup" onclick="pressMenuRemote('402');">
++      <area shape="circle" coords="105,292,15" id ="403" alt="channeldown" onclick="pressMenuRemote('403');">
++      <area shape="circle" coords="105,170,15" id ="139" alt="menu" onclick="pressMenuRemote('139');">
++      <area shape="circle" coords="33,170,15" id ="393" alt="videoaltlast" onclick="pressMenuRemote('393');">
++      <area shape="circle" coords="68,260,15" id ="392" alt="audio" onclick="pressMenuRemote('392');">
++      <area shape="circle" coords="68,292,15" id ="176" alt="timer" onclick="pressMenuRemote('176');">
++      <area shape="circle" coords="110,46,15" id ="138" alt="help" onclick="pressMenuRemote('138');">
++      <area shape="circle" coords="33,314,15" id ="168" alt="rewind" onclick="pressMenuRemote('168');">
++      <area shape="circle" coords="58,314,15" id ="207" alt="play" onclick="pressMenuRemote('207');">
++      <area shape="circle" coords="82,314,15" id ="164" alt="pause" onclick="pressMenuRemote('164');">
++      <area shape="circle" coords="107,314,15" id ="208" alt="forward" onclick="pressMenuRemote('208');">
++      <area shape="circle" coords="34,334,15" id ="377" alt="tv" onclick="pressMenuRemote('377');">
++      <area shape="circle" coords="57,334,15" id ="167" alt="record" onclick="pressMenuRemote('167');">
++      <area shape="circle" coords="83,334,15" id ="128" alt="stop" onclick="pressMenuRemote('128');">
++      <area shape="circle" coords="107,334,15" id ="385" alt="radio" onclick="pressMenuRemote('385');">
++</map>