Permalink
Browse files

changed log output to use xbmc.log()

  • Loading branch information...
1 parent f250e9b commit 12629e3490174dbf6cf121eadf4feb5a630de288 @dersphere committed Feb 20, 2013
Showing with 5 additions and 3 deletions.
  1. +2 −1 plugin.py
  2. +3 −2 script.py
View
@@ -20,6 +20,7 @@
import sys
import urlparse
+import xbmc
import xbmcgui
import xbmcplugin
@@ -54,7 +55,7 @@ def decode_params():
def log(msg):
- print u'TheBigPictures Plugin: %s' % msg
+ xbmc.log('TheBigPictures Plugin: %s' % msg)
if __name__ == '__main__':
View
@@ -22,6 +22,7 @@
import sys
import urllib
+import xbmc
import xbmcaddon
import xbmcgui
@@ -83,7 +84,7 @@ def update_progress(self, block_count, block_size, item_size):
self.pDialog.update(overall_percent, line1, line2)
def log(self, msg):
- print u'TheBigPictures Downloader: %s' % msg
+ xbmc.log('TheBigPictures Downloader: %s' % msg)
def __del__(self):
self.pDialog.close()
@@ -259,7 +260,7 @@ def showHelp(self):
addon.openSettings()
def log(self, msg):
- print u'TheBigPictures GUI: %s' % msg
+ xbmc.log('TheBigPictures GUI: %s' % msg)
if __name__ == '__main__':

0 comments on commit 12629e3

Please sign in to comment.