The branch, eden has been updated
       via  e8ab1f3fab5af04ef1eddfbbd5c602b0494ef9c1 (commit)
      from  2f672df5988d68713f3ce901c2778ee18b727f62 (commit)

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

commit e8ab1f3fab5af04ef1eddfbbd5c602b0494ef9c1
Author: beenje <[email protected]>
Date:   Wed Apr 24 22:25:50 2013 +0200

    [plugin.video.nascar] updated to version 1.0.2

diff --git a/plugin.video.nascar/addon.xml b/plugin.video.nascar/addon.xml
index 5f8b7df..a1a5e4b 100644
--- a/plugin.video.nascar/addon.xml
+++ b/plugin.video.nascar/addon.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="plugin.video.nascar"
        name="Nascar.com"
-       version="1.0.1"
+       version="1.0.2"
        provider-name="divingmule">
   <requires>
     <import addon="xbmc.python" version="2.0"/>
diff --git a/plugin.video.nascar/changelog.txt 
b/plugin.video.nascar/changelog.txt
index 7288572..e88f1db 100644
--- a/plugin.video.nascar/changelog.txt
+++ b/plugin.video.nascar/changelog.txt
@@ -1,3 +1,6 @@
+Version 1.0.2
+fix website changes
+
 Version 1.0.1
 major update, the old video feed isn't updated anymore, now scrapping the 
website
 added quality settings up to 720p
diff --git a/plugin.video.nascar/default.py b/plugin.video.nascar/default.py
index 287618e..0c0f334 100644
--- a/plugin.video.nascar/default.py
+++ b/plugin.video.nascar/default.py
@@ -8,6 +8,7 @@ import xbmcgui
 import xbmcaddon
 from BeautifulSoup import BeautifulSoup
 from pyamf import remoting
+from traceback import print_exc
 
 addon = xbmcaddon.Addon(id='plugin.video.nascar')
 home = xbmc.translatePath(addon.getAddonInfo('path'))
@@ -55,7 +56,15 @@ def get_video_items(url, featured=False):
                 items = soup.find('div', attrs={'class': 
"articlesList"})('article')
             for i in items:
                 if featured:
-                    title = re.findall('"linkText":"(.+?)"', str(i))[0]
+                    try:
+                        a_dict = 
eval(i.img['data-tracking-params'].replace('\r\n', ''))
+                        title = a_dict['eVar1']
+                    except:
+                        try:
+                            title = re.findall('"eVar1":"(.+?)\n",', 
str(i.img))[0].strip()
+                        except:
+                            print_exc
+                            pass
                     item_id = 
i.img['data-ajax-post-data'].split('=')[1].split('&')[0]
                     thumb = i.img['data-resp-url']
                 else:
@@ -158,7 +167,7 @@ if mode==None:
         'sort': ['recent', 'popular']
         }
     videos_url = (
-        
'http://www.nascar.com/en_us/%snews-media.all.0.videos.all.all.%s.%s.html'
+        
'http://www.nascar.com/en_us/%snews-media.all.0.videos.all.all.%s.%s.all.html'
         %(sort['series'][int(addon.getSetting('series'))],
         sort['time'][int(addon.getSetting('time'))],
         sort['sort'][int(addon.getSetting('sort'))])

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

Summary of changes:
 plugin.video.nascar/addon.xml     |    2 +-
 plugin.video.nascar/changelog.txt |    3 +++
 plugin.video.nascar/default.py    |   13 +++++++++++--
 3 files changed, 15 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
Plugins

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to