The branch, eden has been updated
via 6fdc7a7b56efa2db07302dd1306e83e8b38d4132 (commit)
from 8d1197288e329d5ea184e87ed634b9a8c22e9cda (commit)
- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=6fdc7a7b56efa2db07302dd1306e83e8b38d4132
commit 6fdc7a7b56efa2db07302dd1306e83e8b38d4132
Author: amet <[email protected]>
Date: Tue Mar 13 22:35:01 2012 +0400
[script.game.whatthemovie] -v 1.0.3
- Fix white shot (website changes)
diff --git a/script.game.whatthemovie/addon.xml
b/script.game.whatthemovie/addon.xml
index 90670a2..3f5a43d 100644
--- a/script.game.whatthemovie/addon.xml
+++ b/script.game.whatthemovie/addon.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.game.whatthemovie"
name="WhatTheMovie"
- version="1.0.2"
+ version="1.0.3"
provider-name="sphere, tadi, skiller2k1">
<requires>
<import addon="xbmc.python" version="2.0"/>
diff --git a/script.game.whatthemovie/changelog.txt
b/script.game.whatthemovie/changelog.txt
index 6aaaa67..c7dbfc2 100644
--- a/script.game.whatthemovie/changelog.txt
+++ b/script.game.whatthemovie/changelog.txt
@@ -1,3 +1,6 @@
+1.0.3
+- Fix white shot (website changes)
+
1.0.2
- Multithreading background scraping of shots
- Now showing overall-score in addition to featurefilms-score
diff --git a/script.game.whatthemovie/resources/lib/whatthemovie.py
b/script.game.whatthemovie/resources/lib/whatthemovie.py
index 7e6622d..326fc54 100644
--- a/script.game.whatthemovie/resources/lib/whatthemovie.py
+++ b/script.game.whatthemovie/resources/lib/whatthemovie.py
@@ -385,8 +385,13 @@ class WhatTheMovie(object):
else:
nav[nav_type] = None
# image url
- image_url = tree.find('img',
- alt='guess this movie snapshot')['src']
+ section = tree.find('style', {'type': 'text/css'})
+ image_url = ''
+ if section:
+ r_img = re.compile('background-image:url\("(.+?)"\)')
+ m_img = re.search(r_img, section.string)
+ if m_img:
+ image_url = WhatTheMovie.MAIN_URL + m_img.group(1)
subst_image_url = 'http://static.whatthemovie.com/images/subst'
if self.image_download_path:
if not image_url.startswith(subst_image_url):
-----------------------------------------------------------------------
Summary of changes:
script.game.whatthemovie/addon.xml | 2 +-
script.game.whatthemovie/changelog.txt | 3 +++
.../resources/lib/whatthemovie.py | 9 +++++++--
3 files changed, 11 insertions(+), 3 deletions(-)
hooks/post-receive
--
Scripts
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons