The branch, frodo has been updated
       via  1de162cfc6f2b9d479d52011abbf834cb651426a (commit)
      from  b38a0297bbe509aca10dbb9b54a31ab632bf4c01 (commit)

- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/plugins;a=commit;h=1de162cfc6f2b9d479d52011abbf834cb651426a

commit 1de162cfc6f2b9d479d52011abbf834cb651426a
Author: kibje <[email protected]>
Date:   Sun Jun 23 11:57:34 2013 +0200

    [plugin.video.tmz] updated to version 3.0.13

diff --git a/plugin.video.tmz/addon.xml b/plugin.video.tmz/addon.xml
index ea0df48..148f4f8 100644
--- a/plugin.video.tmz/addon.xml
+++ b/plugin.video.tmz/addon.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="plugin.video.tmz"
        name="TMZ"
-       version="3.0.12"
+       version="3.0.13"
        provider-name="stacked">
   <requires>
        <import addon="xbmc.python" version="2.1.0"/>
diff --git a/plugin.video.tmz/addonfunc.py b/plugin.video.tmz/addonfunc.py
index 261ce24..8bec2f3 100644
--- a/plugin.video.tmz/addonfunc.py
+++ b/plugin.video.tmz/addonfunc.py
@@ -2,8 +2,8 @@
 Addon Functions
 __author__ = 'stacked <[email protected]>'
 __url__ = 'http://code.google.com/p/plugin/'
-__date__ = '05-26-2013'
-__version__ = '0.0.10'
+__date__ = '06-15-2013'
+__version__ = '0.0.11'
 '''
 
 import xbmc, xbmcgui, xbmcaddon, xbmcplugin, urllib, urllib2, sys, time, 
datetime, buggalo
@@ -137,7 +137,7 @@ def retry(ExceptionToCheck, tries = 10, delay = 3, backoff 
= 1, logger = None):
                                        break
                                except ExceptionToCheck, e:
                                        if mtries >= 1:
-                                               msg = "%s, Retrying in %d 
seconds..." % (str(e), mdelay)
+                                               msg = "%s, Retrying in %s 
seconds..." % (str(e), mdelay)
                                                if logger:
                                                        logger.warning(msg)
                                                else:
diff --git a/plugin.video.tmz/changelog.txt b/plugin.video.tmz/changelog.txt
index 99af82c..65eeb23 100644
--- a/plugin.video.tmz/changelog.txt
+++ b/plugin.video.tmz/changelog.txt
@@ -1,3 +1,9 @@
+[B]Version 3.0.13[/B]
+
+- Updated addon to support recent website changes
+- Fixed 'ValueError' error
+- Fixed 'a number is required, not type' error
+
 [B]Version 3.0.12[/B]
 
 - Fixed 'ValueError' when loading Raw & Uncut
diff --git a/plugin.video.tmz/default.py b/plugin.video.tmz/default.py
index e8945d0..cbfcd7c 100644
--- a/plugin.video.tmz/default.py
+++ b/plugin.video.tmz/default.py
@@ -5,8 +5,8 @@ import simplejson as json
 plugin = 'TMZ'
 __author__ = 'stacked <[email protected]>'
 __url__ = 'http://code.google.com/p/plugin/'
-__date__ = '05-26-2013'
-__version__ = '3.0.12'
+__date__ = '06-22-2013'
+__version__ = '3.0.13'
 settings = xbmcaddon.Addon( id = 'plugin.video.tmz' )
 dbg = False
 dbglevel = 3
@@ -42,7 +42,7 @@ def build_main_directory():
        setViewMode("515")
        xbmcplugin.endOfDirectory( int( sys.argv[1] ) )
 
-@retry(IndexError, TypeError, ValueError)
+@retry((IndexError, TypeError, ValueError))
 def build_video_directory( name ):
        data = getUrl( 'http://www.tmz.com/videos/', True )
        textarea = '[{' + re.compile('{ name: \'' + name.upper() + '\',( )?\n   
      allInitialJson: {(.+?)},\n         (slug|noPaging)?', re.DOTALL).findall( 
data )[0][1].replace('\n', '').replace('results:','"results":') + '}]'
@@ -68,18 +68,23 @@ def build_video_directory( name ):
                except:
                        date = '0000.00.00'
                if videoUrl.find('http://cdnbakmi.kaltura.com') == -1:
-                       if settings.getSetting("quality") == '0':
-                               url = 'http://cdnapi.kaltura.com/p/' + 
thumb.split('/')[4] + '/sp/' + thumb.split('/')[6] + '/playManifest/entryId/' + 
videoUrl.split('_')[0].split('/')[-1:][0] + '_' + videoUrl.split('_')[1]
-                       else:
-                               url = 'http://cdnapi.kaltura.com/p/' + 
thumb.split('/')[4] + '/sp/' + thumb.split('/')[6] + '/playManifest/entryId/' + 
videoUrl.split('_')[0].split('/')[-1:][0] + '_' + videoUrl.split('_')[1] + 
'/flavorId/0_' + videoUrl.split('_')[3]
-                       infoLabels = { "Title": title, "Plot": title, 
"Duration": str(int(duration)/60), "aired": str(date) }
-                       u = { 'mode': '1', 'name': title, 'url': url, 'studio': 
name, 'thumb': thumb }
-                       addListItem(label = title, image = thumb, url = u, 
isFolder = False, totalItems = totalItems, infoLabels = infoLabels, fanart = 
fanart, duration = duration)
+                       low_id =  videoUrl.split('_')[0].split('/')[-1:][0] + 
'_' + videoUrl.split('_')[1]
+                       high_id = videoUrl.split('_')[0].split('/')[-1:][0] + 
'_' + videoUrl.split('_')[1] + '/flavorId/0_' + videoUrl.split('_')[3]
+               else:
+                       low_id = videoUrl.split('/')[9]
+                       high_id = videoUrl.split('/')[9] + '/flavorId/' + 
videoUrl.split('/')[11]
+               if settings.getSetting("quality") == '0':
+                       url = 'http://cdnapi.kaltura.com/p/' + 
thumb.split('/')[4] + '/sp/' + thumb.split('/')[6] + '/playManifest/entryId/' + 
low_id
+               else:
+                       url = 'http://cdnapi.kaltura.com/p/' + 
thumb.split('/')[4] + '/sp/' + thumb.split('/')[6] + '/playManifest/entryId/' + 
high_id
+               infoLabels = { "Title": title, "Plot": title, "Duration": 
str(int(duration)/60), "aired": str(date) }
+               u = { 'mode': '1', 'name': title, 'url': url, 'studio': name, 
'thumb': thumb }
+               addListItem(label = title, image = thumb, url = u, isFolder = 
False, totalItems = totalItems, infoLabels = infoLabels, fanart = fanart, 
duration = duration)
        xbmcplugin.addSortMethod( handle = int(sys.argv[1]), sortMethod = 
xbmcplugin.SORT_METHOD_NONE )
        setViewMode("503")
        xbmcplugin.endOfDirectory( int( sys.argv[1] ) )
 
-@retry(IndexError, ValueError) 
+@retry((IndexError, ValueError))       
 def build_search_directory():
        page = 1
        checking = True

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

Summary of changes:
 plugin.video.tmz/addon.xml     |    2 +-
 plugin.video.tmz/addonfunc.py  |    6 +++---
 plugin.video.tmz/changelog.txt |    6 ++++++
 plugin.video.tmz/default.py    |   27 ++++++++++++++++-----------
 4 files changed, 26 insertions(+), 15 deletions(-)


hooks/post-receive
-- 
Plugins

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to