The branch, eden has been updated
       via  6f8852569fd58dbf763c9f99feaa767144dbe052 (commit)
      from  72405f7f058d7f818a8d1b99d705319a2f12a9ba (commit)

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

commit 6f8852569fd58dbf763c9f99feaa767144dbe052
Author: Martijn Kaijser <[email protected]>
Date:   Sun Apr 28 20:19:42 2013 +0200

    [script.module.t0mm0.common] 1.1.1

diff --git a/script.module.t0mm0.common/addon.xml 
b/script.module.t0mm0.common/addon.xml
index c1e8747..ab6a507 100644
--- a/script.module.t0mm0.common/addon.xml
+++ b/script.module.t0mm0.common/addon.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="script.module.t0mm0.common" 
             name="t0mm0's common stuff" 
-            version="1.1.0" 
+            version="1.1.1" 
             provider-name="t0mm0">
   <requires>
     <import addon="xbmc.python" version="2.0" />
diff --git a/script.module.t0mm0.common/changelog.txt 
b/script.module.t0mm0.common/changelog.txt
index f540c23..8063415 100644
--- a/script.module.t0mm0.common/changelog.txt
+++ b/script.module.t0mm0.common/changelog.txt
@@ -1,2 +1,6 @@
+[B]Version 1.1.1[/B]
+- Removed unicoding of text when logging a message
+- Added utf-8 encoding check on build_plugin_url function - corrected issues 
in Frodo
+
 [B]Version 1.0.0[/B]
 - Initial Release.
diff --git a/script.module.t0mm0.common/lib/t0mm0/common/addon.py 
b/script.module.t0mm0.common/lib/t0mm0/common/addon.py
index 7725eca..ff11399 100644
--- a/script.module.t0mm0.common/lib/t0mm0/common/addon.py
+++ b/script.module.t0mm0.common/lib/t0mm0/common/addon.py
@@ -215,7 +215,15 @@ class Addon:
         Retuns:
             A string containing a fully formed ``plugin://`` URL.
         '''
-        return self.url + '?' + urllib.urlencode(queries)
+        out_dict = {}
+        for k, v in queries.iteritems():
+            if isinstance(v, unicode):
+                v = v.encode('utf8')
+            elif isinstance(v, str):
+                # Must be encoded in UTF-8
+                v.decode('utf8')
+            out_dict[k] = v
+        return self.url + '?' + urllib.urlencode(out_dict)
 
 
     def log(self, msg, level=xbmc.LOGNOTICE):
@@ -242,8 +250,8 @@ class Addon:
         Kwargs:
             level (int): The XBMC log level to write at.
         '''
-        msg = unicodedata.normalize('NFKD', unicode(msg)).encode('ascii',
-                                                                 'ignore')
+        #msg = unicodedata.normalize('NFKD', unicode(msg)).encode('ascii',
+        #                                                         'ignore')
         xbmc.log('%s: %s' % (self.get_name(), msg), level)
         
 
@@ -577,7 +585,7 @@ class Addon:
             be added to the list of entries to be displayed in this directory. 
             If a playlist object is passed (see :meth:`get_playlist`) then 
             the item will be added to the playlist instead
-    
+
             item_type (str): The type of item to add (eg. 'music', 'video' or
             'pictures')
         '''
diff --git a/script.module.t0mm0.common/lib/t0mm0/common/net.py 
b/script.module.t0mm0.common/lib/t0mm0/common/net.py
index 71a7124..769881c 100644
--- a/script.module.t0mm0.common/lib/t0mm0/common/net.py
+++ b/script.module.t0mm0.common/lib/t0mm0/common/net.py
@@ -22,6 +22,10 @@ import re
 import StringIO
 import urllib
 import urllib2
+import socket
+
+#Set Global timeout - Useful for slow connections and Putlocker.
+socket.setdefaulttimeout(30)
 
 class HeadRequest(urllib2.Request):
     '''A Request class that sends HEAD requests'''

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

Summary of changes:
 script.module.t0mm0.common/addon.xml               |    2 +-
 script.module.t0mm0.common/changelog.txt           |    4 ++++
 .../lib/t0mm0/common/addon.py                      |   16 ++++++++++++----
 script.module.t0mm0.common/lib/t0mm0/common/net.py |    4 ++++
 4 files changed, 21 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
Scripts

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to