The branch, eden has been updated
via 785c16c6235ba97a602b669d0335a2f75c16503d (commit)
from 30d96c257ec99ae98a14a177a1f63d5cbb5284bc (commit)
- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/plugins;a=commit;h=785c16c6235ba97a602b669d0335a2f75c16503d
commit 785c16c6235ba97a602b669d0335a2f75c16503d
Author: beenje <[email protected]>
Date: Sat Aug 24 23:20:14 2013 +0200
[plugin.video.arretsurimages] updated to version 2.2.3
diff --git a/plugin.video.arretsurimages/addon.xml
b/plugin.video.arretsurimages/addon.xml
index 406355a..59d74a4 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.2.2"
+ version="2.2.3"
provider-name="beenje">
<requires>
<import addon="xbmc.python" version="2.0"/>
diff --git a/plugin.video.arretsurimages/changelog.txt
b/plugin.video.arretsurimages/changelog.txt
index ed02304..9037aba 100644
--- a/plugin.video.arretsurimages/changelog.txt
+++ b/plugin.video.arretsurimages/changelog.txt
@@ -1,3 +1,9 @@
+[B]Version 2.2.3[/B]
+
+- Fix navigation items
+- Fix mp4 video playback
+- Fix the media URL when not using the all programs page (thanks to mossroy)
+
[B]Version 2.2.2[/B]
- Fixed UnicodeEncodeError
diff --git a/plugin.video.arretsurimages/resources/lib/scraper.py
b/plugin.video.arretsurimages/resources/lib/scraper.py
index 3b70982..dde24a2 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}
@@ -140,13 +143,10 @@ class Programs:
filterContainer = SoupStrainer(attrs={'class':
re.compile('rech-filtres-droite')})
# There are two 'rech-filtres-droite' per page. Look only in the first
one (contents[0])
for tag in BeautifulSoup(self.html,
parseOnlyThese=filterContainer).contents[0].findAll('a'):
- if 'href' in tag:
- if tag.string == '>':
- nav_items['next'] = True
- elif tag.string == '<':
- nav_items['previous'] = True
- else:
- debug('No navigation items found')
+ if tag.string == '>':
+ nav_items['next'] = True
+ elif tag.string == '<':
+ nav_items['previous'] = True
return nav_items
@@ -165,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 | 6 ++++++
.../resources/lib/scraper.py | 18 +++++++++---------
3 files changed, 16 insertions(+), 10 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