The branch, dharma has been updated
via e696fa3cfd1c9a82df4dd3b7e75ee42d4f7127ae (commit)
from 4b9682d284bf7b9996b11e23bd11cec6d06f50a2 (commit)
- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/plugins;a=commit;h=e696fa3cfd1c9a82df4dd3b7e75ee42d4f7127ae
commit e696fa3cfd1c9a82df4dd3b7e75ee42d4f7127ae
Author: spiff <[email protected]>
Date: Fri May 13 15:29:24 2011 +0200
[plugin.image.iphoto] updated to version 1.4.5
diff --git a/plugin.image.iphoto/addon.py b/plugin.image.iphoto/addon.py
index 444676c..4c214da 100644
--- a/plugin.image.iphoto/addon.py
+++ b/plugin.image.iphoto/addon.py
@@ -74,9 +74,15 @@ def md5sum(filename):
m = md5()
except:
m = md5.new()
- with open(filename, 'rb') as f:
- for chunk in iter(lambda: f.read(128 * m.block_size), ''):
- m.update(chunk)
+
+ f = open(filename)
+ while True:
+ chunk = f.read(8192)
+ if not chunk:
+ break
+ m.update(chunk)
+ f.close()
+
return m.hexdigest()
def render_media(media):
diff --git a/plugin.image.iphoto/addon.xml b/plugin.image.iphoto/addon.xml
index 15fe3b5..ee7cc12 100644
--- a/plugin.image.iphoto/addon.xml
+++ b/plugin.image.iphoto/addon.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<addon id="plugin.image.iphoto" name="iPhoto" version="1.4.4"
provider-name="jingai">
+<addon id="plugin.image.iphoto" name="iPhoto" version="1.4.5"
provider-name="jingai">
<requires>
<import addon="xbmc.python" version="1.0"/>
<import addon="script.module.pysqlite" version="2.5.6"/>
diff --git a/plugin.image.iphoto/changelog.txt
b/plugin.image.iphoto/changelog.txt
index d1268e6..7c9b98b 100644
--- a/plugin.image.iphoto/changelog.txt
+++ b/plugin.image.iphoto/changelog.txt
@@ -1,3 +1,6 @@
+1.4.5 - 20110511
+- Replace with statement with while loop for Python 2.4.
+
1.4.4 - 20110511
- Use xbmcvfs to access iPhoto XML.
-----------------------------------------------------------------------
Summary of changes:
plugin.image.iphoto/addon.py | 12 +++++++++---
plugin.image.iphoto/addon.xml | 2 +-
plugin.image.iphoto/changelog.txt | 3 +++
3 files changed, 13 insertions(+), 4 deletions(-)
hooks/post-receive
--
Plugins
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons