The branch, frodo has been updated
via aebca5fcf49029b9426073346acf919e818b554a (commit)
from 3df4bb4772b366ac4d78ff1f98d2c38ac8eb6c41 (commit)
- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=aebca5fcf49029b9426073346acf919e818b554a
commit aebca5fcf49029b9426073346acf919e818b554a
Author: ronie <[email protected]>
Date: Fri Mar 8 00:12:16 2013 +0100
[script.module.bigpictures] -v1.0.1
diff --git a/script.module.bigpictures/addon.xml
b/script.module.bigpictures/addon.xml
index 1ff2edf..f081405 100644
--- a/script.module.bigpictures/addon.xml
+++ b/script.module.bigpictures/addon.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<addon id="script.module.bigpictures" name="The Big Pictures Scrapers"
version="1.0.0" provider-name="Tristan Fischer ([email protected])">
+<addon id="script.module.bigpictures" name="The Big Pictures Scrapers"
version="1.0.1" provider-name="Tristan Fischer ([email protected])">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
<import addon="script.module.beautifulsoup" version="3.0.8"/>
diff --git a/script.module.bigpictures/changelog.txt
b/script.module.bigpictures/changelog.txt
index 8a131f0..5cea0eb 100644
--- a/script.module.bigpictures/changelog.txt
+++ b/script.module.bigpictures/changelog.txt
@@ -1,2 +1,4 @@
+1.0.1
+ - added temporary fix for new york times lens blog
1.0.0
- initial release
\ No newline at end of file
diff --git a/script.module.bigpictures/lib/scrapers.py
b/script.module.bigpictures/lib/scrapers.py
index 50aac47..eb59bb8 100644
--- a/script.module.bigpictures/lib/scrapers.py
+++ b/script.module.bigpictures/lib/scrapers.py
@@ -55,7 +55,13 @@ class BasePlugin(object):
self.log('get_tree received %d bytes' % len(html))
except urllib2.HTTPError, error:
self.log('HTTPError: %s' % error)
- tree = BeautifulSoup(html, convertEntities=language)
+ try:
+ tree = BeautifulSoup(html, convertEntities=language)
+ except TypeError:
+ # Temporary fix for wrong encoded utf-8 chars in NewYork
+ # Times Lens Blog. Shame on you.
+ html = html.decode('utf-8', 'ignore')
+ tree = BeautifulSoup(html, convertEntities=language)
return tree
def _collapse(self, iterable):
-----------------------------------------------------------------------
Summary of changes:
script.module.bigpictures/addon.xml | 2 +-
script.module.bigpictures/changelog.txt | 2 ++
script.module.bigpictures/lib/scrapers.py | 8 +++++++-
3 files changed, 10 insertions(+), 2 deletions(-)
hooks/post-receive
--
Scripts
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons