-
Notifications
You must be signed in to change notification settings - Fork 888
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
script.xbmc.lcd: add patch to be more quiet
Signed-off-by: Stephan Raue <stephan@openelec.tv>
- Loading branch information
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
packages/mediacenter/script.xbmc.lcd/patches/script.xbmc.lcd-dc08f6e-be_quiet.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff -Naur script.xbmc.lcd-dc08f6e/script.xbmc.lcd/lcdmain.py script.xbmc.lcd-dc08f6e.patch/script.xbmc.lcd/lcdmain.py | ||
--- script.xbmc.lcd-dc08f6e/script.xbmc.lcd/lcdmain.py 2012-01-22 19:49:39.000000000 +0100 | ||
+++ script.xbmc.lcd-dc08f6e.patch/script.xbmc.lcd/lcdmain.py 2012-01-23 10:58:54.317705282 +0100 | ||
@@ -133,10 +133,10 @@ | ||
count -= 1 | ||
if not g_failedConnectionNotified: | ||
g_failedConnectionNotified = True | ||
- text = __settings__.getLocalizedString(500) | ||
+# text = __settings__.getLocalizedString(500) | ||
xbmc.executebuiltin("XBMC.Notification(%s,%s,%s,%s)" % (__scriptname__,text,10,__icon__)) | ||
else: | ||
- text = __settings__.getLocalizedString(501) | ||
+# text = __settings__.getLocalizedString(501) | ||
if not g_failedConnectionNotified: | ||
xbmc.executebuiltin("XBMC.Notification(%s,%s,%s,%s)" % (__scriptname__,text,10,__icon__)) | ||
g_failedConnectionNotified = True |
f2a5b7a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get this error message after the patch:
21:51:54 T:139916174378752 INFO: -->Python script returned the following error<--
21:51:54 T:139916174378752 ERROR: Error Type: <type 'exceptions.NameError'>
21:51:54 T:139916174378752 ERROR: Error Contents: global name 'text' is not defined
21:51:54 T:139916174378752 ERROR: Traceback (most recent call last):
File "/usr/share/xbmc/addons/script.xbmc.lcd/lcdmain.py", line 153, in
process_lcd() #lcd loop
File "/usr/share/xbmc/addons/script.xbmc.lcd/lcdmain.py", line 83, in process_lcd
handleConnectLCD()
File "/usr/share/xbmc/addons/script.xbmc.lcd/lcdmain.py", line 137, in handleConnectLCD
xbmc.executebuiltin("XBMC.Notification(%s,%s,%s,%s)" % (scriptname,text,10,icon))
NameError: global name 'text' is not defined
21:51:54 T:139916174378752 INFO: -->End of Python script error report<--
f2a5b7a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry wrong understanding of the code...
This is not the cause, it is a workaround for the main error, because without this patch you get every 10 seconds a warning message from lcmain.py.