Skip to content

Instantly share code, notes, and snippets.

@azhurb
Created September 25, 2014 14:37
Show Gist options
  • Select an option

  • Save azhurb/71fa80577372ff280820 to your computer and use it in GitHub Desktop.

Select an option

Save azhurb/71fa80577372ff280820 to your computer and use it in GitHub Desktop.
Index: server/lib/stb.class.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- server/lib/stb.class.php (revision fdf2e501d81c6959e9dc589fa0b45023f75a1b1e)
+++ server/lib/stb.class.php (revision )
@@ -724,6 +724,9 @@
$profile['tv_channel_default_aspect'] = Config::getSafe('tv_channel_default_aspect', 'fit');
+ $profile['default_led_level'] = Config::get('default_led_level', 10);
+ $profile['standby_led_level'] = Config::get('standby_led_level', 90);
+
unset($profile['device_id']);
unset($profile['device_id2']);
unset($profile['access_token']);
\ No newline at end of file
Index: c/xpcom.common.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- c/xpcom.common.js (revision fdf2e501d81c6959e9dc589fa0b45023f75a1b1e)
+++ c/xpcom.common.js (revision )
@@ -1158,6 +1158,10 @@
stb.EnableVKButton(true);
+ if (gSTB.SetLedIndicatorLevels && this.user.hasOwnProperty('default_led_level') && this.user.hasOwnProperty('standby_led_level')){
+ gSTB.SetLedIndicatorLevels(parseInt(this.user['default_led_level'], 10), parseInt(this.user['standby_led_level'], 10));
+ }
+
}catch(e){
_debug(e);
}
\ No newline at end of file
Index: server/config.ini
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- server/config.ini (revision fdf2e501d81c6959e9dc589fa0b45023f75a1b1e)
+++ server/config.ini (revision )
@@ -224,6 +224,9 @@
disable_portal = false
+default_led_level = 10
+standby_led_level = 90
+
[server_api]
; API required for tv archive, pvr and billing
enable_api = false
@@ -307,7 +310,7 @@
; Per one user
total_records_length = 600
-allowed_stb_types_for_local_recording = MAG245,MAG250,MAG255,MAG270,MAG275,AuraHD
+allowed_stb_types_for_local_recording = MAG245,MAG250,MAG254,MAG255,MAG270,MAG275,AuraHD
max_local_recordings = 10
Index: c/xpcom.webkit.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- c/xpcom.webkit.js (revision fdf2e501d81c6959e9dc589fa0b45023f75a1b1e)
+++ c/xpcom.webkit.js (revision )
@@ -8,6 +8,10 @@
gSTB.StandBy(par);
+ if (gSTB.SetLedIndicatorLevels){
+ return;
+ }
+
_debug('gSTB.RDir(HardwareVersion).substr(0, 3)', gSTB.RDir('HardwareVersion').substr(0, 3));
if (['0.1', '0.2'].indexOf(gSTB.RDir('HardwareVersion').substr(0, 3)) == -1){
\ No newline at end of file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment