The branch, frodo has been updated
       via  1ff354437d2e4364265013903e8603ce2a0eb018 (commit)
      from  f8fd1c759ecb94a52acedc46d2c3ea9f0785da49 (commit)

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

commit 1ff354437d2e4364265013903e8603ce2a0eb018
Author: beenje <[email protected]>
Date:   Sat Aug 24 23:19:50 2013 +0200

    [plugin.video.arretsurimages] updated to version 2.3.5

diff --git a/plugin.video.arretsurimages/addon.xml 
b/plugin.video.arretsurimages/addon.xml
index c344ff5..5addcc5 100644
--- a/plugin.video.arretsurimages/addon.xml
+++ b/plugin.video.arretsurimages/addon.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="plugin.video.arretsurimages"
        name="Arrêt Sur Images"
-       version="2.3.4"
+       version="2.3.5"
        provider-name="beenje">
   <requires>
     <import addon="xbmc.python" version="2.1.0"/>
diff --git a/plugin.video.arretsurimages/changelog.txt 
b/plugin.video.arretsurimages/changelog.txt
index fd7e6d5..cba8ad7 100644
--- a/plugin.video.arretsurimages/changelog.txt
+++ b/plugin.video.arretsurimages/changelog.txt
@@ -1,3 +1,8 @@
+[B]Version 2.3.5[/B]
+
+- Fix mp4 video playback
+- Fix the media URL when not using the all programs page (thanks to mossroy)
+
 [B]Version 2.3.4[/B]
 
 - Fix navigation items
diff --git a/plugin.video.arretsurimages/resources/lib/scraper.py 
b/plugin.video.arretsurimages/resources/lib/scraper.py
index 82d716c..bc53009 100644
--- a/plugin.video.arretsurimages/resources/lib/scraper.py
+++ b/plugin.video.arretsurimages/resources/lib/scraper.py
@@ -129,7 +129,10 @@ class Programs:
         for media in soup.findAll('div', {'class': 'contenu-descr-8 '}):
             tag = media.findPrevious('a')
             # Get link, title and thumb
-            media_link = URLASI + tag['href']
+            if tag['href'].startswith('http'):
+                media_link = tag['href']
+            else:
+                media_link = URLASI + tag['href']
             media_title = tag['title'].encode('utf-8')
             media_thumb = URLASI + tag.find('img', attrs={'src': 
re.compile('.+?\.[png|jpg]')})['src']
             yield {'url': media_link, 'title': media_title, 'thumb': 
media_thumb}
@@ -162,7 +165,7 @@ def get_main_video(url):
         img = soup.find('img', attrs={'src': 
'http://www.arretsurimages.net/images/boutons/bouton-telecharger.png'})
         if img:
             download_page = img.findParent()['href']
-    if download_page.endswith('.avi'):
+    if download_page.endswith(('.avi', '.mp4')):
         title = download_page.split('/')[-1]
         soup = get_soup(download_page)
         click = soup.find(text=re.compile('cliquer ici'))

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

Summary of changes:
 plugin.video.arretsurimages/addon.xml              |    2 +-
 plugin.video.arretsurimages/changelog.txt          |    5 +++++
 .../resources/lib/scraper.py                       |    7 +++++--
 3 files changed, 11 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
Plugins

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to