Replace md5 with hashlib.
authorstephendenham <stephendenham@2dec19e3-eb1d-4749-8193-008c8bba0994>
Thu, 28 Nov 2013 17:34:47 +0000 (17:34 +0000)
committerstephendenham <stephendenham@2dec19e3-eb1d-4749-8193-008c8bba0994>
Thu, 28 Nov 2013 17:34:47 +0000 (17:34 +0000)
git-svn-id: svn://svn.code.sf.net/p/xbmc-groove/code@90 2dec19e3-eb1d-4749-8193-008c8bba0994

addon.xml
changelog.txt
resources/lib/GroovesharkAPI.py

index 20e7987..449aa00 100644 (file)
--- a/addon.xml
+++ b/addon.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="plugin.audio.groove" name="Grooveshark XBMC"
-       version="2.0.5" provider-name="Stephen Denham">
+       version="2.0.6" provider-name="Stephen Denham">
        <requires>
                <import addon="xbmc.python" version="2.1.0" />
                <import addon="script.module.simplejson"/>
@@ -13,7 +13,7 @@
                <platform>all</platform>
                <summary lang="en">Grooveshark addon for XBMC.</summary>
                <description lang="en">
-                       Grooveshark addon for XBMC. You should enter your Grooveshark Anywhere username and password in the addon settings.
+                       Grooveshark addon for XBMC. You must enter your Grooveshark Anywhere username and password in the addon settings.
                </description>
                <license>GNU GENERAL PUBLIC LICENSE. Version 2, June 1991</license>
                <email>stephen dot denham at gmail dot com</email>
index 194bb0c..06998f6 100644 (file)
@@ -1,3 +1,7 @@
+2.0.6
+
+Replace md5 with hashlib.
+
 2.0.5
 
 Fix add to playlist.
index 9b8feda..fd09c16 100644 (file)
@@ -15,7 +15,7 @@
 #    You should have received a copy of the GNU General Public License
 #    along with xbmc-groove.  If not, see <http://www.gnu.org/licenses/>.
 
-import urllib2, pprint, md5, os, pickle, tempfile, time, re, simplejson, base64, sys, socket
+import urllib2, pprint, os, pickle, tempfile, time, re, simplejson, base64, sys, socket, hashlib
 from blowfish import Blowfish
 
 SESSION_EXPIRY = 1209600 # 2 weeks
@@ -38,7 +38,7 @@ class GrooveAPI:
        _sessionID = ''
        _userID = 0
        _lastSessionTime = 0
-       _key = md5.new(os.path.basename("GroovesharkAPI.py")).hexdigest()
+       _key = hashlib.md5(os.path.basename("GroovesharkAPI.py")).hexdigest()
        _debugging = False
 
        # Constructor
@@ -188,7 +188,7 @@ class GrooveAPI:
        
        # Authenticates the user for current API session
        def _authenticate(self, login, password):
-               md5pwd = md5.new(password).hexdigest()
+               md5pwd = hashlib.md5(password).hexdigest()
                params = {'login': login, 'password': md5pwd}
                
                result = self._callRemote('authenticate', params)