The branch, eden has been updated
       via  ac3f6135046288aeb5a4b7a300e226c596853e6a (commit)
      from  556675db9eaa1ffa2d883bc79090b0ef51be7f3f (commit)

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

commit ac3f6135046288aeb5a4b7a300e226c596853e6a
Author: Martijn Kaijser <[email protected]>
Date:   Sat Nov 23 12:06:25 2013 +0100

    [script.module.metahandler] 1.3.1

diff --git a/script.module.metahandler/addon.xml 
b/script.module.metahandler/addon.xml
index bb94031..9bfb0aa 100644
--- a/script.module.metahandler/addon.xml
+++ b/script.module.metahandler/addon.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="script.module.metahandler" 
      name="metahandler" 
-     version="1.3.0" 
+     version="1.3.1" 
      provider-name="Eldorado (inspired by anarchintosh, westcoast, daledude, 
t0mm0)">
   <requires>
     <import addon="xbmc.python" version="2.0" />
diff --git a/script.module.metahandler/changelog.txt 
b/script.module.metahandler/changelog.txt
index 719bea3..a31ce41 100644
--- a/script.module.metahandler/changelog.txt
+++ b/script.module.metahandler/changelog.txt
@@ -1,3 +1,7 @@
+[B]Version 1.3.1[/B]
+- Fixed bug on getting tvshows from cache - returns None instead of letting 
exception pass
+- Re-added db initialization - stupid mistake
+
 [B]Version 1.3.0[/B]
 - Fixed changed watched on episodes (again)
 - Added fetch of trailers using v3 of tmdb api
diff --git a/script.module.metahandler/lib/metahandler/metahandlers.py 
b/script.module.metahandler/lib/metahandler/metahandlers.py
index ad5de60..482929f 100644
--- a/script.module.metahandler/lib/metahandler/metahandlers.py
+++ b/script.module.metahandler/lib/metahandler/metahandlers.py
@@ -154,6 +154,9 @@ class MetaData:
             self.dbcon.row_factory = database.Row # return results indexed by 
field names and not numbers so we can convert to dict
             self.dbcur = self.dbcon.cursor()
 
+        # initialize cache db
+        self._cache_create_movie_db()
+
 
     def __del__(self):
         ''' Cleanup db when object destroyed '''
@@ -990,7 +993,7 @@ class MetaData:
             matchedrow = self.dbcur.fetchone()
         except Exception, e:
             common.addon.log('************* Error selecting from cache db: %s' 
% e, 4)
-            pass
+            return None
             
         if matchedrow:
             common.addon.log('Found meta information by name in cache table: 
%s' % dict(matchedrow), 0)

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

Summary of changes:
 script.module.metahandler/addon.xml                |    2 +-
 script.module.metahandler/changelog.txt            |    4 ++++
 .../lib/metahandler/metahandlers.py                |    5 ++++-
 3 files changed, 9 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Scripts

------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to