The branch, dharma has been updated
       via  dd69ea7b06662aa0b7ce724a6b21ed5c657982d1 (commit)
      from  63a3dbe4a72e74b0c5f1b95e2c9cb3cdbc1795b8 (commit)

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

commit dd69ea7b06662aa0b7ce724a6b21ed5c657982d1
Author: amet <a...@nospam>
Date:   Sat Dec 11 12:34:43 2010 +0400

    [script.trakt] -v 0.0.8
    - added Dutch translation thanks to IIINeOIIINL!
    - fixed bug sending movie data (still pre-emptive, but coming soon)
    - sha1'd password

diff --git a/script.trakt/addon.xml b/script.trakt/addon.xml
index b404627..f4bc6ed 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.0.7"
+       version="0.0.8"
        provider-name="rudf0rd">
   <requires>
     <import addon="xbmc.python" version="1.0"/>
diff --git a/script.trakt/changelog.txt b/script.trakt/changelog.txt
index 329d032..c04a5c9 100644
--- a/script.trakt/changelog.txt
+++ b/script.trakt/changelog.txt
@@ -1,3 +1,8 @@
+Version 0.0.8
+       - added Dutch translation thanks to IIINeOIIINL!
+       - fixed bug sending movie data (still pre-emptive, but coming soon)
+       - sha1'd password
+
 Version 0.0.7
        - fixed double submit
        - added error handling for bad user/pass
diff --git a/script.trakt/default.py b/script.trakt/default.py
index fdefe8d..cd3f305 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.0.7"
+__version__ = "0.0.8"
 __XBMC_Revision__ = ""
 
 def addPadding(number):
@@ -93,7 +93,7 @@ def CheckAndSubmit(Manual=False):
             Debug("Found Movie", False)
             
             # format: title, year
-            moviename = xbmc.getInfoLabel("VideoPlayer.TvShowTitle")
+            moviename = xbmc.getInfoLabel("VideoPlayer.Title")
             moviename = moviename.replace(",", '')
             
             title = (moviename + ',' + xbmc.getInfoLabel("VideoPlayer.Year"))
diff --git a/script.trakt/resources/lib/utilities.py 
b/script.trakt/resources/lib/utilities.py
index 41603cf..dfa7248 100644
--- a/script.trakt/resources/lib/utilities.py
+++ b/script.trakt/resources/lib/utilities.py
@@ -8,9 +8,17 @@ import urllib
 import urllib2

 from urllib2 import URLError

 

+# disgracefully stolen from xbmc subtitles

+try:

+  # Python 2.6 +

+  from hashlib import sha as sha

+except ImportError:

+  # Python 2.5 and earlier

+  import sha

+

 __settings__ = xbmcaddon.Addon(id='script.trakt')

 __language__ = __settings__.getLocalizedString

-__version__ = "0.0.7"

+__version__ = "0.0.8"

 __cwd__ = __settings__.getAddonInfo('path')

 

 #Path handling

@@ -27,9 +35,10 @@ def SendUpdate(info, progress, sType, status):
     Debug("Creating data to send", False)

     

     bUsername = __settings__.getSetting( "Username" )

-    bPassword = __settings__.getSetting( "Password" )

+    bPassword = sha.new(__settings__.getSetting( "Password" )).hexdigest()

     bNotify = __settings__.getSetting( "NotifyOnSubmit" )

     

+    

     if (bUsername == '' or bPassword == ''):

         Debug("Username or password not set", False)

         notification("Trakt", __language__(45051).encode( "utf-8", "ignore" ), 
5000, __settings__.getAddonInfo("icon"))


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

Summary of changes:
 script.trakt/addon.xml                            |    2 +-
 script.trakt/changelog.txt                        |    5 ++++
 script.trakt/default.py                           |    4 +-
 script.trakt/resources/language/Dutch/strings.xml |   25 +++++++++++++++++++++
 script.trakt/resources/lib/utilities.py           |   13 +++++++++-
 5 files changed, 44 insertions(+), 5 deletions(-)
 create mode 100644 script.trakt/resources/language/Dutch/strings.xml


hooks/post-receive
-- 
Scripts

------------------------------------------------------------------------------
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev 
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to