Skip to content

Commit

Permalink
script.xbmc.lcd: add patch to be more quiet
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Raue <stephan@openelec.tv>
  • Loading branch information
sraue committed Jan 23, 2012
1 parent 6b85348 commit f2a5b7a
Showing 1 changed file with 16 additions and 0 deletions.
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

2 comments on commit f2a5b7a

@Muschl
Copy link
Contributor

@Muschl Muschl commented on f2a5b7a Jan 25, 2012

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<--

@Muschl
Copy link
Contributor

@Muschl Muschl commented on f2a5b7a Jan 26, 2012

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.

Please sign in to comment.