The branch, dharma has been updated
       via  c35d95b883fb7697205f734b950c5991da1eca4a (commit)
      from  e4f0eed26ae1e000e50459fc4b24aae2dc742357 (commit)

- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=c35d95b883fb7697205f734b950c5991da1eca4a

commit c35d95b883fb7697205f734b950c5991da1eca4a
Author: amet <[email protected]>
Date:   Sun Jan 30 12:12:17 2011 +0400

    [script.trakt] -v 0.1.3
    - notification bug fixed
    - translation for French added thanks to ppic!

diff --git a/script.trakt/addon.xml b/script.trakt/addon.xml
index a916320..7abb1da 100644
--- a/script.trakt/addon.xml
+++ b/script.trakt/addon.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="script.trakt"
        name="trakt"
-       version="0.1.2"
+       version="0.1.3"
        provider-name="rudf0rd">
   <requires>
     <import addon="xbmc.python" version="1.0"/>
diff --git a/script.trakt/changelog.txt b/script.trakt/changelog.txt
index 0ae9c8a..2f5a9f8 100644
--- a/script.trakt/changelog.txt
+++ b/script.trakt/changelog.txt
@@ -1,3 +1,7 @@
+Version 0.1.3
+       - notification bug fixed
+       - translation for French added thanks to ppic!
+
 Version 0.1.2
        - fixed bug with submissions to the API
 
diff --git a/script.trakt/default.py b/script.trakt/default.py
index 4a676ea..f68707b 100644
--- a/script.trakt/default.py
+++ b/script.trakt/default.py
@@ -12,7 +12,7 @@ import re
 __scriptname__ = "trakt"
 __author__ = "Sean Rudford"
 __url__ = "http://trakt.tv/";
-__version__ = "0.1.1"
+__version__ = "0.1.3"
 __XBMC_Revision__ = ""
 
 def addPadding(number):
diff --git a/script.trakt/resources/lib/utilities.py 
b/script.trakt/resources/lib/utilities.py
index 7c597b1..90ec166 100644
--- a/script.trakt/resources/lib/utilities.py
+++ b/script.trakt/resources/lib/utilities.py
@@ -18,9 +18,12 @@ except ImportError:
 
 __settings__ = xbmcaddon.Addon(id='script.trakt')
 __language__ = __settings__.getLocalizedString
-__version__ = "0.1.1"
+__version__ = "0.1.3"
 __cwd__ = __settings__.getAddonInfo('path')
 
+bNotify = False
+if (__settings__.getSetting( "NotifyOnSubmit" ) == 'true'): bNotify = True
+
 #Path handling
 LANGUAGE_RESOURCE_PATH = xbmc.translatePath( os.path.join( __cwd__, 
'resources', 'language' ) )
 CONFIG_PATH = xbmc.translatePath( os.path.join( __cwd__, 'resources', 
'settings.cfg' ) )
@@ -32,12 +35,11 @@ VERSION_PATH = xbmc.translatePath( os.path.join( __cwd__, 
'resources', 'version.
 AUTOEXEC_SCRIPT = '\nimport 
time;time.sleep(5);xbmc.executebuiltin("XBMC.RunScript(special://home/addons/script.trakt/default.py,-startup)")\n'
 
 def SendUpdate(info, progress, sType, status):
+    global bNotify
     Debug("Creating data to send", False)
     
     bUsername = __settings__.getSetting( "Username" )
-    bPassword = sha.new(__settings__.getSetting( "Password" )).hexdigest()
-    bNotify = __settings__.getSetting( "NotifyOnSubmit" )
-    
+    bPassword = sha.new(__settings__.getSetting( "Password" )).hexdigest()    
     
     if (bUsername == '' or bPassword == ''):
         Debug("Username or password not set", False)
@@ -132,7 +134,7 @@ def SendUpdate(info, progress, sType, status):
         notification("Trakt", submitAlert, 3000, 
__settings__.getAddonInfo("icon"))
     
 def transmit(status):
-    bNotify = __settings__.getSetting( "NotifyOnSubmit" )
+    global bNotify
 
     req = urllib2.Request("http://api.trakt.tv/post";,
             status,
diff --git a/script.trakt/resources/settings.xml 
b/script.trakt/resources/settings.xml
index 8434c99..28a5e08 100644
--- a/script.trakt/resources/settings.xml
+++ b/script.trakt/resources/settings.xml
@@ -11,7 +11,7 @@
        <setting id="VideoThreshold" type="enum"  visible= "eq(-2,true)" 
enable="eq(-2,true)" label="45015" values="70%|85%" default="1" />
 
   <setting type="lsep" label="45002" />
-       <setting id="ExcludePathOption" type="bool" label="45009" 
default="false" />
+  <setting id="ExcludePathOption" type="bool" label="45009" default="false" />
   <setting id="ExcludePath" type="folder" source="video" label="45010" 
default="" visible= "eq(-1,true)" enable="eq(-1,true)" />
   <setting id="ExcludePathOption2" type="bool" label="45009" default="false" 
visible= "eq(-2,true)" enable="eq(-2,true)" />
   <setting id="ExcludePath2" type="folder" source="video" label="45010" 
default="" visible= "eq(-1,true)" enable="eq(-1,true)" />

-----------------------------------------------------------------------

Summary of changes:
 script.trakt/addon.xml                             |    2 +-
 script.trakt/changelog.txt                         |    4 +++
 script.trakt/default.py                            |    2 +-
 script.trakt/resources/language/French/strings.xml |   24 ++++++++++++++++++++
 script.trakt/resources/lib/utilities.py            |   12 +++++----
 script.trakt/resources/settings.xml                |    2 +-
 6 files changed, 38 insertions(+), 8 deletions(-)
 create mode 100644 script.trakt/resources/language/French/strings.xml


hooks/post-receive
-- 
Scripts

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to