The branch, eden has been updated
       via  5312d0c956b902518b814d911ec6afc44ec3ac9a (commit)
      from  73e9ca8917d9217f9784535062d9b3211d923398 (commit)

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

commit 5312d0c956b902518b814d911ec6afc44ec3ac9a
Author: MartijnKaijser <[email protected]>
Date:   Sat May 12 22:20:59 2012 +0200

    [plugin.video.wimp] updated to version 1.0.1

diff --git a/plugin.video.wimp/addon.py b/plugin.video.wimp/addon.py
index dacf2dd..57657aa 100644
--- a/plugin.video.wimp/addon.py
+++ b/plugin.video.wimp/addon.py
@@ -1,3 +1,4 @@
+import os

 from xbmcswift import Plugin, xbmcplugin, xbmcgui

 import resources.lib.scraper as scraper

 

@@ -31,7 +32,7 @@ class Plugin_adv(Plugin):
             return []

 

 

-plugin = Plugin_adv('wimp.com', 'plugin.video.wimp', __file__)

+plugin = Plugin_adv('Wimp.com', 'plugin.video.wimp', __file__)

 

 

 @plugin.route('/', default=True)

@@ -107,7 +108,10 @@ def search():
 

 

 def __add_videos(videos):

+    p = plugin._plugin.getAddonInfo('path').decode('utf-8')

+    icon = os.path.join(xbmc.translatePath(p), 'icon.png')

     items = [{'label': video['title'],

+              'thumbnail': icon,

               'url': plugin.url_for('watch_video',

                                     video_id=video['video_id']),

               'info': {'date': video['date']},

diff --git a/plugin.video.wimp/addon.xml b/plugin.video.wimp/addon.xml
index ecc817d..731944c 100644
--- a/plugin.video.wimp/addon.xml
+++ b/plugin.video.wimp/addon.xml
@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<addon id="plugin.video.wimp" name="Wimp.com" version="1.0.0" 
provider-name="Insayne, sphere">
+<addon id="plugin.video.wimp" name="Wimp.com" version="1.0.1" 
provider-name="sphere, Insayne">
   <requires>
     <import addon="xbmc.python" version="2.0"/>
-    <import addon="script.module.simplejson" version="2.0.10"/>
+    <import addon="script.module.beautifulsoup" version="3.0.8"/>
     <import addon="script.module.xbmcswift" version="0.2.0"/>
   </requires>
   <extension point="xbmc.python.pluginsource" library="addon.py">
diff --git a/plugin.video.wimp/changelog.txt b/plugin.video.wimp/changelog.txt
index ec85d89..f64e8a0 100644
--- a/plugin.video.wimp/changelog.txt
+++ b/plugin.video.wimp/changelog.txt
@@ -1,3 +1,6 @@
+1.0.1

+- Fix video-listing (website changes)

+

 1.0.0

 - Code-rewrite by sphere

 - Changed: Now using XBMC-InfoLabel for date

diff --git a/plugin.video.wimp/resources/lib/scraper.py 
b/plugin.video.wimp/resources/lib/scraper.py
index a2f51a4..dd9147d 100644
--- a/plugin.video.wimp/resources/lib/scraper.py
+++ b/plugin.video.wimp/resources/lib/scraper.py
@@ -96,10 +96,11 @@ def __get_videos(tree):
         year = filter(lambda s: s.isdigit(), page_title)
     if not year:
         year = datetime.now().year
-    for video in tree.findAll('div', {'class': 'video-item'}):
-        title = video.find('a').string.strip()
-        video_id = video.find('a')['href'].replace(MAIN_URL, '').strip('/')
-        date_str = video.find('span', {'class': 'video_date'}).string
+    for video in tree.findAll('span', {'class': 'video_date'}):
+        link = video.nextSibling.nextSibling
+        title = link.string.strip()
+        video_id = link['href'].replace(MAIN_URL, '').strip('/')
+        date_str = video.string
         month_str, day_str = date_str.split()
         month = MONTHS.get(month_str)
         date = '%02i.%02i.%s' % (int(day_str), month, year)

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

Summary of changes:
 plugin.video.wimp/addon.py                 |    6 +++++-
 plugin.video.wimp/addon.xml                |    4 ++--
 plugin.video.wimp/changelog.txt            |    3 +++
 plugin.video.wimp/resources/lib/scraper.py |    9 +++++----
 4 files changed, 15 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
Plugins

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to